PE_add_imports is a simple tool for adding symbol(s) to PE executable import table

Sometimes, you may need to replace existing function in binary code by function in your own DLL.

This utility adds yourdll.dll!function import into PE image and writes the following code at the specified point:

JMP [yourdll.dll!function]

A FIXUP is also added at the relevant place of JMP instruction.

Usage:

First, prepare a file with imports, in the following format:
address1 yourdll.dll!symbol1
..etc..
0x11223344 yourdll.dll!symbol1
..etc..
PE_add_imports.exe fname.exe imports_table.txt