Lab 6-3 Solutions
The functions at 0x401000 and 0x401040 are the same as those in Lab 6-2 Solutions. At 0x401271 is
printf. The 0x401130 function is new to this lab.
The new function takes two parameters. The first is the command character parsed from the HTML comment, and the second is the program name
argv, the standard
The new function contains a
switchstatement with a jump table.
The new function can print error messages, delete a file, create a directory, set a registry value, copy a file, or sleep for 100 seconds.
The registry key
Software\Microsoft\Windows\CurrentVersion\Run\Malwareand the file location C:\Temp\cc.exe can both be host-based indicators.
The program first checks for an active Internet connection. ...