Virtualized protectors

From PurpleAILAB/Decepticon · View interactive version

Virtualized protectors is an AI agent skill from the GitHub repository PurpleAILAB/Decepticon. VMProtect, VMP2, Themida, and CodeVirtualizer reversing workflow using Radare2/Ghidra facts and Back Engineering Labs research guidance.

How to use this skill

Skill file

VMProtect / VMP2 / Themida Workflow

Use this for VMProtect 2, VMP2 tooling questions, Themida, CodeVirtualizer,

and other VM-based protectors. Do not promise automatic devirtualization.

Most wins come from disciplined recovery of VM control-flow facts.

Source Guidance

Back Engineering Labs' public VMP2/Themida work points to one durable rule:

Avoid brittle VM-handler pattern matching. Handler layouts, opcode tables,

and dispatch glue change too easily. Prefer incremental lifting and control-flow recovery with as little VM-specific logic as possible.

Loop

  1. bin_identify and bin_packer first; record format, arch, entropy, and

protector strings.

  1. Use bin_r2_script or Ghidra to locate VMEnter stubs, handler-table

references, VM context/virtual stack sections, and suspicious indirect

dispatch loops.

  1. Recover VIP movement. For VMProtect 2, track bytecode/module loads feeding

the indirect jump. For Themida, expect branch state in VM context and trace

the branch-taken flag through the VPC update.

  1. Classify VMEXIT behavior: return to native epilog, call-shaped exit, or

unsupported-instruction exit. Record stack displacement evidence.

  1. Prefer trace/lift plans that run simple optimizations to convergence:

constant promotion over VM-private ranges, constant folding, instruction

combination, branch folding, dead-store/dead-dependency cleanup, and stack

pointer rewrite.

  1. If using VMP2-style tooling, treat vmemu/vmprofiler/vmprofiler-cli

outputs as evidence, not ground truth. Re-check recovered paths in r2/Ghidra.

  1. Write findings with exact addresses, section names, vmenter candidates,

VMEXIT classification, VIP source, and unresolved symbolic branches.

Report Shape

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.