Decompiling EXE to ASM

16,933

Solution 1

You can install Cygwin and use objdump to decompile an exe into asm. Be sure you select the binutils when installing cygwin. After installing cygwin, you can run the following from a bash shell:

objdump -Slx yourpgm.exe

Solution 2

You can use some free distrubuted disassembler.for example: ollydbg diassembler.

note: there is only some MS-DOS stub executeable code in the PE header.

Share:
16,933
Athiwat Chunlakhan
Author by

Athiwat Chunlakhan

https://www.athiwat.xyz/

Updated on June 04, 2022

Comments

  • Athiwat Chunlakhan
    Athiwat Chunlakhan almost 2 years

    I want to make a basic antivirus for my free time. Basically I learned about the basic structure of the EXE(windows) file. How do I extract the ASM code from the file and the PE header?

  • zxcat
    zxcat over 14 years
    Yes, or run Linux on Virtual Machine and use objdump there. Sounds like a black humor ;)
  • j_kubik
    j_kubik almost 11 years
    "there is only some MS-DOS stub executeable code in the PE header." And what if there isn't? You never know where virus will choose to hide, and headers are also loaded to memory, right?