12345678
#include <windows.h> #include <stdio.h> extern void* GetAddr(HMODULE name, LPCSTR fname) { HMODULE hMod = GetModuleHandle(name); return void* func = GetProcAddress(hMod, fname); }
GetAddr()
12
mov rax, GetAddr("user32.dll", "CreateWindow") mov THE CODE FOR A JUMP SOMEWHERE ELSE, rax