LLM4Decompile

LLM4Decompile

โ˜… 4 ๐Ÿ”– 2500 saves ๐Ÿ’ฐ Free GitHub

LLM4Decompile is an open-source family of large language models built for one specialized job: decompiling binary code back into readable, recompilable C source. It has around 7,200 stars on GitHub and continues to release improved models in 2026.

Overview

Reverse engineers usually get back mangled pseudo-code from traditional decompilers. LLM4Decompile instead fine-tunes open LLMs specifically on binary-to-source translation, so the output reads like the original human-written C. The project releases a series of models at several sizes on Hugging Face, trained on large-scale executable datasets, and evaluates them with a strict metric: whether the decompiled code actually recompiles and passes the original program’s tests. Later releases added a refinement mode that works with Ghidra output, iteratively improving the decompiler’s pseudo-code into clean source. First presented at EMNLP 2024, the project has become a reference point for LLM-based reverse engineering. The model family spans several sizes, from compact 1.3B builds that run on a laptop to 33B models for maximum quality, and ships in two flavors: End models that decompile binaries directly, and Ref models that take Ghidra’s pseudo-code as input and refine it into clean, recompilable source. Everything โ€” models, code and evaluation โ€” is free under the MIT license.

Key Features

  • Purpose-trained LLMs that turn binaries into readable C source
  • Multiple model sizes released openly on Hugging Face
  • Evaluated by re-compilability and functional correctness, not just similarity
  • Refinement mode that polishes Ghidra decompiler output
  • End-to-end decompilation and assembly-focused variants
  • Reference project for AI-assisted reverse engineering

๐Ÿ’ณ Pricing

LLM4Decompile is completely free and open source under the MIT license. The models can be downloaded and run locally; there is no paid tier.

Who Is It For

LLM4Decompile is for reverse engineers, malware analysts, security researchers and curious developers who want AI help understanding compiled binaries โ€” and for ML researchers studying code models on hard, verifiable tasks.

๐Ÿš€ Visit LLM4Decompile Official Site

๐Ÿšฉ Report an issue