REA Reverse – Engineer Anything
Recorded: Oct. 10, 2026, 2:26 a.m.
| Original | Summarized |
REA — Reverse Engineering for Your Coding Agent Skip to content REAReverse Engineer Anything Showcases On this page On this page Set up REA Reverse engineering, with your coding agent REA gives your agent the tools to inspect a program and explain See how REA works ↓ Already know RE? Set up REA Your coding agent Copy ›Install REA and connect it to this coding agent using npx Or run this in your terminal: npx rea-agents@latest setup Copy Approve the setup plan, then restart your agent. What is reverse engineering? Finding out how software works by The goal: understand a feature well enough to One question: Before REA · You investigate it 01 Decode branches 02 Trace calls 03 Recover the rule Original x64 · selected instructions 0x180124945: MOV EAX, dword ptr [R13 + 0x18] 01 · Which branch? “0x5b? 0x5c? Two jumps to the same Look up the command IDs, then label the branch. 0x5b 0x5c 02 · What do the calls do? “100 is clear. The calls are just addresses. Inspect the helpers and trace the stored values. 0x64 …123190 03 · What is the rule? “This path multiplies by the other input. So Name the operands and check both operator paths. 200 × 10 / 100 Illustrative expert reasoning You decode the instructions, follow the calls and reconstruct With REA · You ask One prompt. Ask your agent in plain English. Example prompt · Calculator Copy ›Use REA to inspect Windows Calculator. Why does 200 + 10% Example answer · based on the findings After +, the % button takes 10% of 200 = 20↓200 + 20 = 220 REA supplies The handler’s instructions, decompiled code and calls. Your agent explains Which branch applies, what it calculates and how to rebuild Selected assembly from the installed Calculator DLL. The thoughts Let's try two examples. Example 01 · Chrome’s dinosaur game Goal Rebuild the game with Why reverse engineer it? To reproduce its acceleration, we need Play the reconstruction 6 → 10 → 13 Play Speed 6.0 Original rule: start at 6, then increase toward 13. Move the slider to set your own speed. Space or Jump clears a Enable JavaScript to play the reconstruction. The code and REA returned The script actually running in the page. The Example prompt · Dinosaur game Copy ›Use REA to inspect this dinosaur game. Why does it get Inspected target: REA · loaded index.js · selected lines if (this.currentSpeed < this.config.MAX_SPEED) { Start at 6. Add 0.001 each What each part does 01 · REARead the running game’s scriptReturn its actual code and settings to the agent. 02 · Your agentRebuild the rule, add a controlUse the recovered acceleration in a small game with a speed 03 · YouChange the speed and playTry the original acceleration, then choose your own See the script, checks and how to try the analysis REA inspected the HTTP browser edition through a local debugging Selected settings from the inspected script ACCELERATION: 0.001, We called the original game’s update function in a controlled The new mini-game keeps that speed rule. Its drawing, jumping and To inspect the target yourself, follow the Inspected speed code Example 02 · Windows Calculator We saw why 200 + 10% gives 220. Now let’s recover Goal Build a small calculator that handles Why reverse engineer it? The same button uses Try the calculation 200 + 10% 200 × 10% 200 + % = Reset 10% of 200 = 20. Then 200 + 20 = 220. Interactive illustration of the inspected percentage rule. REA returned One branch divides by 100. The other also multiplies by the For this example, previous = 200 and Example prompt · Rebuild the % button Copy ›Use REA to inspect Windows Calculator’s % button. Recover Readable summary of the % handler if (operation == multiply || operation == divide) { With + Take 10% of the first number.10% of 200 = 20 → 200 + 20 = 220 With × Turn 10% into 0.1.200 × 0.1 = 20 From the installed app to a working % button 01 · REA reads calc.exeIt launches the Calculator appThe code opens ms-calculator:. The agent then 02 · REA reads the libraryReturn the % handler’s codeThe function checks the operator and uses the constant 03 · Your agent interprets itExplain and reproduce the rulesCrosscheck the branch with Microsoft’s source, then try + and See the real code and how the answer was checked REA · selected original instructions 0x180124945: MOV EAX, dword ptr [R13 + 0x18] Operator IDs · Microsoft’s source #define IDC_MUL 92 // 0x5c 0x64 = 100 Inspected with REA 4.1.0: Windows Calculator 11.2508.4.0, x64. The Percentage implementation Your first investigation Download our Notes example, trace its CSV export, and check one Try the guided example Want to go deeper? Tell your agent what you want to understand or build. With REA, Example prompt · Website Copy ›Use REA to inspect https://rea.tools/. Clone this website Yes, this one. Example prompt · Game reconstruction Copy ›Use REA to reconstruct this game from its executable. See the DX-Ball case study → For setup and analysis steps, choose your target: Native binaries Inspect functions, strings, references and call relationships in JavaScript & Electron Map modules, routes, IPC and native dependencies from an Browser & runtime activity Capture selected browser or process activity, then compare the Any questions? Read the FAQ, REA · Reverse Engineer Anything SourceMIT licenseCommunity ↑ Top |
Reverse engineering for a coding agent, known as REA, provides a methodology for understanding how software functions by allowing an agent to inspect program execution and generate explanations. The fundamental goal of reverse engineering is to thoroughly understand a feature within a program so that one can effectively explain it, modify it, or rebuild it. This process involves systematically decoding the underlying mechanics of software, which can be achieved by analyzing aspects such as decoding branches, tracing function calls, and recovering operational rules. The process begins with setting up the coding agent by installing REA and connecting it through specified commands. Once set up, the agent can analyze executable code and trace operational flows. For instance, investigating a simple calculator demonstrates how reverse engineering can reveal the underlying mathematical rule governing operations, such as understanding why 200 plus 10 percent results in 220 by inspecting the assembly instructions and branch logic. This method relies on inspecting the code to determine which mathematical operator is applied in different scenarios, revealing that the percentage operator applies to the first number before addition. REA facilitates this understanding by supplying the agent with the handler's instructions, decompiled code, and call structures. The agent then uses this information to explain the recovered rules and reconstruct the functionality. In other demonstrations, such as reverse engineering a game, the process involves reading the running script, extracting variables, and recovering the acceleration rules that govern gameplay. This recovered rule, along with other operational parameters, allows the agent to build a smaller, adjustable version of the game, demonstrating the ability to transform observed behavior into functional logic. Further applications show that REA can be applied to complex operations, such as the percentage function in a Windows Calculator. By analyzing the assembly instructions and cross-referencing them with source material and constant values, the agent can deduce the specific logic governing the percentage calculation. This involves identifying the conditional branches and operator IDs within the compiled code, allowing the agent to derive the specific rules that determine whether a percentage applies to the current value or involves multiplication to convert the percentage to a decimal. Ultimately, REA enables agents to work collaboratively on complex tasks, ranging from cloning websites and reconstructing games from their executables to performing native binary analysis and mapping module dependencies in JavaScript environments. This capability positions reverse engineering not merely as a disassembly exercise but as an interactive method where the agent performs the detailed investigation and the user guides the reconstruction based on the agent's findings, thereby linking low-level code details directly to high-level functional understanding. |