XXX4Fans
oalabs from patreon
oalabs

patreon


How To Unpack VMProtect Malware - Part 3

Fixing OEP (Virtualized Entry Point)

This is the third part in our three-part tutorial series on unpacking VMProtect malware. At this stage we have dumped the unpacked PE payload. The entry point was virtualized so the dumped sample won't run but it could be statically reverse engineered -- if static reverse engineering is all that is required this final stage is not needed.

The MSVC Entry Point

Since the unpacked payload is an MSVC binary we know that the entry point code is the same as any other MSVC binary so we can simply steal the bytes from another binary (one we have compiled ourselves) and create a new entry point. 

For a detailed look at how the MSVC entry point and the security cookie initialization function and SEH are setup check out our detailed MSVC Entry Point Tutorial.  

Build A New OEP

Self Study Examples

Now that we have concluded our three-part tutorial there are two examples you can try in your lab to familiarize yourself with these concepts. 

1. HelloWorld Unpacking

Attached to this post is a copy of our HelloWorld example binary. Use this binary to replicate our tutorial.

2. NightSky Ransomware Unpacking

Once you are comfortable unpacking the HelloWorld example replicate the unpacking process with NightSky Ransomware.

** Use a safe isolated Virtual Machine this is a live ransomware sample

A full walk-through of unpacking NightSky Ransomware will be available here next week -- see if you can unpack it before then! 

How To Unpack VMProtect Malware - Part 3

Related Creators