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:

..etc..
For example:

0x11223344 yourdll.dll!symbol1
0x10203040 yourdll.dll!symbol2
..etc..
Let it be in imports_table.txt file. Then run: