Picture this: you update a library, its behavior changes, and all you have is the binary, not the source.
The release notes say nothing, and the only clue left is a single executable.
The skill of reading what happens inside that executable is reverse engineering.
REA helps an AI agent do this work for you, but if the person reading and judging the results does not know the basic concepts,
there is no way to check whether the agent's explanation is right.
So before getting to installation, this part pulls together only the concepts you really need.
The examples come from the small C program I actually compiled and analyzed in part 5.
All output in the code blocks and screenshots comes from running rea-agents 6.10.1 and Ghidra 12.2 on macOS 26.3.1 (arm64) on November 23, 2026.
To understand reverse engineering, look at compilation in reverse.
Direction
Step
Output
Forward
Source code â compile
Machine code (binary)
Reverse 1
Machine code â disassemble
Assembly
Reverse 2
Assembly â decompile
Pseudocode
Disassembly turns machine code bytes into assembly instructions a person can read.
Decompilation goes one step further and reconstructs code in a C-like form.
The result is called
pseudocode
because it is not the original source but an approximation the decompiler inferred.
Ghidra pseudocode for _checksum in sample_O0 obtained with rea decompile (int _checksum(char *param_1), local_1c, local_28, while(true), _strlen) and the limitation note Pseudocode is Ghidra decompiler output, not original source
The behavior is the same, but it looks quite different.
The parameter name s became param_1.
The local variables sum and i became local_1c and local_28, named after their stack positions.
The for loop became a while(true) with a break.
An underscore was added to the start of the function name, following macOS symbol conventions.
REA also attached the limitation note
Pseudocode is Ghidra decompiler output, not original source
to the result.
Pseudocode is not a copy of the original; it is one interpretation that describes the original's behavior.
Variable names, comments, and file structure disappear during compilation, so no tool brings them back as they were.
ðšâð»
The function name checksum survived in this example because I compiled with debug information (-g).
Release binaries usually strip symbols, so even function names show up as address-based names such as FUN_00406400.
stur wzr, [x29, #-0xc] stores 0 in a stack slot and corresponds to local_1c = 0 in the pseudocode.
bl 0x100000574 is a function call, here to strlen.
The whole function was made of 30 instructions.
Even though pseudocode is easier to read, there is a reason to look at assembly.
A decompiler can miss constants or parameters, so the pseudocode may look different from what the code actually does.
In the DX-Ball case covered in part 6, the first pseudocode showed only a single conversion call, and the real input and constants appeared only after reading the instructions and memory bytes.
Do not draw important conclusions from pseudocode alone; cross-check against instructions and bytes.
only reads the files and does not run the application
.
It also says, by contrast, that runtime capture runs or interacts with the target using your user permissions.
Debugger integration also counts as dynamic analysis.
rea --help lists debug-with-gdb, which runs one GDB console command, and debug-with-rizin, which runs a Rizin debugger command.
According to the CLI guideâ, both commands hold their debugger only for the lifetime of the command's own process.
In practice,
mapping the program with static analysis first and confirming only the points you need with dynamic analysis
is the safe order.
The hands-on work in parts 4 and 5 of this series also uses static analysis only.
Commercial tool for macOS and Linux, with a free demo
Can be installed with approval during setup
Kuna
Separate decompiler
Point REA to an executable you provide
According to the installation guideâ, REA accepts Ghidra 12.2 or later and does not accept 12.1.
That is because REA calls an API form that was added in Ghidra 12.2.
Ghidra 12.2 requires JDK 25 or later.
Android apps are handled with JADXâ-based tooling, and offline native inspection can also use GNU objdump or Rizin that you install yourself.
The supported targets document says REA does not install or update objdump and Rizin for you.
It is also worth remembering that some work needs no engine at all.
Static checks such as binary security settings (PIE, NX, etc.), Go and Rust build information, and PE import lists are built into REA.
In part 5, I first checked security settings with inspect-binary-hardening without any engine.
If you open the engine directly, you can see the same target on screen.
Below is the same program, compiled with -O2 optimization in part 5, opened in Ghidra.
Ghidra CodeBrowser showing sample_O2. The center Listing shows arm64 assembly for the entry function, and the Decompile window on the right shows declarations iVar68 through iVar83 and a branch after sVar1 = _strlen(param1)
With optimization on, checksum was merged into main (inlined) and the loop turned into vector instructions, pushing the pseudocode past 300 lines.
It shows that even with the same source,
the amount you have to read and its difficulty change a lot depending on compiler options
Many desktop apps are built with Electron.
An Electron app builds its UI with web technology (HTML, CSS, JavaScript) and ships bundled with Chromium and Node.js.
From a reverse engineering point of view, what matters is that
an Electron app contains JavaScript, not machine code
.
The code is usually packed into an archive format called ASAR, but once unpacked, the minified JavaScript is still there.
Only variable names get shorter; much of the function structure and strings remain, so it is far easier to recover than machine code.
To read an Electron app, you need to know its process structure.
main process
Creates windows and handles operating system features such as the file system.
renderer process
The web page that draws the UI.
For security, it is usually blocked from accessing operating system features directly.
preload script
Runs before the renderer opens and uses contextBridge to hand the UI only the features it needs.
IPC
The channel through which the renderer sends a request with ipcRenderer.invoke and main receives and handles it with ipcMain.handle.
According to the supported targets document, REA finds and returns modules, imports, source maps, routes, IPC, and native add-ons in JavaScript and Electron apps.
When I tried it in part 4, REA built a structure graph of the official Electron sample that separated main, preload, and renderer.
The Notion case in part 6 works the same way, starting from preload and following an IPC channel to the handler in the main process.
a protocol that standardizes how AI agents access external tools and data
.
It is often compared to a USB port for agents.
Just as any device fits a port with the same standard, any agent that supports MCP can connect to the same MCP server.
Applied to REA, the structure looks like this.
MCP client
An agent such as Claude Code, Codex, or Cursor.
MCP server
REA, run with rea mcp.
It advertises its tool list and runs the calls it receives.
Tool
An individual function the agent calls, such as binary_session, analyze_function, or read_bytes.
The README's FAQ answers that REA works with
any agent that supports local MCP servers
.
The CLI uses the same workflows as MCP, so you can run the same analysis from the terminal without an agent.
Whether an agent calls it over MCP or a person runs it from the CLI, the same REA code does the analysis.
ðšâð»
I recommend trying the CLI first before connecting an agent.
It is easier to verify results once you have run the commands yourself and seen the output, rather than handing things to an agent without knowing what it called.