The Grimoire of Nonsense

個人的なメモを残すブログ

DLLが公開している関数を調べる

VC用ツールのパスを通してから

dumpbin /exports (調べたいdllファイル)

のコマンドを実行する。
これで公開している関数一覧が取得できる。

以下実行例

C:\Users\Selon\Desktop>dumpbin /exports ntdll.dll
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ntdll.dll

File Type: DLL

  Section contains the following exports for ntdll.dll

    00000000 characteristics
    550F3FFE time date stamp Mon Mar 23 07:19:42 2015
        0.00 version
           1 ordinal base
        2182 number of functions
        2174 number of names

    ordinal hint RVA      name

          9    0 0004C3D0 A_SHAFinal
         10    1 0004C510 A_SHAInit
         11    2 0004C550 A_SHAUpdate
         12    3 000791A0 AlpcAdjustCompletionListConcurrencyCount
         13    4 000783C0 AlpcFreeCompletionListMessage
         14    5 000D0850 AlpcGetCompletionListLastMessageInformation
         15    6 000D0870 AlpcGetCompletionListMessageAttributes
         16    7 0006A800 AlpcGetHeaderSize
         17    8 0006A7C0 AlpcGetMessageAttribute
         18    9 00078290 AlpcGetMessageFromCompletionList
         19    A 00079BB0 AlpcGetOutstandingCompletionListMessageCount
(以下略)