; ; sub_18001EE10 from 0x18001ee10 to 0x18001eff9 (489 bytes) ; ; 5 xrefs: ; > sub_18001F000 @ 0x18001f000 ; > @ 0x1800320c8 ; > @ 0x1800320d8 ; > @ 0x1800320f4 ; > @ 0x18004d058 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:45 +0000 ; push rbx ; +0x0, 0x18001ee10 push rdi ; +0x2, 0x18001ee12 push r14 ; +0x3, 0x18001ee13 sub rsp, 60h ; +0x5, 0x18001ee15 mov rax, cs:__security_cookie ; +0x9, 0x18001ee19 xor rax, rsp ; +0x10, 0x18001ee20 mov [rsp+78h+var_48], rax ; +0x13, 0x18001ee23 mov rdi, r9 ; +0x18, 0x18001ee28 mov r14, rdx ; +0x1b, 0x18001ee2b mov r9, r8 ; +0x1e, 0x18001ee2e mov rbx, rcx ; +0x21, 0x18001ee31 test rdi, rdi ; +0x24, 0x18001ee34 jnz short loc_18001EE41 ; +0x27, 0x18001ee37 mov rax, rcx ; +0x29, 0x18001ee39 jmp loc_18001EF93 ; +0x2c, 0x18001ee3c cmp rdi, 1 ; +0x31, 0x18001ee41 jnz short loc_18001EE55 ; +0x35, 0x18001ee45 movzx r8d, byte ptr [r8] ; +0x37, 0x18001ee47 call sub_18001ED10 ; +0x3b, 0x18001ee4b jmp loc_18001EF93 ; +0x40, 0x18001ee50 mov [rsp+78h+var_20], rbp ; +0x45, 0x18001ee55 mov rcx, r14 ; +0x4a, 0x18001ee5a sub rcx, rbx ; +0x4d, 0x18001ee5d mov [rsp+78h+var_28], rsi ; +0x50, 0x18001ee60 movaps [rsp+78h+var_38], xmm6 ; +0x55, 0x18001ee65 cmp rcx, rdi ; +0x5a, 0x18001ee6a jb loc_18001EF81 ; +0x5d, 0x18001ee6d test byte ptr cs:dword_18004900C, 4 ; +0x63, 0x18001ee73 jz loc_18001EFA9 ; +0x6a, 0x18001ee7a cmp rcx, 10h ; +0x70, 0x18001ee80 jb loc_18001EFA9 ; +0x74, 0x18001ee84 cmp rdi, 10h ; +0x7a, 0x18001ee8a ja loc_18001EF16 ; +0x7e, 0x18001ee8e mov esi, 10h ; +0x84, 0x18001ee94 lea rcx, [rsp+78h+var_58]; void * ; +0x89, 0x18001ee99 sub esi, edi ; +0x8e, 0x18001ee9e mov r8, rdi; Size ; +0x90, 0x18001eea0 mov rdx, r9; Src ; +0x93, 0x18001eea3 call memcpy ; +0x96, 0x18001eea6 movdqa xmm6, [rsp+78h+var_58] ; +0x9b, 0x18001eeab lea r8, [r14-10h] ; +0xa1, 0x18001eeb1 movdqu xmm0, xmmword ptr [rbx] ; +0xa5, 0x18001eeb5 mov eax, edi ; +0xa9, 0x18001eeb9 mov edx, 10h ; +0xab, 0x18001eebb pcmpestri xmm6, xmm0, 0Ch ; +0xb0, 0x18001eec0 jb short loc_18001EECD ; +0xb6, 0x18001eec6 add rbx, rdx ; +0xb8, 0x18001eec8 jmp short loc_18001EEDB ; +0xbb, 0x18001eecb movsxd rax, ecx ; +0xbd, 0x18001eecd add rbx, rax ; +0xc0, 0x18001eed0 cmp ecx, esi ; +0xc3, 0x18001eed3 jle loc_18001EFE7 ; +0xc5, 0x18001eed5 cmp rbx, r8 ; +0xcb, 0x18001eedb jbe short loc_18001EEB5 ; +0xce, 0x18001eede mov rsi, r14 ; +0xd0, 0x18001eee0 sub rsi, rbx ; +0xd3, 0x18001eee3 jz loc_18001EF81 ; +0xd6, 0x18001eee6 mov r8, rsi; Size ; +0xdc, 0x18001eeec lea rcx, [rsp+78h+var_58]; void * ; +0xdf, 0x18001eeef mov rdx, rbx; Src ; +0xe4, 0x18001eef4 call memcpy ; +0xe7, 0x18001eef7 movdqa xmm0, [rsp+78h+var_58] ; +0xec, 0x18001eefc mov eax, edi ; +0xf2, 0x18001ef02 mov edx, esi ; +0xf4, 0x18001ef04 pcmpestri xmm6, xmm0, 0Ch ; +0xf6, 0x18001ef06 jnb short loc_18001EF81 ; +0xfc, 0x18001ef0c movsxd rax, ecx ; +0xfe, 0x18001ef0e add rax, rbx ; +0x101, 0x18001ef11 jmp short loc_18001EF84 ; +0x104, 0x18001ef14 movdqu xmm6, xmmword ptr [r8] ; +0x106, 0x18001ef16 mov rsi, rbx ; +0x10b, 0x18001ef1b lea rbp, [r8+10h] ; +0x10e, 0x18001ef1e sub rsi, rdi ; +0x112, 0x18001ef22 add rsi, rcx ; +0x115, 0x18001ef25 nop dword ptr [rax+rax+00000000h] ; +0x118, 0x18001ef28 movdqu xmm0, xmmword ptr [rbx] ; +0x120, 0x18001ef30 mov eax, 10h ; +0x124, 0x18001ef34 mov edx, eax ; +0x129, 0x18001ef39 pcmpestri xmm6, xmm0, 0Ch ; +0x12b, 0x18001ef3b jb short loc_18001EF48 ; +0x131, 0x18001ef41 add rbx, rax ; +0x133, 0x18001ef43 jmp short loc_18001EF7C ; +0x136, 0x18001ef46 test ecx, ecx ; +0x138, 0x18001ef48 jz short loc_18001EF65 ; +0x13a, 0x18001ef4a movsxd rax, ecx ; +0x13c, 0x18001ef4c add rbx, rax ; +0x13f, 0x18001ef4f cmp rbx, rsi ; +0x142, 0x18001ef52 ja short loc_18001EF81 ; +0x145, 0x18001ef55 movdqu xmm0, xmmword ptr [rbx] ; +0x147, 0x18001ef57 xorps xmm0, xmm6 ; +0x14b, 0x18001ef5b ptest xmm0, xmm0 ; +0x14e, 0x18001ef5e jnz short loc_18001EF79 ; +0x153, 0x18001ef63 lea r8, [rdi-10h]; Size ; +0x155, 0x18001ef65 mov rdx, rbp; Buf2 ; +0x159, 0x18001ef69 lea rcx, [rbx+10h]; Buf1 ; +0x15c, 0x18001ef6c call memcmp ; +0x160, 0x18001ef70 test eax, eax ; +0x165, 0x18001ef75 jz short loc_18001EFE7 ; +0x167, 0x18001ef77 inc rbx ; +0x169, 0x18001ef79 cmp rbx, rsi ; +0x16c, 0x18001ef7c jbe short loc_18001EF30 ; +0x16f, 0x18001ef7f mov rax, r14 ; +0x171, 0x18001ef81 mov rsi, [rsp+78h+var_28] ; +0x174, 0x18001ef84 mov rbp, [rsp+78h+var_20] ; +0x179, 0x18001ef89 movaps xmm6, [rsp+78h+var_38] ; +0x17e, 0x18001ef8e mov rcx, [rsp+78h+var_48] ; +0x183, 0x18001ef93 xor rcx, rsp; StackCookie ; +0x188, 0x18001ef98 call __security_check_cookie ; +0x18b, 0x18001ef9b add rsp, 60h ; +0x190, 0x18001efa0 pop r14 ; +0x194, 0x18001efa4 pop rdi ; +0x196, 0x18001efa6 pop rbx ; +0x197, 0x18001efa7 retn ; +0x198, 0x18001efa8 mov rdx, rbx ; +0x199, 0x18001efa9 sub rdx, rdi ; +0x19c, 0x18001efac inc rdx ; +0x19f, 0x18001efaf add rdx, rcx ; +0x1a2, 0x18001efb2 cmp rbx, rdx ; +0x1a5, 0x18001efb5 jz short loc_18001EF81 ; +0x1a8, 0x18001efb8 movzx r8d, byte ptr [r8] ; +0x1aa, 0x18001efba sub r9, rbx ; +0x1ae, 0x18001efbe cmp [rbx], r8b ; +0x1b1, 0x18001efc1 jnz short loc_18001EFEC ; +0x1b4, 0x18001efc4 lea rcx, [rbx+1] ; +0x1b6, 0x18001efc6 nop word ptr [rax+rax+00h] ; +0x1ba, 0x18001efca movzx eax, byte ptr [r9+rcx] ; +0x1c0, 0x18001efd0 cmp [rcx], al ; +0x1c5, 0x18001efd5 jnz short loc_18001EFEC ; +0x1c7, 0x18001efd7 inc rcx ; +0x1c9, 0x18001efd9 mov rax, rcx ; +0x1cc, 0x18001efdc sub rax, rbx ; +0x1cf, 0x18001efdf cmp rax, rdi ; +0x1d2, 0x18001efe2 jnz short loc_18001EFD0 ; +0x1d5, 0x18001efe5 mov rax, rbx ; +0x1d7, 0x18001efe7 jmp short loc_18001EF84 ; +0x1da, 0x18001efea inc rbx ; +0x1dc, 0x18001efec dec r9 ; +0x1df, 0x18001efef cmp rbx, rdx ; +0x1e2, 0x18001eff2 jnz short loc_18001EFC1 ; +0x1e5, 0x18001eff5 jmp short loc_18001EF81 ; +0x1e7, 0x18001eff7