Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions source/symbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ namespace Symbols

const std::vector<Symbol> CGMOD_Player_CreateViewModelSym = {
Symbol::FromName("_ZN12CGMOD_Player15CreateViewModelEi"),
Symbol::FromSignature("\x55\xBA\x01\x00\x00\x00\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x4C\x63\xE6\x53\x44\x89\xE6\x48\x89\xFB\x48\x83\xEC\x18\xE8\xAC\xBD\x9C\xFF\x48\x85\xC0\x74\x17\x48\x83\xC4\x18\x5B\x41\x5C\x41\x5D\x41\x5E\x41\x5F\x5D\xC3\x0F\x1F\x84\x00\x00\x00\x00\x00\x48\x8D\x3D\xD7\xFB\x24\x00\xBE\xFF\xFF\xFF\xFF\xE8\x7F\xCC\x95\xFF\x48\x85\xC0\x49\x89\xC5\x74\xD0\xF6\x83\xB1\x01\x00\x00\x08\x0F\x85\xA2\x00\x00\x00\x48\x8D\xB3\x54\x03\x00\x00\x4C\x89\xEF\xE8\x4B\x43\x85\xFF\x48\x89\xDE\x4C\x89\xEF\xE8\x30\xC9\x88\xFF\x44\x89\xE6\x4C\x89\xEF\xE8\xE5\xCA\x88\xFF\x4C\x89\xEF\xE8\x7D\x9E\xAA\xFF\x31\xD2\x48\x89\xDE\x4C\x89\xEF\xE8\x40\xE4\x86\xFF\x49\x8B\x45\x00\x4C\x89\xEF\xFF\x50\x18\x41\x83\xFC\x02\x8B\x00\x89\x45\xC0\x0F\x87\x70\xFF\xFF\xFF\x4E\x8D\xAC\xA3\x10\x28\x00\x00\xBA\x04\x00\x00\x00\x48\x8D\x75\xC0\x4C\x89\xEF\xE8\x0E\xD8\x69\xFF\x85\xC0\x0F\x84\x4F\xFF\xFF\xFF\x80\xBB\x98\x00\x00\x00\x00\x75\x32\x4C\x8B\x73\x40\x4D\x85\xF6\x74\x08\x41\x8B\x06\xF6\xC4\x01\x74\x2A\x8B\x45\xC0\x42\x89\x84\xA3\x10\x28\x00\x00\xE9\x25\xFF\xFF\xFF\x0F\x1F\x40\x00\x48\x89\xDF\xE8\x50\x27\x85\xFF\xE9\x51\xFF\xFF\xFF\x80\x8B\xA0\x00\x00\x00\x01\xEB\xD6\x83\xC8\x01\x4C\x89\xF7\x49\x29\xDD\x41\x89\x06\x45\x89\xEF\xE8\x4E\x26\x92\xFF\x48\x8B\x15\x87\x2C\x93\x00\x48\x8B\x0A\x0F\xB7\x39\x66\x39\x78\x02\x74\x47\x0F\xB7\x89\xA2\x0F\x00\x00\x66\x83\xF9\x64\x0F\x84\x95\x00\x00\x00\x66\x89\x08\x48\x8B\x0A\x66\x83\x81\xA2\x0F\x00\x00\x01\x0F\xB7\x09\x66\x89\x48\x02\x0F\xB7\x00\x48\x8D\x0C\x80\x48\x8B\x02\xBA\x01\x00\x00\x00\x48\x8D\x04\xC8\x66\x44\x89\x68\x02\x66\x89\x50\x28\xE9\x68\xFF\xFF\xFF\x0F\xB7\x10\x48\x8D\x14\x92\x48\x8D\x14\xD1\x48\x8D\x7A\x02\x0F\xB7\x77\x26\x66\x85\xF6\x74\x36\x66\x44\x3B\x6A\x02\x0F\x84\x45\xFF\xFF\xFF\x8D\x4E\xFF\x48\x83\xC2\x04\x0F\xB7\xC9\x48\x8D\x0C\x4A\xEB\x10\x90\x48\x83\xC2\x02\x66\x44\x3B\x7A\xFE\x0F\x84\x25\xFF\xFF\xFF\x48\x39\xCA\x75\xEC\x66\x83\xFE\x13\x74\x11\x8D\x46\x01\x66\x89\x47\x26\x66\x44\x89\x2C\x77\xE9\x09\xFF\xFF\xFF\x66\xC7\x40\x02\x00\x00\x41\x81\x0E\x00\x01\x00\x00\xE9\xF7\xFE\xFF\xFF"), // 55 BA 01 00 00 00 48 89 E5 41 57 41 56 41 55 41 54 4C 63 E6 53 44 89 E6 48 89 FB 48 83 EC 18 E8 AC BD 9C FF 48 85 C0 74 17 48 83 C4 18 5B 41 5C 41 5D 41 5E 41 5F 5D C3 0F 1F 84 00 00 00 00 00 48 8D 3D D7 FB 24 00 BE FF FF FF FF E8 7F CC 95 FF 48 85 C0 49 89 C5 74 D0 F6 83 B1 01 00 00 08 0F 85 A2 00 00 00 48 8D B3 54 03 00 00 4C 89 EF E8 4B 43 85 FF 48 89 DE 4C 89 EF E8 30 C9 88 FF 44 89 E6 4C 89 EF E8 E5 CA 88 FF 4C 89 EF E8 7D 9E AA FF 31 D2 48 89 DE 4C 89 EF E8 40 E4 86 FF 49 8B 45 00 4C 89 EF FF 50 18 41 83 FC 02 8B 00 89 45 C0 0F 87 70 FF FF FF 4E 8D AC A3 10 28 00 00 BA 04 00 00 00 48 8D 75 C0 4C 89 EF E8 0E D8 69 FF 85 C0 0F 84 4F FF FF FF 80 BB 98 00 00 00 00 75 32 4C 8B 73 40 4D 85 F6 74 08 41 8B 06 F6 C4 01 74 2A 8B 45 C0 42 89 84 A3 10 28 00 00 E9 25 FF FF FF 0F 1F 40 00 48 89 DF E8 50 27 85 FF E9 51 FF FF FF 80 8B A0 00 00 00 01 EB D6 83 C8 01 4C 89 F7 49 29 DD 41 89 06 45 89 EF E8 4E 26 92 FF 48 8B 15 87 2C 93 00 48 8B 0A 0F B7 39 66 39 78 02 74 47 0F B7 89 A2 0F 00 00 66 83 F9 64 0F 84 95 00 00 00 66 89 08 48 8B 0A 66 83 81 A2 0F 00 00 01 0F B7 09 66 89 48 02 0F B7 00 48 8D 0C 80 48 8B 02 BA 01 00 00 00 48 8D 04 C8 66 44 89 68 02 66 89 50 28 E9 68 FF FF FF 0F B7 10 48 8D 14 92 48 8D 14 D1 48 8D 7A 02 0F B7 77 26 66 85 F6 74 36 66 44 3B 6A 02 0F 84 45 FF FF FF 8D 4E FF 48 83 C2 04 0F B7 C9 48 8D 0C 4A EB 10 90 48 83 C2 02 66 44 3B 7A FE 0F 84 25 FF FF FF 48 39 CA 75 EC 66 83 FE 13 74 11 8D 46 01 66 89 47 26 66 44 89 2C 77 E9 09 FF FF FF 66 C7 40 02 00 00 41 81 0E 00 01 00 00 E9 F7 FE FF FF"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holy....
How much of this could theoretically be a wildcard?

};

