Jun 062007

Use dumpbin…

// Disassemble a dll
dumpbin /disasm SomeDll.dll > RedirectToSomeFile.asm

// Disassemble an exe
dumpbin /disasm SomeExe.exe > RedirectToSomeFile.asm

Redirecting to a file, results in faster disassembling.

Help for dumpbin displays the following information!

Microsoft (R) COFF Binary File Dumper Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

usage: DUMPBIN [options] [files]

Using dumpbin we can also list out the import table and export table of a dll or exe. An e.g.

dumpbin /EXPORTS %systemroot%/system32/user32.dll

Try out all those options 🙂