Decompilation is the process of analyzing compiled machine code or bytecode and reconstructing it into a form resembling source code in a high-level language such as C. It goes a step beyond disassembly, which only translates machine code into assembly instructions, by recovering functions, variables, and control structures. Because information such as variable names and comments is lost during compilation, the original source cannot be recovered exactly.
It is used in software reverse engineering, security vulnerability and malware analysis, and maintenance of legacy programs whose source is unavailable. Well-known decompilers include Ghidra, an open-source tool released by the US National Security Agency, Hex-Rays' IDA Pro, and JADX for Java.