decompile
Lift a single function from machine code into readable pseudo-C, rebuilding control flow, naming arguments and locals, and resolving imports and strings.
Instructions
Lift one function to readable pseudo-C.
Control flow is rebuilt from the basic-block graph: dominators, natural loops
and if/else joins become while / if statements instead of goto,
cmp + jcc pairs become conditions, arg0..arg3 name the incoming
register arguments, imports and string references are resolved through the
image, and registers that hold rbp-relative slots become locals. Every
line keeps the original instruction as a trailing comment, so the output can
be checked against disassemble instead of trusted.
Heuristics are stated in the response: confidence drops when blocks are
unreachable, the graph is irreducible, or instructions stay unmodelled
(SSE, string ops), and notes says why. Pair with rename_function —
the annotated name is used by later calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>",
"va": "<va>"
},
"name": "decompile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| va | Yes | ||
| key | Yes | ||
| session | No | ||
| max_blocks | No | ||
| include_comments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |