Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decompiling EXE to ASM

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?

like image 904
Athiwat Chunlakhan Avatar asked Oct 22 '09 10:10

Athiwat Chunlakhan


2 Answers

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
like image 110
Todd Stout Avatar answered Dec 06 '22 01:12

Todd Stout


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.

like image 26
Jichao Avatar answered Dec 06 '22 01:12

Jichao