Reverse Engineer Anything Software: Setup & Analysis - 소프트웨어

Reverse Engineer Anything Software: Setup & Analysis

Learn how to reverse engineer anything software with AI coding agents using REA's CLI and MCP workflows for apps, Electron packages, and native binaries.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents analyze software through CLI + MCP Server.
  • Dual interfaces: Use the terminal CLI for direct analysis, or connect agents like Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin via MCP.
  • Local-first analysis: REA runs locally and emphasizes evidence chains and reproducible investigations, not source recovery.
  • Supported targets: Native binaries, Electron apps, JavaScript, websites, browser runtimes, and Android APKs.
  • Quick start: Run npx rea-agents@latest setup to begin your first investigation.

What Is Reverse Engineer Anything Software?

Reverse Engineer Anything software, commonly shortened to REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. Rather than replacing tools like Ghidra or GDB, REA acts as a bridge: it exposes analysis capabilities through a CLI and an MCP Server, so an agent such as Claude Code or Cursor can request targeted operations — symbol searches, function decompilation, call tracing — while the researcher stays in control of every step.

The official project, available on GitHub and rea.tools, stresses three principles: local analysis, evidence chains, and reproducible investigation workflows. REA is not designed to recover original source code or clone proprietary software — it helps you understand how software behaves by documenting what you observe.

ConceptWhat It Means in Practice
Local analysisTargets are inspected on your machine; no cloud upload of binaries
Evidence chainEvery conclusion links to a tool output, address, or runtime trace
ReproducibilityCommands, logs, and configs are saved so others can rerun the investigation
Agent-friendlyTools are exposed with narrow schemas agents can call safely
Legal and Ethical Note

Reverse engineering is subject to licenses, contracts, and local law. Only analyze software you own or are authorized to investigate, and keep REA workflows focused on interoperability, security research, and learning.

CLI and MCP: The Two Entry Points

REA offers two complementary interfaces, and choosing between them depends on how you like to work.

CLI Workflow

  • Terminal-driven commands: analyze, inspect, search, function, xrefs, trace
  • Deterministic and scriptable
  • Best for repeatable batch analysis
  • Ideal when you want exact control over each step

MCP Workflow

  • Exposes tools to AI coding agents via the MCP Server
  • Agents discover and call analysis tools themselves
  • Supports Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Devin
  • Best for interactive, question-driven investigations

For MCP connections, the server is typically registered over stdio — the agent host launches it as a child process and communicates through standard input and output. A typical configuration points at the server command, sets a working directory, and passes only the environment variables the analysis needs.

InterfaceBest ForOutput StyleAutomation Level
CLITriage, scripting, batch jobsTerminal output and report files★★★★★
MCP + AgentExploratory analysis, explanationStructured agent reasoning with tool calls★★★★☆
Combine Both

The strongest REA workflows use the CLI to gather raw evidence (strings, symbols, disassembly) and the MCP agent to summarize, correlate, and draft reports from that evidence.

Step-by-Step: Your First Investigation

Follow this six-step workflow to go from an unknown target to a validated, reproducible report.

1

Prepare an isolated environment

Use a disposable VM or container for unknown binaries. Keep the original target read-only, record its SHA-256 hash, and store analysis output separately from the source file.

2

Install and diagnose

Run npx rea-agents@latest setup, then use diagnostics to verify Node.js, dependencies, and paths. Resolve any missing toolchain components before connecting an agent.

3

Connect your agent

Register the MCP Server in your agent's configuration, restrict it to an approved analysis directory, restart the host, and confirm the tools appear.

4

Identify the target

Before deep analysis, determine file type, architecture, executable format, imports, symbols, and obvious strings. This non-invasive profile guides everything that follows.

5

Ask focused questions

Make narrow requests — list symbols in a range, find references to a string, decompile one function, trace a call path. Focused requests produce context you can actually validate.

6

Validate and preserve

Reproduce important observations with the underlying tool, separate confirmed facts from open questions, and save the report with the target hash for reproducibility.

Evidence Over Guessing

REA's core discipline is preventing the agent from guessing. Every conclusion should cite an address, a tool output, or a runtime trace — otherwise it belongs in the "open questions" list, not the findings.

Targets and Recommended Tools

Different targets demand different techniques. REA organizes analysis around target types rather than one universal method.

Target TypeKey Analysis FocusTypical Artifacts
Native binariesFunctions, strings, cross-references, disassemblySymbol tables, call graphs, decompiled pseudocode
Electron appsASAR files, package.json, Main/Preload/Renderer processes, IPCExtracted JS, IPC channel maps
JavaScript / websitesBundles, source maps, runtime behaviorReconstructed module structure
Android APKsManifest, dex classes, resourcesDecompiled app logic

For deeper work, REA workflows pair naturally with established tools. Ghidra handles integrated static analysis and decompilation, GDB covers runtime validation with breakpoints and memory inspection, and GNU binutils (objdump, strings, readelf) delivers fast command-line triage that pipelines easily into agent context.

Ghidra — Static Core

  • Decompilation and cross-references
  • Project-based repeatability
  • Best for initial binary triage

GDB — Dynamic Validation

  • Breakpoints, registers, memory
  • Verifies static hypotheses at runtime
  • Scriptable sessions

binutils — Fast Triage

  • strings, objdump, readelf
  • Shell-pipeline friendly
  • Lowest learning cost
Context Management

Never paste an entire disassembly into an agent prompt. Pass artifact paths and request only relevant excerpts — oversized context is the most common cause of unreliable agent conclusions.

Troubleshooting and Investigation Checklist

Common problems cluster into a few groups, and each has a narrow fix.

SymptomLikely CauseFirst Fix
MCP server exits immediatelyWrong path, missing dependency, stdout log pollutionRun the server command manually; redirect logs to stderr
Tools not discovered by agentRegistration after init, bad schema, stale client cacheRestart the client; validate the tool schema
Decompilation unreadableStripped/optimized binary, wrong architectureConfirm format with file; load symbols; define code regions manually
Analysis times outWhole-file analysis for a narrow questionAdd range and result limits; split into bounded jobs
Permission deniedTarget outside approved workspaceMove inputs inside the analysis root; use least privilege

Before You Conclude an Investigation:

  • Target SHA-256 hash recorded before and after analysis
  • Every key finding linked to an address, tool output, or trace
  • Confirmed behavior separated from open questions
  • Commands, tool versions, and configs saved with the report
  • Agent interpretations rechecked in the disassembler or debugger
Reproduce Across Platforms

If behavior differs between Linux, macOS, and Windows, record tool versions, architecture, and environment variables in every report — path separators, quoting rules, and debugger capabilities vary across systems.

FAQ

Q: What is Reverse Engineer Anything software used for?

Reverse Engineer Anything (REA) is an open-source toolkit that connects AI coding agents to reverse engineering capabilities through a CLI and an MCP Server. It helps you analyze native binaries, Electron apps, JavaScript, websites, and APKs with documented, reproducible evidence chains.

Q: Which AI coding agents work with REA?

REA supports agent integrations including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin through its MCP Server, giving agents controlled access to analysis tools with narrow, typed schemas.

Q: Can REA recover the original source code of a program?

No. REA is designed for analysis, evidence recording, and reproducible investigation — not automatic source recovery or software copying. It helps you understand and document behavior, such as how a calculation or game mechanic works.

Q: How do I start using REA?

Run `npx rea-agents@latest setup` to install and initialize the environment, then configure the MCP Server for your coding agent. The official GitHub repository and rea.tools provide setup guides, Discord community access, and issue tracking.

Related Articles