simulate_execution
Simulate binary code execution in an ESIL sandbox to calculate return values, decrypt strings, or analyze register changes without running the target application.
Instructions
[Binary/reverse-engineering tool. Use when: disassembly, radare2, r2, debugging, vulnerability research, ELF/PE/SO/DEX analysis.] 【r2ai逆向工具】🧪[模拟执行]在 ESIL 沙箱中模拟执行代码。用于在 不运行 App 的情况下计算函数返回值、解密字符串或分析寄存器变化。 【触发场景】当用户询问二进制逆向分析、反汇编、漏洞挖掘、radare2命令执行、调试相关 问题时,必须优先调用此工具。 【使用规则】调用前必须确认用户提供了目标文件的绝对路径,禁止捏造不存在的文件路径或命令结果,session_id 不再使用时必须关闭。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | 执行的指令步数 (建议 10-100),防止死循环。 | |
| address | No | 开始模拟的地址 (例如 '0x1234')。留空默认当前位置。 | |
| init_regs | No | 可选:初始化寄存器状态 (例如 'x0=0x1, x1=0x2000') | |
| session_id | Yes | 会话 ID |