Repository navigation
DecompX 0.2.0
DecompX now has its own local AI. Ollama is no longer used or needed.
New
decompx setup-ai(also offered on first use in the desktop and Android apps) downloads a decompiler model (LLM4Decompile 1.3B v1.5, 0.87 GB) and the llama.cpp engine once, checks them against pinned checksums, then works offline.- Optional assistant model (Qwen3.5 2B, 1.28 GB) for questions, reviews and name suggestions:
decompx setup-ai --assistant. - The Android app decompiles on the phone itself.
- Windows programs are translated into the form the model understands, and string constants are shown to it.
decompile --modelwas removed; setDECOMPX_MODELto use another GGUF file.
How good it is
On small C test functions, the recompiled output behaved like the original in 155 of 224 cases (69%) with function names and 97 of 224 (43%) without. The decompiler covers x86-64 functions of up to 400 instructions; other code falls back to the assistant, which is much weaker. Always check the result against the disassembly. I also tried fine-tuning the model; it did worse on unseen functions, so the original is used.
Termux: run pkg upgrade first, then pkg install decompx and decompx setup-ai.
What was tested
- Windows and Linux (WSL Ubuntu): decompiling with the packaged command line. The desktop app was started and driven from source; the packaged one only checked to start.
- APK and Termux: on an x86_64 Android 15 emulator. The ARM64 builds, used by real phones, have not been run. The APK engine needs a 64-bit ARM processor from about 2018 or newer.
Packages containing Keystone (and Unicorn) are distributed under GPL-2.0. Their sources are attached; see THIRD_PARTY.md.