Decompiled from stock QuNexus_Firmware_v2.2.1.bin (EFM8UB20F64G / 8051, base 0x2400, 54279 bytes) with radare2 6.2.0. - qunexus_v2.2.1.asm : full linear disassembly (37287 lines, byte-faithful) - pseudocode_all.c : r2 pdc pseudocode for all 1002 functions - functions.txt : function index (1002 functions) - regen.sh + r2script.r2 : one-command reproduction (brew install radare2) Verified: reconstructing the binary from the asm byte-columns reproduces the original image byte-for-byte (30560 instructions + 195 data gaps).
8 lines
419 B
Bash
Executable File
8 lines
419 B
Bash
Executable File
#!/bin/sh
|
|
# regen.sh -- regenerate the disassembly & pseudocode from the stock binary.
|
|
# Requires radare2 (>=6.x): brew install radare2
|
|
set -e
|
|
BIN=QuNexus_Firmware_v2.2.1.bin
|
|
command -v r2 >/dev/null || { echo "radare2 (r2) not found; brew install radare2"; exit 1; }
|
|
r2 -a 8051 -b 8 -m 0x2400 -q -i r2script.r2 "$BIN" 2>&1 | grep -vE "^WARN|^INFO"
|
|
echo "regenerated: functions.txt qunexus_v2.2.1.asm pseudocode_all.c" |