(First of all, I will reject replying to what seems "automatic" bids. Any bid that looks an automatic reply will be rejected).
I need a simple command line application that accepts a 32-bit or a 64-bit COFF OBJ.
The application will be developed in C or C++ with Visual Studio (I'm using Visual Studio 2015)
The application will read the OBJ file and it will just go to the code section ".text"
in the OBJ file and it will "hex-dump" the content of the .text section into a text file.
After that, it will put the offset within the text section where each found function starts.
ObjCodeToHex [url removed, login to view] [url removed, login to view]
It will generate a text file similar to this:
; ---- Start Hex dump ----
db 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xC7, 0x45, 0xF8, 0x00, 0x00, 0x00, 0x00, 0xEB, 0x09, 0x8B
db 0x45, 0xF8, 0x83, 0xC0, 0x01, 0x89, 0x45, 0xF8, 0x8B, 0x45, 0xF8, 0x3B, 0x45, 0x08, 0x7D, 0x17
db 0x8B, 0x45, 0xF8, 0x50, 0xE8, 0xB9, 0xFF, 0xFF, 0xFF, 0x83, 0xC4, 0x04, 0x03, 0x45, 0xF8, 0x03
db 0x45, 0xFC, 0x89, 0x45, 0xFC, 0xEB, 0xD8, 0x8B, 0x45, 0xFC, 0x5F, 0x5E, 0x5B, 0x8B, 0xE5, 0x5D
START_FUNCTION_HELPER = 0
START_MY_FUNCTION = 0x14
; ---- End Hex dump ----
In the above example, "[url removed, login to view]" have two functions "function_helper" and "my_function"
Please, find attached 2 samples OBJ samples for 32-bit and 64-bit and the expected generated files "[url removed, login to view]" and
"[url removed, login to view]"
I recommend that you first load those OBJ under IDA Disassembler to make things clearer for you.
If you have any questions, let me know please.