neptune decompile
AI-powered decompilation of binary functions to C/C++ source
neptune decompile
Uses Claude to decompile binary functions back to readable C/C++ source code.
This is a dev-only feature. Set NEPTUNE_DEV=1 to enable it.
Usage
neptune decompile <BINARY> [OPTIONS]Arguments
| Argument | Description |
|---|---|
<BINARY> | Path to the firmware binary file |
Options
| Flag | Default | Description |
|---|---|---|
--function <ADDR> | Decompile a specific function at hex address | |
--all | Decompile all detected functions | |
--api-key <KEY> | Anthropic API key | |
--max-functions <N> | 50 | Maximum functions to decompile in --all mode |
--devirtualize | Use symbolic lifting to devirtualize obfuscated functions before decompilation (x86/x64 PE only) |
You must specify either
--function or --all.Examples
# Single function
NEPTUNE_DEV=1 neptune decompile firmware.bin --function 0x1234
# All functions (up to 50)
NEPTUNE_DEV=1 neptune decompile firmware.bin --all
# All functions with higher limit
NEPTUNE_DEV=1 neptune decompile firmware.bin --all --max-functions 200
# Devirtualize an obfuscated function
NEPTUNE_DEV=1 neptune decompile protected.exe --function 0x1234 --devirtualize