Not too long ago I found myself needing to patch a .dll with a .dif file produced from IDA, after a very quick and admittedly quite lazy google turned up nothing I decided I needed to just write a quick one. I figured I would share with you the result.
It’s quite simple, select the target file you wish to patch and select a .dif file with the patches you wish to make. Note: the .dif files produced by IDA need to either have their first 4 lines removed or simply add a ; to the lines with text (turning them into what my patcher sees as a comment and ignores) otherwise it expects a format of:
Example Dif File
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
;This difference file has been created by IDA Pro
;
;some file.dll
;
; this is just a sample comment that can be placed inside a .dif file
00005031: 03 17
00005035: 03 17
00005872: 28 00
00005873: 58 00
00005874: 01 00
00005876: 06 00
00005C3A: 18 17
00010F56: 06 16 |
As you can see above this .dif file would make 8 bytes changes within the specified target file.
IDAPatch (896)

Good day sir! (Or madame) I am what they call a total noob, and I would like to know if I could maybe contact you with some questions if you have time to address them! Thanks so much for this post, it was very helpful!