508 lines
20 KiB
HTML
508 lines
20 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>REA — Reverse Engineer Anything</title>
|
||
<meta
|
||
name="description"
|
||
content="Inspect apps, binaries and runtime behavior with your coding agent or terminal. REA connects local analysis tools through CLI and MCP."
|
||
/>
|
||
<meta name="theme-color" content="#ffffff" />
|
||
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml" />
|
||
<link rel="stylesheet" href="assets/styles.css" />
|
||
<script src="assets/main.js" defer></script>
|
||
</head>
|
||
<body id="top">
|
||
<a class="skip-link" href="#main">Skip to content</a>
|
||
<header class="site-header">
|
||
<div class="container header-inner">
|
||
<a class="brand" href="./" aria-label="REA home"
|
||
><span class="brand-name">REA</span
|
||
><span class="brand-caption">Reverse Engineer Anything</span></a
|
||
>
|
||
<nav class="navigation" aria-label="Main navigation">
|
||
<a href="showcase/">Showcases</a>
|
||
<a class="nav-start" href="get-started/">Get started</a>
|
||
<a href="guides/">Guides</a>
|
||
<a href="faq/">FAQ</a>
|
||
</nav>
|
||
<a
|
||
class="nav-github"
|
||
href="https://github.com/morluto/rea"
|
||
aria-label="REA on GitHub"
|
||
title="REA on GitHub"
|
||
>
|
||
<svg
|
||
width="22"
|
||
height="22"
|
||
viewBox="0 0 16 16"
|
||
aria-hidden="true"
|
||
focusable="false"
|
||
>
|
||
<path
|
||
fill="currentColor"
|
||
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.65 7.65 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"
|
||
/>
|
||
</svg>
|
||
<span class="nav-github-count" hidden aria-hidden="true"></span>
|
||
</a>
|
||
</div>
|
||
</header>
|
||
<main id="main">
|
||
<section class="container hero home-hero">
|
||
<p class="eyebrow">Reverse engineering, with your coding agent</p>
|
||
<h1>Find out how<br />software works.</h1>
|
||
<p class="lede">
|
||
REA gives your agent the tools to inspect a program and explain what
|
||
it does.
|
||
</p>
|
||
<div class="actions">
|
||
<a class="button" href="#what-is-re">See how it works</a>
|
||
<a class="text-link" href="first-investigation/">Try an example</a>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section" id="what-is-re">
|
||
<div class="container">
|
||
<div class="home-definition">
|
||
<h2>What is reverse engineering?</h2>
|
||
<p class="lede">
|
||
Finding out how software works by examining the program.
|
||
</p>
|
||
</div>
|
||
<figure class="home-calculation">
|
||
<p class="figure-title">
|
||
DX-Ball: how does the game place a sound on the left or right?
|
||
</p>
|
||
<div class="code-comparison home-code-comparison">
|
||
<div class="code-block">
|
||
<div class="code-header">
|
||
<span>Original instructions · selected excerpt</span>
|
||
</div>
|
||
<pre><code>MOV EAX, dword ptr [EBP + 0x8]
|
||
MOV dword ptr [EBP + -0xc], EAX
|
||
FILD dword ptr [EBP + -0xc]
|
||
<span class="code-key">FMUL double ptr [0x00420068]</span>
|
||
<span class="code-key">FSUB double ptr [0x00420070]</span>
|
||
FMUL double ptr [0x004210a0]
|
||
CALL 0x0041678c</code></pre>
|
||
</div>
|
||
<div class="code-block">
|
||
<div class="code-header"><span>Readable summary · C</span></div>
|
||
<pre><code>// x is the horizontal position
|
||
double pan = (double)x;
|
||
<span class="code-key">pan *= 1.5625;</span>
|
||
<span class="code-key">pan -= 500.0;</span>
|
||
pan *= pan_scale;
|
||
return (int)pan;</code></pre>
|
||
</div>
|
||
</div>
|
||
<div
|
||
class="pan-examples"
|
||
aria-label="Examples of the sound calculation"
|
||
>
|
||
<div class="pan-example">
|
||
<span class="pan-label">Left side</span>
|
||
<div class="pan-position" aria-hidden="true">
|
||
<i style="--position: 0"></i>
|
||
</div>
|
||
<span class="pan-value"><code>x = 0 → pan = −500</code></span>
|
||
<span class="pan-meaning">Sound to the left</span>
|
||
</div>
|
||
<div class="pan-example">
|
||
<span class="pan-label">Center</span>
|
||
<div class="pan-position" aria-hidden="true">
|
||
<i style="--position: 0.5"></i>
|
||
</div>
|
||
<span class="pan-value"><code>x = 320 → pan = 0</code></span>
|
||
<span class="pan-meaning">Centered sound</span>
|
||
</div>
|
||
<div class="pan-example">
|
||
<span class="pan-label">Right side</span>
|
||
<div class="pan-position" aria-hidden="true">
|
||
<i style="--position: 1"></i>
|
||
</div>
|
||
<span class="pan-value"><code>x = 640 → pan = +500</code></span>
|
||
<span class="pan-meaning">Sound to the right</span>
|
||
</div>
|
||
</div>
|
||
<figcaption>
|
||
Examples of the calculation with the recorded initial scale of 1.
|
||
The code is a readable summary of the inspected function.
|
||
</figcaption>
|
||
</figure>
|
||
<p class="home-analysis-work">
|
||
To explain this, an analyst identifies the input, follows the caller
|
||
and reads the values at those addresses.
|
||
</p>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section" id="ask-your-agent">
|
||
<div class="container">
|
||
<div class="home-agent-grid">
|
||
<div class="home-reassurance">
|
||
<h2>Do I need to read assembly to get started?</h2>
|
||
<p class="home-no">No.</p>
|
||
<p>Ask your agent about the behavior you want to understand.</p>
|
||
</div>
|
||
<div>
|
||
<div class="agent-terminal home-analysis-terminal">
|
||
<div class="terminal-header">
|
||
<span class="terminal-title"
|
||
><span class="terminal-dots" aria-hidden="true"
|
||
><i></i><i></i><i></i></span
|
||
>Example analysis · DX-Ball</span
|
||
>
|
||
<button
|
||
class="copy-button"
|
||
type="button"
|
||
data-copy="home-analysis-prompt"
|
||
aria-label="Copy DX-Ball analysis prompt"
|
||
>
|
||
Copy
|
||
</button>
|
||
</div>
|
||
<p class="terminal-target">Target · DXBALL.EXE</p>
|
||
<p class="terminal-prompt">
|
||
<span class="prompt-symbol" aria-hidden="true">›</span
|
||
><span id="home-analysis-prompt"
|
||
>Use REA to inspect this DX-Ball executable. How does it
|
||
calculate left/right sound panning? Show the relevant
|
||
code.</span
|
||
><span class="terminal-cursor" aria-hidden="true"></span>
|
||
</p>
|
||
<div class="agent-reply">
|
||
<p class="reply-label">
|
||
Agent · explanation from the findings
|
||
</p>
|
||
<p>
|
||
This function converts a brick’s horizontal position into a
|
||
left/right sound value.
|
||
</p>
|
||
<p>
|
||
At the initial scale of 1, the screen center produces zero.
|
||
Positions to the left produce negative values; positions to
|
||
the right produce positive values.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<p class="caption">
|
||
Example prompt and explanation based on the recorded
|
||
investigation. Supply the executable to your agent.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<figure class="workflow-figure home-evidence">
|
||
<p class="figure-title">What REA found for the agent</p>
|
||
<ol class="flow-steps">
|
||
<li>
|
||
<span class="flow-label">01 · Inspect the function</span>
|
||
<span class="flow-node">An integer input</span>
|
||
<span class="flow-note"
|
||
>The instructions read <code>[EBP + 0x8]</code>. The initial
|
||
pseudocode had missed this input.</span
|
||
>
|
||
</li>
|
||
<li>
|
||
<span class="flow-label">02 · Follow the caller</span>
|
||
<span class="flow-node">A brick’s screen position</span>
|
||
<span class="flow-note"
|
||
>The caller passes <code>20 + 30 × tile_x</code>, giving the
|
||
input its meaning.</span
|
||
>
|
||
</li>
|
||
<li>
|
||
<span class="flow-label">03 · Read the stored data</span>
|
||
<span class="flow-node">The calculation’s constants</span>
|
||
<span class="flow-note"
|
||
>Byte reads supply <code>1.5625</code>, <code>500.0</code> and
|
||
the initial scale <code>1.0</code>.</span
|
||
>
|
||
</li>
|
||
</ol>
|
||
<figcaption>
|
||
The agent uses these findings to explain the behavior and write
|
||
readable C.
|
||
</figcaption>
|
||
</figure>
|
||
<p class="home-check">
|
||
The reconstruction project checked its maintained C function against
|
||
3,205 original-x86 input cases and all 63 compiled bytes.
|
||
<a href="showcase/dx-ball/#sound-pan">See the code and checks</a>.
|
||
</p>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section" id="try-rea">
|
||
<div class="container home-try-grid">
|
||
<div>
|
||
<p class="eyebrow">Your first investigation</p>
|
||
<h2>Try REA on a small app.</h2>
|
||
<p>
|
||
Find out where an app exports its notes, then check how it formats
|
||
a title containing commas and quotes.
|
||
</p>
|
||
<p>We provide the example files, a prompt and a result to check.</p>
|
||
<div class="actions">
|
||
<a class="button" href="first-investigation/">Try the example</a>
|
||
<a class="text-link" href="get-started/">Setup guide</a>
|
||
</div>
|
||
</div>
|
||
<div class="home-setup">
|
||
<h3>Set up REA with your agent</h3>
|
||
<div class="agent-terminal">
|
||
<div class="terminal-header">
|
||
<span class="terminal-title"
|
||
><span class="terminal-dots" aria-hidden="true"
|
||
><i></i><i></i><i></i></span
|
||
>Your coding agent</span
|
||
>
|
||
<button
|
||
class="copy-button"
|
||
type="button"
|
||
data-copy="home-install-prompt"
|
||
aria-label="Copy REA installation prompt"
|
||
>
|
||
Copy
|
||
</button>
|
||
</div>
|
||
<p class="terminal-prompt">
|
||
<span class="prompt-symbol" aria-hidden="true">›</span
|
||
><span id="home-install-prompt"
|
||
>Install REA and connect it to this coding agent using npx
|
||
rea-agents@latest setup. Show me the setup plan for approval,
|
||
then verify the installation.</span
|
||
><span class="terminal-cursor" aria-hidden="true"></span>
|
||
</p>
|
||
</div>
|
||
<p class="caption">Or run this command in your terminal:</p>
|
||
<div class="code-block code-inline">
|
||
<code id="setup-command">npx rea-agents@latest setup</code>
|
||
<button
|
||
class="copy-button"
|
||
type="button"
|
||
data-copy="setup-command"
|
||
aria-label="Copy setup command"
|
||
>
|
||
Copy
|
||
</button>
|
||
</div>
|
||
<p class="caption">
|
||
Setup shows a plan for approval. Restart your agent after setup.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container">
|
||
<div class="section-heading">
|
||
<h2>What REA can analyze</h2>
|
||
<p>
|
||
Choose a guide for your binary, JavaScript app or browser session.
|
||
</p>
|
||
</div>
|
||
<div class="workflows">
|
||
<div>
|
||
<h3>Native binaries</h3>
|
||
<p>
|
||
Inspect functions, strings, references and call relationships in
|
||
executables and libraries.
|
||
</p>
|
||
<a href="guides/native/">Native analysis guide</a>
|
||
</div>
|
||
<div>
|
||
<h3>JavaScript & Electron</h3>
|
||
<p>
|
||
Map modules, routes, IPC and native dependencies from an
|
||
application folder or ASAR archive.
|
||
</p>
|
||
<a href="guides/javascript/">Application workflows</a>
|
||
</div>
|
||
<div>
|
||
<h3>Browser & runtime activity</h3>
|
||
<p>
|
||
Capture selected browser or process activity, then compare the
|
||
results across runs.
|
||
</p>
|
||
<a href="guides/browser/">Browser observation guide</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container feature-case">
|
||
<div>
|
||
<p class="eyebrow">Case study · Native</p>
|
||
<h2>Rebuilding DX-Ball</h2>
|
||
<p>
|
||
DX-Ball is a 1996 Windows game. The project is reconstructing it
|
||
in C, using REA to inspect the executable and independent tests to
|
||
check the recovered behavior.
|
||
</p>
|
||
<p>
|
||
<a class="text-link" href="showcase/dx-ball/"
|
||
>Follow the investigation</a
|
||
>
|
||
</p>
|
||
<p class="case-note">
|
||
Work so far covers boards, resources, brick hits, animations,
|
||
particles and bonus production. The playable game is still in
|
||
progress.
|
||
</p>
|
||
</div>
|
||
<dl class="stats case-stats">
|
||
<div>
|
||
<dt>55</dt>
|
||
<dd>functions in maintained C</dd>
|
||
</div>
|
||
<div>
|
||
<dt>45,380</dt>
|
||
<dd>original-x86 differential cases</dd>
|
||
</div>
|
||
<div>
|
||
<dt>33</dt>
|
||
<dd>complete functions with matching compiled bytes</dd>
|
||
</div>
|
||
</dl>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container feature-case">
|
||
<div>
|
||
<p class="eyebrow">Case study · Electron</p>
|
||
<h2>Notion's Electron clipboard</h2>
|
||
<p>
|
||
A copy operation crosses from the page to Electron's main process.
|
||
Inspect Notion's packaged JavaScript with REA, then follow one
|
||
channel through the wrappers to the system clipboard.
|
||
</p>
|
||
<p>
|
||
Short code excerpts show each handoff. A second figure explains
|
||
how an HTML marker connects ordinary clipboard text to Notion's
|
||
structured block data.
|
||
</p>
|
||
<a class="text-link" href="showcase/notion/"
|
||
>Follow the clipboard bridge</a
|
||
>
|
||
</div>
|
||
<figure class="workflow-figure case-preview">
|
||
<p class="figure-title">Clipboard IPC channel</p>
|
||
<div class="code-block">
|
||
<div class="code-header"><span>Preload · send</span></div>
|
||
<pre><code>invokerInMain(
|
||
<span class="notion-channel">"notion:clipboard:write"</span>
|
||
)</code></pre>
|
||
</div>
|
||
<div class="code-block">
|
||
<div class="code-header"><span>Main process · receive</span></div>
|
||
<pre><code>addListener(
|
||
<span class="notion-channel">"notion:clipboard:write"</span>,
|
||
handler
|
||
)</code></pre>
|
||
</div>
|
||
<figcaption>
|
||
Matching names give the investigation a path to follow.
|
||
</figcaption>
|
||
</figure>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container feature-case">
|
||
<div>
|
||
<p class="eyebrow">Case study · PC-98 DOS</p>
|
||
<h2>TH04's aimed bullet rings</h2>
|
||
<p>
|
||
Inspect a 16-bit DOS function with REA. Follow its angle
|
||
calculation from original instructions to readable C++, then see
|
||
how adding the player's direction turns a ring of bullets.
|
||
</p>
|
||
<a class="text-link" href="showcase/th04/"
|
||
>See the bullet calculation</a
|
||
>
|
||
</div>
|
||
<figure class="workflow-figure case-preview th04-preview">
|
||
<p class="figure-title">Fixed and aimed rings</p>
|
||
<img
|
||
src="assets/figures/th04-bullet-ring.svg"
|
||
width="1000"
|
||
height="520"
|
||
alt="TH04's fixed and aimed 16-bullet rings side by side. The first bullet is highlighted in blue; adding the player direction rotates every bullet while preserving the spacing."
|
||
loading="lazy"
|
||
decoding="async"
|
||
/>
|
||
<figcaption>
|
||
Adding the player's direction rotates every bullet by the same
|
||
angle.
|
||
</figcaption>
|
||
</figure>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container feature-case">
|
||
<div>
|
||
<p class="eyebrow">Case study · CTF</p>
|
||
<h2>Solve a CTF flag checker</h2>
|
||
<p>
|
||
Use REA to inspect an easy DownUnderCTF binary. Extract its
|
||
checking rules, solve for the flag and confirm that the original
|
||
program accepts it.
|
||
</p>
|
||
<a class="text-link" href="showcase/ctf/">See the CTF solution</a>
|
||
</div>
|
||
<figure class="workflow-figure case-preview">
|
||
<p class="figure-title">One check reveals one character</p>
|
||
<div class="code-block">
|
||
<div class="code-header">
|
||
<span>From REA's code and data</span>
|
||
</div>
|
||
<pre><code>Mask: skip 21, select 1, skip 14
|
||
Target: 55
|
||
|
||
code[21] = 55 → '7'</code></pre>
|
||
</div>
|
||
<figcaption>
|
||
Each mask selects characters whose codes must add up to a stored
|
||
number. This one selects a single character.
|
||
</figcaption>
|
||
</figure>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="section">
|
||
<div class="container start-row">
|
||
<div>
|
||
<h2>What would you like to understand?</h2>
|
||
<p>
|
||
Connect REA to your coding agent, or run your first analysis from
|
||
the terminal.
|
||
</p>
|
||
</div>
|
||
<a class="button" href="get-started/">Get started</a>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
<footer class="site-footer">
|
||
<div class="container footer-inner">
|
||
<p>REA · Reverse Engineer Anything</p>
|
||
<div class="footer-links">
|
||
<a href="https://github.com/morluto/rea">Source</a
|
||
><a href="https://github.com/morluto/rea/blob/main/LICENSE"
|
||
>MIT license</a
|
||
><a href="https://discord.gg/GkcryMnJDM">Community</a>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
|
||
<a class="back-to-top" href="#top" aria-label="Back to top">
|
||
<span aria-hidden="true">↑</span> Top
|
||
</a>
|
||
</body>
|
||
</html>
|