const std::vector<Symbol> CBaseCombatCharacter_SetTransmitSym = {//Search for 1st "CBaseAnimating::SetTransmit" xref
Expand All @@ -562,7 +563,7 @@ namespace Symbols

const std::vector<Symbol> CBaseAnimating_SetTransmitSym = {//Find "Setting CBaseAnimating to non-studio model %s (type:%i)" to get CBaseAnimating__SetModel then find the last xref and take 4 function upper
Symbol::FromName("_ZN14CBaseAnimating11SetTransmitEP18CCheckTransmitInfob"),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x49\x89\xFC\x53\x48\x89\xFB\x48\x81\xEC\x20\x01\x00\x00"), // 55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 89 FB 48 81 EC 20 01 00 00
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x56\x41\x55\x41\x54\x49\x89\xF4\x53\x48\x89\xFB\x48\x8B\x47\x40\x48\x85\xC0\x0F\x84\x2A\x2A\x2A\x2A\x0F\xB7\x48\x06\x0F\xBF\xC1\xC1\xE8\x05\x89\xC0\x48\x8D\x34\x85\x2A\x2A\x2A\x2A\xB8\x01\x00\x00\x00\xD3\xE0\x49\x8B\x8C\x24\x10\x20\x00\x00\x85\x04\x31\x74\x2A\x5B\x41\x5C\x41\x5D\x41\x5E\x5D\xC3\x90\x44\x0F\xB6\xEA\x4C\x89\xE6\x48\x89\xDF\x44\x89\xEA\xE8\x2A\x2A\x2A\x2A\x8B\x83\x3C\x16\x00\x00"), // 55 48 89 E5 41 56 41 55 41 54 49 89 F4 53 48 89 FB 48 8B 47 40 48 85 C0 0F 84 ? ? ? ? 0F B7 48 06 0F BF C1 C1 E8 05 89 C0 48 8D 34 85 ? ? ? ? B8 01 00 00 00 D3 E0 49 8B 8C 24 10 20 00 00 85 04 31 74 ? 5B 41 5C 41 5D 41 5E 5D C3 90 44 0F B6 EA 4C 89 E6 48 89 DF 44 89 EA E8 ? ? ? ? 8B 83 3C 16 00 00
};

const std::vector<Symbol> GetCurrentSkyCameraSym = {// Search for 'models/props_combine/headcrabcannister01a_skybox.mdl' then select the xref function that call it 2 times, and you got it
Expand Down Expand Up @@ -667,13 +668,14 @@ namespace Symbols
// Purpose: physenv Symbols
// ToDo: Get the Linux64 and Windows32 symbols.
//---------------------------------------------------------------------------------
const std::vector<Symbol> IVP_Mindist_do_impactSym = { // NOTE: is virtual
const std::vector<Symbol> IVP_Mindist_do_impactSym = { // Search for '%s in contact with %s, crash. dist = %d', then do xref to 'IVP Failed at %s %d\n' and find the xref bellow
Symbol::FromName("_ZN11IVP_Mindist9do_impactEv"),
Symbol::FromSignature(""),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x56\x41\x55\x49\x89\xFD\x41\x54\x53\x4C\x8B\x67\x40")//,55 48 89 E5 41 56 41 55 49 89 FD 41 54 53 4C 8B 67 40
};

const std::vector<Symbol> IVP_Event_Manager_Standard_simulate_time_eventsSym = { // NOTE: is virtual
Symbol::FromName("_ZN26IVP_Event_Manager_Standard20simulate_time_eventsEP16IVP_Time_ManagerP15IVP_Environment8IVP_Time"),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x57\x49\x89\xF7\x41\x56\x45\x31\xF6")//55 48 89 E5 41 57 49 89 F7 41 56 45 31 F6
};

const std::vector<Symbol> IVP_Mindist_simulate_time_eventSym = {
Expand Down Expand Up @@ -708,42 +710,50 @@ namespace Symbols
Symbol::FromSignature("\x55\x8B\xEC\x83\xEC\x1C\x83******\x53\x56\x57"), // 55 8B EC 83 EC 1C 83 ?? ?? ?? ?? ?? ?? 53 56 57
};

const std::vector<Symbol> CPhysicsEnvironment_DestroyObjectSym = {
const std::vector<Symbol> CPhysicsEnvironment_DestroyObjectSym = {//Search for 'error deleting physics object\n'
Symbol::FromName("_ZN19CPhysicsEnvironment13DestroyObjectEP14IPhysicsObject"),
Symbol::FromSignature(""),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x54\x53\x48\x83\xEC\x10\x48\x85\xF6"),//55 48 89 E5 41 54 53 48 83 EC 10 48 85 F6
// On Windows we will use the vtable instead to detour it.... maybe we should do the same on linux?
};

const std::vector<Symbol> CPhysicsEnvironment_RestoreSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment7RestoreERK19physrestoreparams_t"),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x45\x31\xE4\x53\x48\x89\xF3"),//55 48 89 E5 41 57 41 56 41 55 41 54 45 31 E4 53 48 89 F3
};

const std::vector<Symbol> CPhysicsEnvironment_TransferObjectSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment14TransferObjectEP14IPhysicsObjectP19IPhysicsEnvironment"),
Symbol::FromSignature("\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x49\x89\xFC\x53\x48\x81\xEC\xD8\x00\x00\x00"),//55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 81 EC D8 00 00 00
};

const std::vector<Symbol> CPhysicsEnvironment_CreateSphereObjectSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment18CreateSphereObjectEfiRK6VectorRK6QAngleP14objectparams_tb"),
Symbol::FromSignature("\x55\x45\x0F\xB6\xC9\x48\x89\xE5\x53"),//55 45 0F B6 C9 48 89 E5 53
};

