Article ID: 128372
Article Last Modified on 8/24/2005
dumpbin /headers DRIVER_NAME | more
rebase -b IMAGE_BASE -x DBG_PATH DRIVER_NAME"
dumpbin /headers driver.sys | more
-----------------------------------------------------------
Microsoft (R) COFF Binary File Dumper Version 2.50
Copyright (C) Microsoft Corp 1992-94. All rights reserved.
Dump of file driver.sys
NT signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
14C machine (i386)
6 number of sections
2F295879 time date stamp Fri Jan 27 12:32:57 1995
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
102 characteristics
Executable
32 bit word machine
OPTIONAL HEADER VALUES
10B magic #
2.50 linker version
33C0 size of code
1500 size of initialized data
0 size of uninitialized data
280 address of entry point
280 base of code
3640 base of data
----- new -----
10000 image base
... Additional information deleted ...
-----------------------------------------------------------
Notice that in this example, the image base is
0x10000.rebase -b 0x10000 -x . driver.sys
Checked Free
----------------
Original file size: 49728 15392
After REBASE: 30816 9488
Additional query words: checksum debug
Keywords: kbhowto KB128372