RE: creating an asm opcode
The easiest solution is to use a program such as ollydbg and find a random spot to construct some temporary asm. The actual bytes for the command will be next to the character representation for the command.
If my memory serves me correctly, a standard 5 byte offset JMP command is 0xE9 followed by the 4 byte little endian offset to the function from the end of the current command. (jmp address - current address - length of command)
so
33333333 jmp 0x12345678
would turn out (0x12345678 - 0x33333333 - 5)
E9 DF012340
0xE9 0x40 0x23 0x01 0xDF
|