How to REA: Step-by-Step Reverse Engineering Guides
Deep-dive technical tutorials for every reverse engineering target supported by REA (rea-agents by morluto). Select any target below for end-to-end instructions, AI agent prompt templates, CLI commands, and low-level binary mechanics:
Comprehensive tutorials for 18 distinct targets: offline ELF layout, Linux kernel modules, Unity IL2CPP games, PyInstaller packaged executables, Electron desktop apps, .NET assemblies, network traffic HAR captures, Android APKs, and firmware.
Offline ELF Layout & Static Mitigations
Inspect ELF64/ELF32 object layouts, symbol tables, section headers, dynamic relocations, and static binary exploit mitigations without running disassemblers or launching the binary.
Linux Kernel Modules (.ko)
Audit loadable kernel modules (.ko), proprietary drivers, and suspected rootkits statically: extract .modinfo metadata, verify vermagic compatibility, inspect exported symbols (__ksymtab), and audit unresolved kernel APIs.
Unity IL2CPP Games & Binaries
Deconstruct Ahead-Of-Time (AOT) compiled Unity games and mobile apps: decode global-metadata.dat (versions 24-39), link method tokens to GameAssembly.dll or libil2cpp.so, and export Ghidra analysis seeds without running the game.
Packaged Applications (PyInstaller / Godot / SEA)
Unpack single-executable bundled applications statically: carve PyInstaller CArchive/PYZ archives into clean .pyc bytecode, dump Godot .pck scene assets, and deconstruct Node.js Single-Executable Application (SEA) blobs.
JavaScript & Electron Desktop Apps
Deconstruct modern desktop applications (Notion, Slack, Discord, VS Code): inspect app.asar archives in memory, map renderer-preload-main IPC communication channels, unminify webpack bundles, and audit contextIsolation security.
Native Binaries (Mach-O, PE, ELF)
Decompile compiled machine instructions across Apple Silicon (ARM64), Intel (x86_64), and MIPS into structured C pseudocode: extract function dossiers, traverse cross-references (xrefs), and synthesize verified clean-room algorithms.
Android APKs & DEX Bytecode
Audit Android applications from package manifest to decompiled Java/Kotlin source code: unpack APK archives, extract AndroidManifest.xml components, decompile Dalvik/ART classes with JADX, and audit exported attack surfaces.
Android Device Telemetry & Live ADB
Interact with live physical Android devices and emulators: query system properties via getprop, monitor process states and memory maps, capture live screenshot Evidence, and trace runtime logcat buffers.
.NET Assemblies & CIL Bytecode
Statically audit .NET Core, .NET Framework, and .NET Standard assemblies: parse ECMA-335 metadata tables, decode Common Intermediate Language (CIL) instructions, and map unmanaged P/Invoke [DllImport] library boundaries without running the CLR.
Saved Network Captures & Private APIs
Transform recorded network traffic into complete API blueprints: parse HTTP Archive (HAR) files, decode WebSocket frames and Protobuf bodies, and spin up local mock servers with evidence-gated writes for autonomous agent testing.
Websites & Browser Scenarios
Inspect single-page web applications and browser scenarios: connect over Chrome DevTools Protocol (CDP) loopback, extract DOM structure, unminify client scripts via sourcemaps, and capture visual page Evidence without triggering anti-bot protections.
EVM Smart Contract Bytecode
Deconstruct unverified Ethereum Virtual Machine (EVM) bytecode: identify 4-byte function dispatch selectors, infer function argument types, audit state mutability (view, pure, payable), and map storage slot modifications without needing ABI files.
Embedded Firmware Images
Extract and audit IoT router, automotive, and embedded device firmware: scan binary flash ROMs for magic signatures, unpack SquashFS, CramFS, and JFFS2 filesystems, and hand off extracted ARM/MIPS binaries to decompilers.
Apple Applications & Bundles (.app / .dylib)
Deconstruct macOS and iOS application bundles: select universal FAT Mach-O slices (Apple Silicon ARM64 vs Intel x86_64), parse dyld chained fixups, verify code-signing entitlements, and safely inspect binary property lists without class instantiation.
Recorded Linux Crashes & Core Dumps
Investigate software crashes, segfaults, and memory corruption incidents: parse ELF core dump notes (NT_PRSTATUS, NT_PRPSINFO), extract register states across all threads, detect stack pointer corruption, and inspect memory mapping candidates.
16-Bit DOS & Retro Binaries (PC-98 / MS-DOS)
Decompile vintage 16-bit real-mode x86 executables (NEC PC-98, MS-DOS): parse segmented memory models (CS:IP, DS, ES), recover fixed-point mathematical algorithms, and synthesize verified modern C/C++ replacements.
Process Behavior & PTY Capture
Observe command-line tools and background processes dynamically: run targets inside an isolated pseudo-terminal (PTY), capture ANSI terminal escape sequences, record filesystem modifications, and compare execution behavior across inputs.
JEB Decompiler Integration (Enterprise Units)
Interface with Pcreative JEB Decompiler in enterprise environments: query project units, decompile DEX, native machine code, and WebAssembly units, and synchronize comments and renamed symbols with AI reasoning agents.
Official rea.tools Practice Labs
Chrome Dinosaur: Speed Acceleration Rule
Extract the exact acceleration constants (speed: 6, acceleration: 0.001, max: 13) from index.js without reading minified code manually.
View Browser Analysis Guide →Why Does 200 + 10% Give 220?
Disassemble the calculator's % button branching logic to discover why addition takes 10% of previous (200 + 20) while multiply takes a decimal fraction.
View Native Binary Guide →Under-The-Hood Security Mechanics in REA
REA implements production-grade binary analysis primitives designed for security researchers and reverse engineers dealing with hardened, modern targets:
Running untrusted Electron binaries directly risks triggering anti-tamper callbacks or malicious preload scripts. REA solves this through decoupled observation modes: passive observation attaches to an existing Chromium DevTools port (http://127.0.0.1:9223) to inspect frame hierarchies, console events, and network requests without injecting invasive instrumentation code.
Modern Apple Silicon binaries use LC_DYLD_CHAINED_FIXUPS rather than flat relocation tables. REA's native probe walks 64-bit little-endian pointer chains, resolving DYLD_CHAINED_PTR_ARM64E signed pointers, extracting Objective-C class records, and parsing Swift witness tables and vtable descriptors directly.
REA implements a standalone zero-execution byte reader: it parses binary plists, $objects array references, and $top roots without instantiating Objective-C classes. It enforces a strict 64 MiB input boundary, 200,000 reference cap, and 128-level recursion ceiling to guarantee analysis safety.
REA connects to Hopper via an embedded Python script (hopper_bridge.py) communicating over ~/.rea/hopper_bridge.sock, returning function dossiers in single-digit milliseconds. For Ghidra, REA invokes analyzeHeadless with ReaGhidraBridge.java, binding directly to DecompInterface with strict timeout and GC controls.