Read any binary.

A disassembler and decompiler with interactive control-flow graphs, C-like output and a scriptable analysis engine. Mach-O, ELF, PE and WebAssembly for x86, ARM, MIPS and RISC-V—plus an MCP server your AI agent can drive.

demo.binraw, arm64
ProceduresStrings

Double-click a name to rename it

demo.bin, 100 bytes, 2 functions
Try it: switch views, rename a function, or let the agent run. Every listing is real rdis output for a 100-byte arm64 program.
124/124optimized, vectorized and struct-heavy functions recompile and compute the same resultsarm64 and x86-64, clang -O1 to -O3
96%of real arm64 functions decompile to C that compiles1,045 of 1,085 from macOS’s own /usr/bin. x86-64: 95%
0.6 sto reopen a 9 MB Flutter library31 s the first time; the analysis is cached by content
19CPU familiesx86, x86-64, ARM with Thumb, ARM64, MIPS, RISC-V, WebAssembly — plus 12 more through Ghidra’s SLEIGH specs

Get the highlights.

Formats

Executables, libraries, firmware and the packages they ship in.

Mach-OELFPEWebAssemblyRaw firmwareAPKIPADMG

Runs on

macOS.Linux.Windows.

One pip install. Opens in any modern browser.

SIMD

Lane-exact C for NEON and SSE.

Vector loops decompile to C that compiles, not to comments.

MCP tools

35

Built in, with no dependencies. Any agent can call them.

JNI

229

JNIEnv calls named, and RegisterNatives tables traced to their Java methods.

Also inside

Diff, signatures, an emulator, triage, and a plugin SDK.

Binary diffLibrary signaturesP-code emulatorBinary triagePlugin SDK

SLEIGH CPUs

12

more CPU families through Ghidra's SLEIGH specs, 19 named variants and any of 194 language variants as --arch sleigh:<id>.

Teams

Analyzed once. Shared by everyone.

Host it for your team. Each person keeps their own names and comments, while the heavy analysis is shared by everyone.

MIPS and RISC-V

0

failures decompiling 1,200 functions from Debian’s busybox, delay slots and all.

Structs

Real declarations, typed fields.

Linked lists keep their next pointer.

License

MIT

Free and open source.

From 36 bytes to readable C.

Scroll to watch rdis lift one real function. Every line on the right is actual rdis output.

Bytes

It starts as nine words of machine code.

Nine little-endian arm64 instructions. Nothing here says it's a string hash yet.

Assembly

Decoded, split into blocks, cross-referenced.

Capstone decodes each word. rdis finds the basic blocks, labels the branch targets and records who jumps where.

C

Lifted back into C you can read.

The shift-and-add folds back into x8 + (x8 << 5), wrapped to 32 bits because it runs in a w register. The first argument becomes a char * because the loop reads bytes through it.

hash.bin, arm64

        
rdis hash.bin --loader raw --arch arm64 -f _djb2 -d

Checked by running it.

C that looks right can still compute something else. So rdis is tested by execution, on code a compiler has already optimized and vectorized.

  1. Compilea C function with clang at -O1, -O2 or -O3.
  2. Decompilethe binary with rdis.
  3. Compile the outputso it has to be valid C, vector code included.
  4. Run bothon the same inputs and compare every result.

An auto-vectorized loop, as rdis prints it. Four NEON lanes per add, in C that compiles and matches.

while (1) {
    t1 = (v128)((u32x4)(v128)*(v128u *)((char *)(x8_1 - 0x20) + 16) + (u32x4)v1);
    t2 = (v128)((u32x4)(v128)*(v128u *)((char *)x8_1 + 16) + (u32x4)v3);
    t3 = x11 != 0x10;
    v0 = (v128)((u32x4)(v128)*(v128u *)(x8_1 - 0x20) + (u32x4)v0);
    v1 = t1;
    v2 = (v128)((u32x4)(v128)*(v128u *)x8_1 + (u32x4)v2);
    v3 = t2;
    x11 = x11 - 0x10;
    x8_1 = x8_1 + 0x40;
    if (!t3) break;
}
t4 = (v128)((u32x4)v3 + (u32x4)(v128)((u32x4)v2 + (u32x4)(v128)((u32x4)v1 + (u32x4)v0)));
x8 = __builtin_reduce_add((u32x4)t4);
// int vsum(int *a, int n), clang -O3, arm64

Run it yourself: python tests/maturity.py for the 124 cases, python tests/compile_rate.py arm64 40 40 for real binaries.

If it ships, rdis opens it.

Drop an APK on the page and pick one library, or open all 200 at once. Each one is analyzed the first time you look at it.

Binaries
Mach-Othin and fat
ELFstripped too
PE.exe, .dll
WASMown reader
Rawfirmware at any base
Packages
APKlib/*/*.so
IPAPayload/*.app
AARjni/*/*.so
JARbundled natives
DMGvia hdiutil
tar.gzand xz, bzip2

