Converting assembly code to C code

39,588

Solution 1

You cannot go backward to the original C but can do a static binary translation into C that is equivalent to the machine instruction.

Solution 2

Wiki Link to disassemblers

Solution 3

The term you are looking for is 'decompiler'. Check here for a discussion:

http://en.wikibooks.org/wiki/X86_Disassembly/Disassemblers_and_Decompilers#Decompilers

Solution 4

I used IDAPro in the past and it does a pretty good job doing what you need.

Check it out.

http://www.hex-rays.com/idapro/

Share:
39,588
Brian
Author by

Brian

Updated on December 30, 2020

Comments

  • Brian
    Brian over 3 years

    What process can be used to convert assembly code into equivalent C code? What kind of tools can be leveraged for higher result accuracy?