Skip to main content
Back to Articles
● November 29, 2026 ● 4 MIN READ

AI Can Now Read Your Binaries: Inside the New Decompilation Pipeline

Reverse EngineeringAI AgentsGhidraIDA ProMCP
Research & Insights ● Future of Digital Experience ● AI Revolution ● Design Strategy ● New Era of Intelligence ●

AI Can Now Read Your Binaries: Inside the New Decompilation Pipeline

[!NOTE] TL;DR: Decompilers used to dump cryptic pseudocode that only specialists could read. Now MCP servers expose Ghidra and IDA Pro as callable tools, letting an LLM agent walk a binary function-by-function — decompiling, renaming, annotating, and rebuilding a readable model of the whole program in one session.

For decades, shipping a compiled binary was a soft form of secrecy. The source was gone, the symbols were stripped, and reconstructing intent from assembly required a rare and expensive skill set. That assumption just broke — not because decompilers got dramatically better, but because the reader changed. An LLM agent does not need the decompiler’s output to be pretty; it needs it to be queryable.

Table of Contents

Why “Compiled” Used to Mean “Opaque”

A compiler is a lossy, one-way transform. Variable names, comments, types, and architecture are all discarded on the way to machine code. Traditional reverse engineering meant a human expert staring at disassembly in IDA or Ghidra for days, renaming functions one at a time until a mental model emerged. The tools were powerful, but the bottleneck was never the tooling — it was the hours of expert attention required to interpret it.

That is exactly the bottleneck an agent removes. Reading pseudocode, recognizing patterns, and holding thousands of renamed functions in context are things LLMs happen to be very good at.

The Toolchain: Decompilers as Agent Tools

The unlock is not a new decompiler — it is plumbing existing ones into an agent loop via MCP (Model Context Protocol):

  • ghidra-mcp exposes the NSA’s open-source Ghidra suite — listing functions, decompiling to C-like pseudocode, renaming symbols, and adding comments — as tools an agent can call directly.
  • ida-mcp does the same for Hex-Rays’ IDA Pro, the industry-standard commercial disassembler, straight from the official vendor.
  • REA packages reverse-engineering workflows for local artifacts and runtimes into a single agent-facing toolkit.

The decompiler does what it has always done — lift machine code into structured pseudocode. The agent does what humans used to do: decide which function to look at next, name things sensibly, and stitch partial views into a coherent picture.

Inside the Agent Loop

A typical session looks nothing like a human RE workflow and everything like a code review at scale:

  1. Orient. The agent lists exports, imports, and strings to guess what the binary is and where the interesting logic lives — license checks, network calls, update routines.
  2. Decompile selectively. Instead of dumping everything, it pulls the functions adjacent to the interesting ones, following call graphs like a reader following footnotes.
  3. Rename as it reads. FUN_14001a3c0 becomes validate_license_key, and the next decompilation passes inherit that name — the binary literally becomes more readable the longer the agent works on it.
  4. Reconstruct. The end state is not disassembly but a working model: data structures, control flow, and often a draft reimplementation in a real language.

This is the part that surprises people: the agent is not “translating” the binary, it is understanding it well enough to explain and re-derive it.

Managed Code vs Native: ILSpy and Cpp2IL

The difficulty varies enormously by target. Managed runtimes are nearly transparent: .NET binaries retain so much metadata that ILSpy reproduces something close to the original C# — naming, structure, and all. Agents barely have to work.

Native binaries are harder, but the ecosystem has an answer for the biggest gap. Unity games ship via IL2CPP, which compiles C# all the way down to native C++ — historically a nightmare. Cpp2IL reverses that transform, recovering managed assemblies from the IL2CPP binary and restoring the structure agents need. Between ILSpy for managed code and Cpp2IL for Unity, the “hard cases” keep shrinking.

What the Analysis Actually Produces

The output of a good agent session is not a wall of pseudocode — it is evidence with structure: named functions, inferred types, annotated call graphs, and a plain-language explanation of what the program does and where. That artifact is what makes the downstream tricks possible: patching behavior, porting mechanics to a new engine, or rebuilding the program entirely in Rust — each of which deserves its own post.


Frequently Asked Questions

Q: Do I need to know assembly to use AI for reverse engineering? A: Not to get started — that is the point. The decompiler lifts machine code to C-like pseudocode, and the agent interprets it. You still need enough judgment to steer the agent toward the right functions and sanity-check its claims, but the assembly-reading step is largely automated.

Q: Ghidra or IDA Pro — which should the agent use? A: Both work. Ghidra is free and open-source with a capable decompiler; IDA Pro is the commercial standard with more mature analysis. Their MCP servers expose similar capabilities, so most workflows run on whichever you already have installed.

Q: Can these tools analyze Unity games specifically? A: Yes — that is the mainstream case. Unity IL2CPP builds are handled by Cpp2IL, which recovers the managed assembly structure from the native binary, after which the agent works on near-C# rather than raw machine code.

Q: How much of a binary can an agent realistically cover? A: Coverage is reported, not guaranteed — good tooling like REA states what it analyzed and what it skipped. In practice, agents orient quickly around the functions that matter (licensing, networking, gameplay logic) and can produce a usable model of those subsystems in a single session.

Q: Is reverse engineering software legal? A: It depends on jurisdiction and purpose. Interoperability, security research, and modifying software you own are protected in many places; violating license agreements or circumventing DRM for piracy is not. Check local law and the software’s EULA before you start.

Ikziriv Design & Development
Share
Continue Reading

Related
Articles