Look closer.

See the shape of a function.

Explore basic blocks, conditional branches and loop back edges. Zoom around the pointer, drag to pan, use the fit-to-view control to see the full topology, and use Entry to return to readable entry-scale without reopening the function. The minimap recenters large graphs; blocks can be inspected by keyboard, and the graph exports as standalone SVG. Broad switch/fan-out functions automatically use left-to-right (LR) layout so destinations and common join/exit blocks remain visible in the entry context; use LR/TB to choose the layout manually. For very tall functions, the entry-focused view plus minimap is usually more readable than fitting every block at once. For automation, export Graphviz DOT with --cfg.

loc_100003f20: mov w8, #0x1505 cbz x1, #0x100003f3c loc_100003f28: ldrb w9, [x0], #1 add w8, w8, w8, lsl #5 add w8, w8, w9 subs x1, x1, #1 b.ne #0x100003f28 loc_100003f3c: mov w0, w8 ret
takenfall throughloop

Objective-C and Swift, put back together.

Classes, categories, protocols, ivars with offsets, properties and selectors. Swift types with their fields and conformances, demangled.

@interface RDDocument : NSObject <NSCopying> {
    NSString *_path; // +0x8
    unsigned long long _arch; // +0x10
}
@property (nonatomic, copy) NSString *path;
- (id)initWithPath:(id)arg0; // 0x100004a10
- (id)copyWithZone:(void *)arg0; // 0x100004b2c
+ (id)documentWithURL:(id)arg0; // 0x100004b88
@end

@protocol RDExporting
- (BOOL)export:(id)arg0;
@optional - (id)suggestedName;
@end
// sample of the --classes format

Follow a function through the program.

The CFG answers “where can execution go next?” The Calls view answers “who calls this function, and what does it call?” Explore a bounded caller/callee neighborhood, including imports and unresolved targets, then jump into the function or export the graph for review.

Interprocedural, not just local flow.

Pick Callers, Callees, or Both and a depth from 1–4. The graph labels local functions, imports and unresolved targets separately. Resource limits are explicit; a truncated graph says so instead of pretending it contains every relationship.

caller_fixture 0x4030 · function parse_packet 0x4010 · selected decode_payload 0x4150 · function puts · import unresolved target
function callimport / externalunresolved

One analysis surface across workflows.

Use the Calls toolbar mode, or request the same bounded graph from the CLI, in-app console, or MCP. The result includes DOT plus node/edge counts, depth and truncation metadata; it is not a claim that every indirect call has been resolved.

# Two call edges around parse_packet
rdis app.bin -f parse_packet \\
  --callgraph \\
  --callgraph-direction both \\
  --callgraph-depth 2 \\
  | dot -Tsvg -o calls.svg

# In-app console
callgraph parse_packet callers 2

# MCP tool
callgraph(path, func, direction="callees", depth=2)

Structs come back as structs.

Field accesses through a pointer argument become a declared struct with typed fields. A field loaded back into the same pointer is a pointer to the struct itself, so a linked list reads as one.

A linked list, from arm64.

int listsum(struct node *p) at -O2, decompiled. The next pointer is recovered as field_8.

struct s_100000350_x0 {   /* recovered from field accesses */
    int32_t field_0;   /* +0x0 */
    uint8_t _pad_4[4];
    struct s_100000350_x0 *field_8;   /* +0x8 */
};

int64_t _listsum(struct s_100000350_x0 * x0) {
    int64_t x8;
    int64_t t1;

    x8 = 0;
    if (x0 != 0) {
        while (1) {
            t1 = x0->field_8 != 0;
            x8 = (int32_t)(x0->field_0 + x8);
            x0 = x0->field_8;
            if (!t1) break;
        }
    }
    return x8;
}

JNI calls by name.

A native method reaches Java through a table of 229 function pointers. rdis maps every slot, so the double indirection reads as the call it is.

// before: *(int64_t *)(*(int64_t *)x19 + 0x30)(x19, …)
x19_1->FindClass("java/io/IOException")
// from libdatastore_shared_counter.so, arm64

// a RegisterNatives table entry becomes a header:
/* JNI native nativeInit(Ljava/lang/String;I)V */

Your agent can reverse engineer too.

A built-in MCP server speaks stdio JSON-RPC with no dependencies. Point Claude or any MCP client at it.

35 tools. The same analysis as the UI.

Renames and comments an agent makes land in the same .rdb file you open in the browser.

Read the program: info, list_functions, search, lookup, strings, imports, classes, jump_tables, jni_natives, unresolved, triage, capabilities. Read the code: disassemble, decompile, cfg, basic_blocks, stack_frame, hexdump, read_bytes, find_bytes, find_insns. Read the relationships: xrefs, callers, callees, callgraph, diff, signatures. Run it: emulate, a P-code interpreter that never executes host code. Write back: rename, rename_many, comment, define_function, undefine_function, set_type, bookmarks.

