reverser-virtualized-protectors
它能做什么
它介绍分析由虚拟机式保护器保护的程序的谨慎方法。适用于需要理解此类程序、但不指望自动得到结果的逆向工程人员。
适用场景
- ✓当分析人员发现程序受 VMProtect 或 Themida 保护,无法读懂其逻辑时。
- ✓当研究人员想在受保护文件中识别入口存根和分发循环时。
- ✓当团队在尝试分析虚拟化程序前,需要设定切合实际的预期时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/virtualized-protectors/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“这个程序使用了 VMProtect。我能否自动恢复它的原始代码?”
每周 5 个新技能,1 分钟读完。
工作原理
该技能告诉 AI 识别保护器,定位虚拟机入口点,并分小步骤恢复控制流。它提醒,不保证能自动还原。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
bin_identifyandbin_packerfirst; record format, arch, entropy, and protector strings.- Use
bin_r2_scriptor Ghidra to locate VMEnter stubs, handler-table references, VM context/virtual stack sections, and suspicious indirect dispatch loops. - 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.
- Classify VMEXIT behavior: return to native epilog, call-shaped exit, or unsupported-instruction exit. Record stack displacement evidence.
- 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.
- If using VMP2-style tooling, treat
vmemu/vmprofiler/vmprofiler-clioutputs as evidence, not ground truth. Re-check recovered paths in r2/Ghidra. - Write findings with exact addresses, section names, vmenter candidates, VMEXIT classification, VIP source, and unresolved symbolic branches.
Report Shape
- Protector: VMProtect / VMProtect 2 / Themida / CodeVirtualizer / unknown
- Entrypoints: candidate VMEnter addresses and why
- Dispatch: handler-table location, decrypt/transform clues, indirect jump path
- VIP: source load or Themida branch flag/VPC update evidence
- VMEXIT: stack displacement and native continuation/call target
- Recovery plan: trace, lift, or manual simplification; no fake devirt claims
常见问题
什么是虚拟化保护器?
它将程序的部分代码转换为自定义的虚拟机格式,难以阅读。
这能带来自动化的结果吗?
不能。该技能说明,不应承诺自动去虚拟化。
涉及哪些工具?
它使用 Radare2 和 Ghidra 的结果,并参考关于这些保护器的公开研究指南。
详情
作者的原始描述
VMProtect, VMP2, Themida, and CodeVirtualizer reversing workflow using Radare2/Ghidra facts and Back Engineering Labs research guidance.
热度
- GitHub 星标
- 6.5k
- 排名
- #14178
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …