Lab 16-2 Solutions
Short Answers
When you run Lab16-02.exe from the command line, it prints a usage string asking for a four-character password.
If you input an incorrect password, the program will respond “Incorrect password, Try again.”
The correct command-line password is
byrr
.The
strncmp
function is called at 0x40123A.The program immediately terminates when loaded into OllyDbg using the default settings.
The program contains a
.tls
section.The TLS callback starts at 0x401060.
The
FindWindowA
function is used to terminate the malware. It looks for a window with the class nameOLLYDBG
and terminates the program if it is found. You can change the window class name using an OllyDbg plug-in like PhantOm, or NOP-out the call to exit at 0x40107C.At first, ...
Get Practical Malware Analysis now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.