Decompiling x86 PE binary to C?
-
22-09-2019 - |
Question
I'd like to know if there's any way to generate the C code of a x86 PE binary. I don't really need this, I just want to learn how some closed-source software are working.
From my common sense, I think the process is:
- Converting the x86 binary to Assembly, which can be done with a disassembler like OllyDbg.
- Converting this Assembly to C. I don't know any tools for that, any that's my question actually.
I'll very appreciate your help. Thank you.
P.S: If this is not legal (although I'm not a cracker and have no cracking purposes) please delete this question.
Solution
If you use IDA Pro with the HexRay decompiler you can get a somewhat readable C source code. (But prepare for a bunch of goto
-s and unnecessary variables).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow