Re:Ask HN: How to Decode .exe Binary to Recover Source Code
by jg23497 on Wednesday June 17, 2020 @11:24AM
(#23552533)
Unfortunately, obtaining the source code used to produce a C++ executable from only the executable itself is an unsolved problem and reverse engineering is a generally difficult and labour-intensive process. However, there are tools that will help to reduce the level of pain involved.
The Hex-Rays Decompiler for IDA Pro will produce a remarkably good result in functional terms, but its output won't closely resemble the code you remember writing.
Ghidra looks like a good open-source alternative, though I haven't tried it myself.
The Hex-Rays Decompiler for IDA Pro will produce a remarkably good result in functional terms, but its output won't closely resemble the code you remember writing.
Ghidra looks like a good open-source alternative, though I haven't tried it myself.