const std::vector<Symbol> CPhysicsEnvironment_UnserializeObjectFromBufferSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment27UnserializeObjectFromBufferEPvPhjb"),
Symbol::FromSignature("\x55\x45\x0F\xB6\xC0"),//55 45 0F B6 C0
};

const std::vector<Symbol> CPhysicsEnvironment_CreatePolyObjectStaticSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment22CreatePolyObjectStaticEPK12CPhysCollideiRK6VectorRK6QAngleP14objectparams_t"),
Symbol::FromSignature("\x55\x48\x89\xE5\x53\x48\x89\xFB\x48\x83\xEC\x28\xC7\x04\x24\x01\x00\x00\x00"),//55 48 89 E5 53 48 89 FB 48 83 EC 28 C7 04 24 01 00 00 00
};

const std::vector<Symbol> CPhysicsEnvironment_CreatePolyObjectSym = {
Symbol::FromName("_ZN19CPhysicsEnvironment16CreatePolyObjectEPK12CPhysCollideiRK6VectorRK6QAngleP14objectparams_t"),
Symbol::FromSignature("\x55\x48\x89\xE5\x53\x48\x89\xFB\x48\x83\xEC\x28\xC7\x04\x24\x00\x00\x00\x00"),//55 48 89 E5 53 48 89 FB 48 83 EC 28 C7 04 24 00 00 00 00
};

const std::vector<Symbol> CPhysicsEnvironment_D2Sym = {
Symbol::FromName("_ZN19CPhysicsEnvironmentD2Ev"),
Symbol::FromSignature("\x55\x48\x8D\x05\x2A\x2A\x2A\x2A\x48\x89\xE5\x41\x56\x41\x55\x41\x54\x53\x48\x89\xFB\x48\x89\x07\x48\x8B\x87\xF0\x00\x00\x00"),//55 48 8D 05 ? ? ? ? 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 89 07 48 8B 87 F0 00 00 00
};

const std::vector<Symbol> CPhysicsEnvironment_C2Sym = {
Symbol::FromName("_ZN19CPhysicsEnvironmentC2Ev"),
Symbol::FromSignature("\x55\x48\x8D\x05\x2A\x2A\x2A\x2A\x48\x89\xE5\x41\x56\x41\x55\x41\x54\x53\x48\x89\xFB\x48\x83\xC4\x80"),//55 48 8D 05 ? ? ? ? 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 C4 80
};

const std::vector<Symbol> IVP_Mindist_Manager_recheck_ov_elementSym = {
Expand Down
Loading