→ tools/call
  {"name": "decompile",
   "arguments": {"path": "hash.bin", "func": "_djb2"}}

← int64_t _djb2(char * x0, int64_t x1) {
      int64_t x8;
      x8 = 0x1505;
      …

→ tools/call
  {"name": "rename",
   "arguments": {"addr": "0x100003f20", "name": "hash_name", …}}

← {"ok": true, "name": "hash_name"}

Yours, or your team’s.

On your machine.

One install in a virtual environment. Open a binary and the browser comes up with it.

# macOS / Linux
python3 -m venv .venv && source .venv/bin/activate
pip install .
rdis-gui ./MyApp

For your team.

Bind to 0.0.0.0 and every visitor gets a private session. The same binary is analyzed only once, and nobody sees anyone else’s names or comments.

rdis-gui --host 0.0.0.0 --port 8000

rdis and Hopper.

rdis

Free and open source, MIT

  • macOS, Linux, WindowsPlatforms
  • Mach-O, ELF, PE, WASMFormats
  • APK, IPA, DMG in placePackages
  • Browser, multi-sessionInterface
  • CFG + bounded caller/callee graphGraph workflow
  • Built-in MCP, CLI, console + Python APIAutomation

Hopper

Commercial

  • Native desktop appInterface
  • Mach-O, ELF, PEFormats
  • Extract firstPackages
  • Native desktop workbenchInterface
  • Editable graph nodes + PDF exportGraph workflow
  • Integrated MCP + Python APIAutomation

Both products offer decompilation, graph navigation and MCP integration. rdis emphasizes a browser-first, multi-session workspace and one bounded caller/callee graph exposed consistently in the GUI, CLI, console and MCP. Hopper emphasizes a native analyst workflow with editable graph nodes and PDF export. This is a feature-scope comparison, not an accuracy ranking. Graph rendering and navigation are regression-tested in Chromium and Firefox (CI). Measured function-discovery numbers against Ghidra and radare2 are below.

Decompiled output types its API calls from a library of 206 system prototypes (libc, POSIX, CoreFoundation and the Objective-C runtime), and Objective-C methods come out as valid Objective-C.

Measured against Ghidra and radare2.

Same task, same binaries, same clock: find the functions of the unstripped build in the stripped one. Numbers from the 2026-10-21 run on macOS arm64, rdis git 89ed6f4.

Function discovery on the builds without the linker's function-start table. Each cell is recall / extra functions found / wall time. Higher recall and fewer extras are better.
BuildrdisGhidra 12.1.4radare2 6.2.4
lua-arm640.972 / 24 / 0.8 s0.907 / 4 / 5.9 s0.916 / 24 / 1.6 s
lua-x86_640.979 / 16 / 1.0 s0.976 / 2 / 6.7 s0.686 / 4 / 0.8 s
sqlite-arm640.958 / 15 / 4.8 s0.751 / 16 / 13.0 s0.834 / 73 / 7.8 s
sqlite-x86_640.978 / 20 / 6.7 s0.948 / 14 / 15.7 s0.666 / 6 / 4.6 s
zlib-arm640.855 / 3 / 0.4 s0.709 / 1 / 4.4 s0.680 / 17 / 0.5 s
zlib-x86_640.947 / 1 / 0.5 s0.825 / 0 / 5.1 s0.670 / 0 / 0.3 s

Oracle: nm on the unstripped build, scored only inside __TEXT,__text, so stub entries count for nobody. Commands, tool versions, binary hashes and the raw result file are in benchmarks/scorecard/ in the repository; a tool that is not installed is recorded as not_available and nothing here is estimated.

Install from GitHub.

rdis needs Python 3.9 or newer and git. Everything installs into its own virtual environment, nothing system-wide.

Paste this once. It makes the environment, installs rdis from GitHub and starts it.

Step 1

Make a virtual environment.

A folder of its own for rdis and its two libraries, Capstone and LIEF.

Step 2

Install rdis.

Straight from the repository. This gives you rdis, rdis-gui and rdis-mcp.

Step 3

Start rdis.

Your browser opens rdis on 127.0.0.1:8000. Drop a binary, app or package onto the page, or click Open file. Press Ctrl+C in the terminal to stop.

Every time after. Activate the environment and start rdis. Already know the file? Put its path after rdis-gui to open it straight away.

Update to the latest. Same environment, one command.

Prefer the source? git clone https://github.com/sagarchive/rdis.git, then pip install . inside the folder. On Windows, if PowerShell blocks the activate script, run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once.

Then use it your way.

The same analysis from the browser, the command line, Python or an AI agent.


        
      

Optional: swift-demangle, c++filt, dot and lldb add demangling, rendered graphs and the debugger. pip install '.[ir]' installs pypcode, a SLEIGH/P-code frontend for RDIS-supported language IDs—not the entire Ghidra workbench or its full decompiler pipeline. RDIS’s downstream typed IR, data-flow and C reconstruction remain experimental and are validated separately.