跳到正文
Skillpedia
安全6.5k · #14178

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/virtualized-protectors/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. bin_identify and bin_packer first; record format, arch, entropy, and protector strings.
  2. Use bin_r2_script or Ghidra to locate VMEnter stubs, handler-table references, VM context/virtual stack sections, and suspicious indirect dispatch loops.
  3. 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.
  4. Classify VMEXIT behavior: return to native epilog, call-shaped exit, or unsupported-instruction exit. Record stack displacement evidence.
  5. 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.
  6. If using VMP2-style tooling, treat vmemu/vmprofiler/vmprofiler-cli outputs as evidence, not ground truth. Re-check recovered paths in r2/Ghidra.
  7. 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.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14178
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能