Posts Tagged ‘dumpbin’

Dependent dll listing?

List all API’s being used by a Windows App/Dll

Use dumpbin…

Dumpbin /imports SomeDll.dll > APIList.txt

Dumpbin /imports SomeExe.exe > APIList.txt

So next time if you find some application that looks and works cool and you would like to know what all API’s that application is using, go ahead use dumpbin or Dependency walker( The first pane to the right list’s all those API’s ).

Using Dependency walker is much better since you can scroll through the list.

Categories: C++, VC++ Tags: ,

Disassembling a dll or exe

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 🙂

%d bloggers like this: