Cyber Risks · Cisco Talos

Dynamically Unpacking Malware With Pin

Summary: Cisco Talos describes a Pin-based tool that logs memory writes, tracks which written regions are later executed, and dumps those regions to disk to capture unpacked malware code. The writeup walks through a sample whose first stage finds a byte pattern at offset 0x51A9C, copies the following 0x956 bytes, XOR-decodes the first 0x84A bytes with the byte 0xFB, and executes the result, with later stages checking for vmtoolsd.exe, VBoxService.exe and SbieDll.dll before using RunPE to inject a final Zbot payload into InternetExplorer.

What you should know: The final payload is caught by a signature dating back to 2011, so the packing and anti-analysis layers - not the malware itself - are what consume analyst time; the author notes manual debugger work on this can take hours, days or more.

Read the original at Cisco Talos ↗

Topics
Malware
Related