Re deobfuscate

From dslsdzc/rev-skills · View interactive version

Re deobfuscate is an AI agent skill from the GitHub repository dslsdzc/rev-skills. 反混淆:花指令、控制流平坦化、字符串加密。触发词:反混淆、花指令、控制流平坦化、字符串解密、obfuscation

How to use this skill

Skill file

反混淆(花指令 / 控制流平坦化 / 字符串加密)

何时使用 / 何时不用

工具准备

反编译产物(还原的工作台)

idapython(批量脚本化)

rizin 脚本(批量 patch / 查询)

D-810(IDA 插件,可选)

python3(仿真 / 批量解密)

操作步骤

按顺序执行,每步记录结果(证据路径 + sha256,见 [[re-triage]])。修改前先备份原文件(见坑 1)。

  1. 花指令清除(patch NOP / 跳转修复):
  1. 控制流平坦化识别与还原(D-810 / 手动):
  1. 字符串解密循环定位与仿真:

```python

# 例:单字节 XOR 解密

key, out = 0x7f, bytearray()

for b in open('data.bin','rb').read():

out.append(b ^ key)

print(out[:64])

```

  1. 批量脚本化(解密所有字符串):

```python

import idaapi, idc

# 例:枚举引用 sym_decrypt 的调用点,取参数地址后 idc.get_bytes 解密并打印

```

  1. 还原前后对比验证:

跨域联合

常见坑与陷阱

(来源:reverse-skill field-journal,MIT)

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.