{"type": "func", "start": 6443369332, "end": 6443369504, "name": "__security_init_cookie", "pseudocode": "// \n// __security_init_cookie from 0x1800e0374 to 0x1800e0420 (172 bytes)\n// \n// 3 xrefs:\n// > DllEntryPoint @ 0x1800e0014\n// > <???> @ 0x1801bb160\n// > <???> @ 0x1801bb16c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __cdecl _security_init_cookie()\n{\n  uintptr_t v0; // rax\n  struct _FILETIME v1; // [rsp+20h] [rbp-10h] BYREF\n  struct _FILETIME SystemTimeAsFileTime; // [rsp+40h] [rbp+10h] BYREF\n  LARGE_INTEGER PerformanceCount; // [rsp+48h] [rbp+18h] BYREF\n\n  v0 = _security_cookie;\n  if ( _security_cookie == 0x2B992DDFA232LL )\n  {\n    SystemTimeAsFileTime = 0;\n    GetSystemTimeAsFileTime(&SystemTimeAsFileTime);\n    v1 = SystemTimeAsFileTime;\n    v1 = (struct _FILETIME)(GetCurrentThreadId() ^ *(unsigned __int64 *)&v1);\n    v1 = (struct _FILETIME)(GetCurrentProcessId() ^ *(unsigned __int64 *)&v1);\n    QueryPerformanceCounter(&PerformanceCount);\n    v0 = ((unsigned __int64)&v1\n        ^ *(_QWORD *)&v1\n        ^ PerformanceCount.QuadPart\n        ^ ((unsigned __int64)PerformanceCount.LowPart << 32))\n       & 0xFFFFFFFFFFFFLL;\n    if ( v0 == 0x2B992DDFA232LL )\n      v0 = 0x2B992DDFA233LL;\n    _security_cookie = v0;\n  }\n  qword_1801A4340 = ~v0;\n}", "assembly": "; \n; __security_init_cookie from 0x1800e0374 to 0x1800e0420 (172 bytes)\n; \n; 3 xrefs:\n; > DllEntryPoint @ 0x1800e0014\n; > <???> @ 0x1801bb160\n; > <???> @ 0x1801bb16c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x1800e0374\npush    rbp                                                            ; +0x5, 0x1800e0379\nmov     rbp, rsp                                                       ; +0x6, 0x1800e037a\nsub     rsp, 30h                                                       ; +0x9, 0x1800e037d\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800e0381\nmov     rbx, 2B992DDFA232h                                             ; +0x14, 0x1800e0388\ncmp     rax, rbx                                                       ; +0x1e, 0x1800e0392\njnz     short loc_1800E040B                                            ; +0x21, 0x1800e0395\nand     qword ptr [rbp+SystemTimeAsFileTime.dwLowDateTime], 0          ; +0x23, 0x1800e0397\nlea     rcx, [rbp+SystemTimeAsFileTime]; lpSystemTimeAsFileTime        ; +0x28, 0x1800e039c\ncall    cs:GetSystemTimeAsFileTime                                     ; +0x2c, 0x1800e03a0\nmov     rax, qword ptr [rbp+SystemTimeAsFileTime.dwLowDateTime]        ; +0x32, 0x1800e03a6\nmov     [rbp+var_10], rax                                              ; +0x36, 0x1800e03aa\ncall    cs:GetCurrentThreadId                                          ; +0x3a, 0x1800e03ae\nmov     eax, eax                                                       ; +0x40, 0x1800e03b4\nxor     [rbp+var_10], rax                                              ; +0x42, 0x1800e03b6\ncall    cs:GetCurrentProcessId                                         ; +0x46, 0x1800e03ba\nmov     eax, eax                                                       ; +0x4c, 0x1800e03c0\nlea     rcx, [rbp+PerformanceCount]; lpPerformanceCount                ; +0x4e, 0x1800e03c2\nxor     [rbp+var_10], rax                                              ; +0x52, 0x1800e03c6\ncall    cs:QueryPerformanceCounter                                     ; +0x56, 0x1800e03ca\nmov     eax, dword ptr [rbp+PerformanceCount]                          ; +0x5c, 0x1800e03d0\nlea     rcx, [rbp+var_10]                                              ; +0x5f, 0x1800e03d3\nshl     rax, 20h                                                       ; +0x63, 0x1800e03d7\nxor     rax, qword ptr [rbp+PerformanceCount]                          ; +0x67, 0x1800e03db\nxor     rax, [rbp+var_10]                                              ; +0x6b, 0x1800e03df\nxor     rax, rcx                                                       ; +0x6f, 0x1800e03e3\nmov     rcx, 0FFFFFFFFFFFFh                                            ; +0x72, 0x1800e03e6\nand     rax, rcx                                                       ; +0x7c, 0x1800e03f0\nmov     rcx, 2B992DDFA233h                                             ; +0x7f, 0x1800e03f3\ncmp     rax, rbx                                                       ; +0x89, 0x1800e03fd\ncmovz   rax, rcx                                                       ; +0x8c, 0x1800e0400\nmov     cs:__security_cookie, rax                                      ; +0x90, 0x1800e0404\nmov     rbx, [rsp+30h+arg_10]                                          ; +0x97, 0x1800e040b\nnot     rax                                                            ; +0x9c, 0x1800e0410\nmov     cs:qword_1801A4340, rax                                        ; +0x9f, 0x1800e0413\nadd     rsp, 30h                                                       ; +0xa6, 0x1800e041a\npop     rbp                                                            ; +0xaa, 0x1800e041e\nretn                                                                   ; +0xab, 0x1800e041f", "xrefs": ["DllEntryPoint @ 0x1800e0014", "<???> @ 0x1801bb160", "<???> @ 0x1801bb16c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}