KiFilterFiberContext / VMP3-Disasm

Experimental disassembler for x86 binaries virtualized by VMProtect 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VMProtect Disassembler

DISCLAIMER: VERY OLD CODE; NOT INTENDED FOR ACTUAL USE

Disassembler for x86 binaries virtualized by VMProtect 3

How?

Unlike NoVMP, this project attempts to lift VMProtect's virtual machine handlers into IL purely through instruction emulation using Triton. The procedure starts by emulating the VMINIT and recording the initial VM state, then proceeding to use this information to deobfuscate the rest of the VM handlers by tainting only relevant VM registers. The simplified VM handlers are converted to VM instructions by pattern matching certain instruction sequences then emulated to extract runtime information that is logged by the disassembler.

TODO

  • Handle VMINIT and VMEXIT handlers
  • Implement initial VM handler deobfuscator
  • Handle PE/ELF relocations and imports
  • Implement VM IL semantics to represent VM instruction
  • Implement VM IL optimizer (stuff like constant propagation, etc.)
  • Finish lifter for remaining VM handlers (VMPUSH, VMADD, VMDIV, etc.)
  • Handle virtual conditionals (likely to use Triton DSE)
  • Handle VM context swapping

References

About

Experimental disassembler for x86 binaries virtualized by VMProtect 3


Languages

Language:C++ 97.3%Language:CMake 2.7%