Assembly and C

I have the following code:
1
2
3
4
5
6
7
8
#include <windows.h>
#include <stdio.h>

extern void* GetAddr(HMODULE name, LPCSTR fname)
{
	HMODULE hMod = GetModuleHandle(name);
	return void* func = GetProcAddress(hMod, fname);
}


I need to write some assembly that takes the GetAddr() function and then writes a jump to another address to it. Something like this:

1
2
mov rax, GetAddr("user32.dll", "CreateWindow")
mov THE CODE FOR A JUMP SOMEWHERE ELSE, rax


I need help finding what the hexcode for a JUMP TO SOMEWHERE ELSE IS
search for x86/64 instruction set reference manual.

jumps are described here: http://x86.renejeschke.de/html/file_module_x86_id_147.html
That just doesn't feel right. The instruction itself is only 8-bits (EA, FF, EB, etc.)???
this is just opcode. Parameter can be placed in memory or core register. Please refer to official intel manual for more detailed info (or the site i linked to you)
Topic archived. No new replies allowed.