Lab 21-2 Solutions
Short Answers
The malware contains the resource sections
X64,X64DLL, andX86. Each of the resources contains an embedded PE file.Lab21-02.exe is compiled for a 32-bit system. This is shown in the PE header’s
Characteristicsfield, where theIMAGE_FILE_32BIT_MACHINEflag is set.The malware attempts to resolve and call
IsWow64Processto determine if it is running on an x64 system.On an x86 machine, the malware drops the
X86resource to disk and injects it into explorer.exe. On an x64 machine, the malware drops two files from theX64andX64DLLresource sections to disk and launches the executable as a 64-bit process.On an x86 system, the malware drops Lab21-02.dll into the Windows system directory, which will typically be C:\Windows\System32\ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access