Decompiling EXE to ASM

Athiwat Chunlakhan picture Athiwat Chunlakhan · Oct 22, 2009 · Viewed 16k times · Source

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?

Answer

Todd Stout picture Todd Stout · Oct 22, 2009

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