Advertisement
Guest User

Untitled

a guest
Oct 16th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. namespace Rlua {
  2. typedef void(__cdecl *Lua_getfield)(RLUAState lst, int index, const char *k);
  3. Lua_getfield rlua_getfield = (Lua_getfield)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x6A\x01\xFF\x75\x10", "xxxxxxxx"));
  4.  
  5. typedef void(__cdecl *Lua_settop)(RLUAState lst, int index);
  6. Lua_settop rlua_settop = (Lua_settop)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x55\x0C\x85\xD2\x78\x38", "xxxxxxxxxx"));
  7.  
  8. typedef void(__cdecl *Lua_pushstring)(RLUAState lst, const char *s);
  9. Lua_pushstring rlua_pushstring = (Lua_pushstring)aobscan::scan("\x55\x8B\xEC\x8B\x55\x0C\x85\xD2\x75\x0D", "xxxxxxxxxx");
  10.  
  11. typedef void(__cdecl *Lua_pushvalue)(RLUAState lst, int index);
  12. Lua_pushvalue rlua_pushvalue = (Lua_pushvalue)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x56\xFF\x75\x0C\x8B\x75\x08\x56\xE8\x00\x00\x00\x00\x8B\x56\x1C\x83\xC4\x08", "xxxxxxxxxxxx????xxxxxx"));
  13.  
  14. typedef int(__cdecl *Lua_pcall)(RLUAState lst, int nargs, int nresults, int errfunc);
  15. Lua_pcall rlua_pcall = (Lua_pcall)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x4D\x0C\x57\x8B\x7D\x08\xFF\x75\x10", "xxxxxxxxxxxxx"));//this is call aobs/signature, i will change the name soon :P
  16.  
  17. typedef void(__cdecl *Lua_setfield)(RLUAState lst, int index, const char *k);
  18. Lua_setfield rlua_setfield = (Lua_setfield)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\x75\x08\x57\xFF\x75\x0C\x56\xE8\x00\x00\x00\x00\x8B\x55\x10\x83\xC4\x08\x8B\xCA\x8B\xF8\x8D\x59\x01\x8A\x01\x41\x84\xC0\x75\xF9\x2B\xCB\x51\x52\x56\xE8\x00\x00\x00\x00\x89\x45\xF0", "xxxxxxxxxxxxxxxxx????xxxxxxxxxxxxxxxxxxxxxxxxxx????xxx"));
  19.  
  20. typedef void(__cdecl *Lua_pushnumber)(RLUAState lst, double n);
  21. Lua_pushnumber rlua_pushnumber = (Lua_pushnumber)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x4D\x08\x0F\x28\x15", "xxxxxxxxx"));
  22.  
  23. typedef const char*(__cdecl *Lua_ToLString)(RLUAState lst, int idx, size_t *len);
  24. Lua_ToLString rlua_toLstring = (Lua_ToLString)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x56\x8B\x75\x08\xB9\x00\x00\x00\x00\x66\xFF\x46\x34", "xxxxxxxx????xxxx"));
  25.  
  26. typedef bool(__cdecl *Lua_toBoolean)(RLUAState lst, int idx);
  27. Lua_toBoolean rlua_toBool = (Lua_toBoolean)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\xFF\x75\x0C\xFF\x75\x08\xE8\x00\x00\x00\x00\x83\xC4\x08\x8B\x48\x08\x85\xC9", "xxxxxxxxxx????xxxxxxxx"));
  28.  
  29. typedef int(__cdecl *Lua_tonumber)(RLUAState lst, int idx);
  30. Lua_tonumber rlua_tonumber = (Lua_tonumber)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x10\xFF\x75\x0C\xFF\x75\x08\xE8", "xxxxxxxxxxxxx"));
  31.  
  32. typedef int(__cdecl *Lua_type)(RLUAState lst, int idx, bool type);
  33. Lua_type rlua_type = (Lua_type)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\xFF\x75\x0C\xFF\x75\x08\xE8\x00\x00\x00\x00\x83\xC4\x08\x3D\x00\x00\x00\x00\x75\x05", "xxxxxxxxxx????xxxx????xx"));
  34.  
  35. typedef int(__cdecl *Lua_next)(RLUAState lst, int idx);
  36. Lua_next rlua_next = (Lua_next)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x18\x56\x8B\x75\x08\x57\xFF\x75\x0C", "xxxxxxxxxxxxxx"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement