joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5c125c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push 2
mov esi, eax
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.00411eb0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x42044b
cmp eax, 0xffffffff
je 0x42044b
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42044b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x42046a
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x420430
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.00411e40
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004fce93
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x42044d

Function at 0x4211a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x5d9cc0]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x4212df
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x5db1a8]
test cl, 1
jne 0x421207
rdtsc
or ecx, 1
mov dword [0x5db1a0], eax
mov dword [0x5db1a8], ecx
mov dword [0x5db1a4], edx
test cl, 2
jne 0x421237
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x5db1a8], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x5db1b0], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5db1b4], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x5db1b0]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x5db1b4]
call fcn.004fd970
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.004fd9b0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x5aecd0]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x4212bd
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x5db1a0]
mov ecx, edi
sbb ebx, dword [0x5db1a4]
mov edx, ebx
call fcn.004fd970
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x5d9cc0], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4236d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x42373b
cmp dword [0x5db190], 0
jne 0x423728
push 0x4c
call fcn.004fcea4
add esp, 4
mov ecx, eax
call fcn.0041a4e0
mov esi, eax
mov edx, 0x5db190
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x423728
test esi, esi
je 0x423728
lea ecx, [esi + 0x34]
call fcn.004078b0
push esi
call fcn.0056c31e
add esp, 4
mov eax, dword [0x5db190]
cmp dword [eax], 1
jl 0x42373b
mov dword [ebp - 4], 0x10000
jmp 0x42373d
xor ebx, ebx
push 0xc
call fcn.004fcea4
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x423610
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x423786
push esi
call fcn.0056c31e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x423795
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429f90
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
nop
push 0x22c
push 0
push edi
call fcn.005033f0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x429fc8
mov byte [esi + 8], 1
call ebx
jmp 0x429fce
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x429fea
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x429fa0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42a790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.0042b800
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov ecx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
call fcn.00438a40
lea ecx, [esp + 0x18]
call fcn.00438b20
mov esp, ebp
pop ebp
ret
Function at 0x42aa30
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
cmp dword [edi + 0x70], ebx
je 0x42aa7e
push dword [edi + 0x70]
mov eax, dword [edi + 0x74]
push ecx
call eax
add esp, 8
mov esi, dword [eax]
mov dword [eax], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x42aa76
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], esi
jmp 0x42aaa2
mov edx, dword [edi + 8]
call fcn.0042a6b0
mov edx, dword [eax]
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov dword [edi + 4], edx
test ecx, ecx
je 0x42aa9a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x42aaac
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0042b800
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42aafa
cmp dword [0x5d9be0], 3
jg 0x42aae9
push 3
push 0x23
push str.c:codezm3rd_base_threading_thread_local_win.cc
lea ecx, [esp + 0x24]
lea ebx, [eax + 4]
call fcn.0041cd90
mov edx, str.Failed_to_TlsSetValue__.
lea ecx, [eax + 8]
call fcn.00412790
test bl, 4
je 0x42aafa
lea ecx, [esp + 0x18]
and ebx, 0xfffffffb
call fcn.0041ce50
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x10], eax
lea esi, [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test bl, 8
je 0x42ab1f
lea ecx, [esp + 0x18]
and ebx, 0xfffffff7
call fcn.0041ce50
test bl, 0x10
je 0x42ab30
lea ecx, [esp + 0x18]
and ebx, 0xffffffef
call fcn.0041ce50
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
mov byte [eax + 0x42], 1
je 0x42ab63
test bl, 0x20
je 0x42ab50
lea ecx, [esp + 0x18]
call fcn.0041ce50
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov byte [eax + 0x40], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov edi, dword [edi + 0xb8]
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [edi + 0xc], eax
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [esi + 0xb8]
mov dword [esi + 0xb8], 0
test edi, edi
je 0x42abbb
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x42abbb
xor ecx, ecx
test edx, edx
cmovne ecx, edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.0042abd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
xor ebx, ebx
mov byte [esp + 0xb], 1
push edi
mov dword [esp + 0x10], ebx
mov esi, ecx
push ebx
push 2
mov dword [esp + 0x240], 0x5aa800
mov byte [esp + 0x248], bl
mov dword [esp + 0x478], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
lea ecx, [esp + 0x478]
mov dword [esp + 0x240], eax
mov dword [esp + 0x23c], 0x5aa138
call fcn.00407800
lea ecx, [esp + 0x238]
call fcn.00429f90
test eax, eax
je 0x42c792
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [eax + 8]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov byte [esp + 0x10], 0
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00411eb0
call edi
cmp esi, eax
jne 0x42c6e2
cmp byte [0x5dafd0], 0
jne 0x42c7da
int3
test bl, 1
je 0x42c6f3
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.0041ce50
test bl, 2
je 0x42c704
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.0041ce50
cmp byte [esp + 0x10], 0
je 0x42c70f
call edi
jmp 0x42c713
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [esp + 0xe], al
test al, al
je 0x42c759
cmp byte [esp + 0x10], 0
je 0x42c734
call edi
jmp 0x42c738
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42c76d
test bl, 4
je 0x42c76d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x42c768
test bl, 8
je 0x42c771
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.0041d4d0
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.00411e40
lea ecx, [esp + 0x238]
call fcn.00429f90
test eax, eax
jne 0x42c6a5
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x5aa138
call fcn.00407740
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x5aa800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x494]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050a42f
int3

Function at 0x42e0a0
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.0042e3e0
mov eax, dword [0x5c1eb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x42e0c1
call fcn.00438d50
mov edx, eax
mov eax, dword [0x5db034]
cmp dword [edx + eax*4], 0
jne 0x42e102
push 0x70
call fcn.004fcea4
add esp, 4
mov ecx, eax
push edi
call fcn.0042de90
mov ecx, dword [0x5c1eb4]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e0fa
call fcn.00438d50
mov ecx, eax
mov eax, dword [0x5db034]
mov dword [ecx + eax*4], edi
pop edi
ret
Function at 0x42e110
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5db030]
push ebx
push esi
push edi
test eax, eax
jne 0x42e120
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x5c1eb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e139
call fcn.00438d50
mov ecx, eax
mov eax, dword [0x5db034]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x42e1c9
mov ecx, 0x5daff0
xor edi, edi
xor ebx, ebx
call fcn.00421350
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5db014]
test ecx, ecx
je 0x42e179
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x5db014], eax
mov dword [ecx + 4], ebx
jmp 0x42e186
mov ebx, dword [0x5db02c]
inc ebx
mov dword [0x5db02c], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x42e1a5
push 0x70
call fcn.004fcea4
add esp, 4
mov ecx, eax
push ebx
call fcn.0042df40
mov edi, eax
mov ecx, dword [0x5c1eb4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e1bf
call fcn.00438d50
mov ecx, eax
mov eax, dword [0x5db034]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x431b60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5c125c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x431b7b
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], eax
call fcn.004119e0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00411b00
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00431ac0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004fce93
mov esp, ebp
pop ebp
ret

Function at 0x431be0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x431c4e
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x5aa370]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5aa370]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5aa370]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5aa370]
sub ebx, 1
jne 0x431bf7
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433350
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4333aa
cmp dword [0x5d9be0], 3
jg 0x43339c
push 3
push 0x23
push str.c:codezm3rd_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.0041cd90
mov edx, str.Failed_to_TlsSetValue__.
lea ecx, [eax + 8]
call fcn.00412790
mov ebx, 1
test bl, 1
je 0x4333aa
lea ecx, [esp + 8]
call fcn.0041ce50
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x5aaa58
mov dword [edi], 0x5aaa50
mov dword [edi + 4], 0x5aaa70
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x240]
mov dword [edi + 0x14], eax
call fcn.0042b800
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x433593
cmp dword [eax], edi
je 0x43358f
add eax, 4
cmp eax, edx
jne 0x433584
cmp eax, edx
jne 0x43359c
lea eax, [ebp + 8]
push eax
call fcn.0042c020
call fcn.004379f0
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4335ba
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x5db130]
test eax, eax
jne 0x4335c8
call fcn.0043db20
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push str.ThreadLocalEventBuffer
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.0043d3b0
test esi, esi
je 0x433608
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x433608
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x204]
call fcn.00436930
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
lea esi, [ebx + 4]
mov dword [esi], 0x5aaa70
push edi
mov dword [ebx], 0x5aaa50
call fcn.0042b800
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.0042be10
mov eax, dword [0x5db130]
test eax, eax
jne 0x4336be
call fcn.0043db20
push ecx
push esi
mov ecx, eax
call fcn.0043d470
mov esi, dword [ebx + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xc], 0
je 0x433705
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x240]
cmp dword [ebx + 0x14], eax
jne 0x433705
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
push ecx
mov edx, esp
mov dword [ebx + 0xc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [ebx + 0x10]
call dword [eax + 8]
call fcn.0042b800
push dword [eax]
call edi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov eax, dword [ebx + 8]
push ecx
add eax, 0x204
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.00436100
mov edi, dword [esp + 0x1c]
mov eax, edi
mov edx, dword [esp + 0x20]
cmp edi, edx
je 0x433746
nop dword [eax]
mov eax, dword [eax]
cmp eax, edx
jne 0x433740
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push edi
push eax
call fcn.004361d0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 8]
push 0
push dword [eax + 0x1f8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4337b2
cmp dword [0x5d9be0], 3
jg 0x4337a2
push 3
push 0x23
push str.c:codezm3rd_base_threading_thread_local_win.cc
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 2
call fcn.0041cd90
mov edx, str.Failed_to_TlsSetValue__.
lea ecx, [eax + 8]
call fcn.00412790
test byte [esp + 0x10], 2
je 0x4337b2
lea ecx, [esp + 0x28]
call fcn.0041ce50
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x4337d0
mov ecx, esi
call fcn.0043b6c0
push esi
call fcn.0056c31e
add esp, 4
pop edi
pop esi
mov dword [ebx], method.std::error_category.virtual_4
mov dword [ebx + 4], 0x5aaa58
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433a50
Capabilities:
Allocate thread local storage
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x7d0
lea eax, [edi + 4]
mov dword [edi], 0x5aaa64
push eax
call esi
push 0x7d0
lea eax, [edi + 0x1c]
push eax
call esi
mov dword [edi + 0x34], 0
lea ecx, [edi + 0x60]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
call fcn.00407a10
lea ecx, [edi + 0x78]
call fcn.0041e9e0
push ecx
lea eax, [esp + 0xc]
mov dword [edi + 0x98], 0
push eax
lea ecx, [edi + 0x9c]
mov dword [esp + 0x10], 0
call fcn.00436370
lea ecx, [edi + 0xbc]
call fcn.0041e9e0
lea ecx, [edi + 0xdc]
call fcn.00435df0
lea ecx, [edi + 0xfc]
call fcn.0041e9e0
mov dword [edi + 0x120], 0
lea ecx, [edi + 0x14c]
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x130], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], 0
call fcn.00407a10
mov dword [edi + 0x164], 1
lea ecx, [edi + 0x170]
mov dword [edi + 0x168], 0
mov dword [edi + 0x16c], 0
call fcn.0043bcc0
lea ecx, [edi + 0x1b4]
call fcn.0043bcc0
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x1f8], 0
call esi
mov dword [edi + 0x1f8], eax
cmp eax, 0xffffffff
jne 0x433bf3
cmp byte [0x5dafd0], 0
jne 0x433d28
int3
mov dword [edi + 0x1fc], 0
call esi
mov dword [edi + 0x1fc], eax
cmp eax, 0xffffffff
jne 0x433c18
cmp byte [0x5dafd0], 0
jne 0x433d2f
int3
mov dword [edi + 0x200], 0
call esi
mov dword [edi + 0x200], eax
cmp eax, 0xffffffff
jne 0x433c3d
cmp byte [0x5dafd0], 0
jne 0x433d36
int3
lea ecx, [edi + 0x204]
call fcn.00435d90
mov dword [edi + 0x224], 0
mov dword [edi + 0x228], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov dword [edi + 0x238], 0
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov byte [edi + 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x130], eax
push 0x100
cdq
push 0x1b3
xor edx, 0xcbf29ce4
xor eax, 0x84222325
push edx
push eax
call fcn.004fd9e0
mov ecx, edi
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], edx
call fcn.00435b60
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x3c], eax
test ecx, ecx
je 0x433ceb
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0x5db130]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x433d01
call fcn.0043db20
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
lea ecx, [esp + 0x10]
push ecx
push str.TraceLog
push edi
mov ecx, eax
call fcn.0043d3b0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050a42f
push 1
call fcn.0050a42f
push 1
call fcn.0050a42f
int3
Function at 0x434140
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x1fc]
call edi
test eax, eax
jne 0x4341a4
call fcn.0042b800
push dword [eax]
call edi
test eax, eax
je 0x4341a4
push dword [esi + 0x1f8]
call edi
mov edx, eax
test edx, edx
je 0x434186
mov ecx, dword [edx + 0x14]
cmp ecx, dword [esi + 0x240]
je 0x4341a4
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x18
call fcn.004fcea4
add esp, 4
mov ecx, eax
push esi
call fcn.00433520
push eax
lea ecx, [esi + 0x1f8]
call fcn.00435c10
pop edi
pop esi
pop ebx
ret