joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, 8
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 8], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x42f20d
cmp byte [0xa3c2e8], al
jne 0x42f233
int3
test bl, 1
je 0x42f220
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.0041f860
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x42f1eb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
int3

Function at 0x430a50
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.00430d90
mov eax, dword [0xa271d4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x430a71
call fcn.00437b60
mov edx, eax
mov eax, dword [0xa3c334]
cmp dword [edx + eax*4], 0
jne 0x430ab2
push 0x70
call fcn.004c21d4
add esp, 4
mov ecx, eax
push edi
call fcn.00430840
mov ecx, dword [0xa271d4]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x430aaa
call fcn.00437b60
mov ecx, eax
mov eax, dword [0xa3c334]
mov dword [ecx + eax*4], edi
pop edi
ret

Function at 0x430ac0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0xa3c330]
push ebx
push esi
push edi
test eax, eax
jne 0x430ad0
pop edi
pop esi
pop ebx
ret
mov eax, dword [0xa271d4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x430ae9
call fcn.00437b60
mov ecx, eax
mov eax, dword [0xa3c334]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x430b79
mov ecx, 0xa3c2f4
xor edi, edi
xor ebx, ebx
call fcn.004269c0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0xa3c318]
test ecx, ecx
je 0x430b29
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0xa3c318], eax
mov dword [ecx + 4], ebx
jmp 0x430b36
mov ebx, dword [0xa3c338]
inc ebx
mov dword [0xa3c338], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x430b55
push 0x70
call fcn.004c21d4
add esp, 4
mov ecx, eax
push ebx
call fcn.004308f0
mov edi, eax
mov ecx, dword [0xa271d4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x430b6f
call fcn.00437b60
mov ecx, eax
mov eax, dword [0xa3c334]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x431750
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.0050b8e0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x431788
mov byte [esi + 8], 1
call ebx
jmp 0x43178e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4317aa
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x431760
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x431ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.00432f00
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.0043d980
lea ecx, [esp + 0x18]
call fcn.0043da60
mov esp, ebp
pop ebp
ret

Function at 0x433dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x64106c]
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], 0x620c90
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], 0x6205f8
call fcn.00405150
lea ecx, [esp + 0x238]
call fcn.00431750
test eax, eax
je 0x433f32
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.00419020
call edi
cmp esi, eax
jne 0x433e82
cmp byte [0xa3c2e8], 0
jne 0x433f7a
int3
test bl, 1
je 0x433e93
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.0041f860
test bl, 2
je 0x433ea4
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.0041f860
cmp byte [esp + 0x10], 0
je 0x433eaf
call edi
jmp 0x433eb3
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 0x433ef9
cmp byte [esp + 0x10], 0
je 0x433ed4
call edi
jmp 0x433ed8
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x433f0d
test bl, 4
je 0x433f0d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x433f08
test bl, 8
je 0x433f11
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.0041fee0
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.00418fb0
lea ecx, [esp + 0x238]
call fcn.00431750
test eax, eax
jne 0x433e45
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x6205f8
call fcn.00405040
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x620c90
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.004c21c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
int3
Function at 0x436e50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x436e6b
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.00421360
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00421480
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00436db0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x436ed0
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 0x436f3e
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 + 0x620800]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x620800]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x620800]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x620800]
sub ebx, 1
jne 0x436ee7
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437b60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0xa271d4]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x437c00
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x437bad
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x437bde
cmp byte [0xa3c2e8], 0
jne 0x437c77
int3
mov ecx, ebx
mov edx, 0xa271d4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x437c00
push ebx
call esi
mov ebx, dword [0xa271d4]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x437c15
cmp byte [0xa3c2e8], 0
jne 0x437c85
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0050b8e0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.004c244f
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
push 1
call fcn.0050e303
push 1
call fcn.0050e303
int3
Function at 0x437c90
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0xa271d4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004c221a
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0xa3c360]
xor dl, dl
test esi, esi
jle 0x437d28
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x437d23
mov eax, dword [esi*4 + 0xa3b6d0]
test eax, eax
je 0x437d23
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x437d00
dec edi
test edi, edi
jle 0x437d31
test dl, dl
jne 0x437cf0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x437d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0xa271d4]
mov dword [ebp - 4], 0
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x437d85
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x437d8a
call fcn.00437b60
mov eax, 1
mov ecx, 0xa3c360
lock xadd dword [ecx], eax
inc eax
mov dword [esi + 4], eax
cmp eax, 0x100
jl 0x437dad
cmp byte [0xa3c2e8], 0
jne 0x437dc6
int3
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0xa3b6d0], eax
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.0050e303
int3

Function at 0x438500
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 0x438590
cmp dword [0xa3c1c0], 3
jg 0x438582
sub esp, 8
mov dword [esp + 0x10], 3
lea ecx, [esp + 0x18]
call fcn.0041b660
mov dword [esp + 0xac], str.c:codezm3rd_base_threading_thread_local_win.cc
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.c:codezm3rd_base_threading_thread_local_win.cc
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.0041fa30
mov edx, str.Failed_to_TlsSetValue__.
lea ecx, [esp + 0x10]
call fcn.00407060
mov ebx, 1
test bl, 1
je 0x438590
lea ecx, [esp + 8]
call fcn.0041f860
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438710
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], 0x620ee8
mov dword [edi], 0x620ee0
mov dword [edi + 4], 0x620f00
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.00432f00
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 0x438783
cmp dword [eax], edi
je 0x43877f
add eax, 4
cmp eax, edx
jne 0x438774
cmp eax, edx
jne 0x43878c
lea eax, [ebp + 8]
push eax
call fcn.004337c0
call fcn.0043c930
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4387aa
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0xa3c470]
test eax, eax
jne 0x4387b8
call fcn.00442a00
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.00442250
test esi, esi
je 0x4387f8
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x4387f8
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.0043b940
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 0x438860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
lea esi, [ebx + 4]
mov dword [esi], 0x620f00
push edi
mov dword [ebx], 0x620ee0
call fcn.00432f00
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.00433510
mov eax, dword [0xa3c470]
test eax, eax
jne 0x4388ab
call fcn.00442a00
push ecx
push esi
mov ecx, eax
call fcn.00442310
mov esi, dword [ebx + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xc], 0
je 0x4388f2
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x240]
cmp dword [ebx + 0x14], eax
jne 0x4388f2
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.00432f00
push dword [eax]
call edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov eax, dword [ebx + 8]
push ecx
add eax, 0x204
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.0043b110
mov edi, dword [esp + 0x18]
mov eax, edi
mov edx, dword [esp + 0x1c]
cmp edi, edx
je 0x438936
nop word [eax + eax]
mov eax, dword [eax]
cmp eax, edx
jne 0x438930
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.0043b1e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 8]
xor edx, edx
mov ecx, dword [ecx + 0x1f8]
call fcn.00438500
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x43897b
mov ecx, esi
call fcn.00440450
push esi
call fcn.004c2207
add esp, 4
pop edi
pop esi
mov dword [ebx], 0x620320
mov dword [ebx + 4], 0x620ee8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438be0
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], 0x620ef4
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.004052e0
lea ecx, [edi + 0x78]
call fcn.00424ae0
push ecx
lea eax, [esp + 0xc]
mov dword [edi + 0x98], 0
push eax
lea ecx, [edi + 0x9c]
mov dword [esp + 0x10], 0
call fcn.0043b380
lea ecx, [edi + 0xbc]
call fcn.00424ae0
lea ecx, [edi + 0xdc]
call fcn.0043ae00
lea ecx, [edi + 0xfc]
call fcn.00424ae0
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.004052e0
mov dword [edi + 0x164], 1
lea ecx, [edi + 0x170]
mov dword [edi + 0x168], 0
mov dword [edi + 0x16c], 0
call fcn.00440a50
lea ecx, [edi + 0x1b4]
call fcn.00440a50
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x1f8], 0
call esi
mov dword [edi + 0x1f8], eax
cmp eax, 0xffffffff
jne 0x438d83
cmp byte [0xa3c2e8], 0
jne 0x438eb8
int3
mov dword [edi + 0x1fc], 0
call esi
mov dword [edi + 0x1fc], eax
cmp eax, 0xffffffff
jne 0x438da8
cmp byte [0xa3c2e8], 0
jne 0x438ebf
int3
mov dword [edi + 0x200], 0
call esi
mov dword [edi + 0x200], eax
cmp eax, 0xffffffff
jne 0x438dcd
cmp byte [0xa3c2e8], 0
jne 0x438ec6
int3
lea ecx, [edi + 0x204]
call fcn.0043ada0
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.004c2900
mov ecx, edi
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], edx
call fcn.0043abe0
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x3c], eax
test ecx, ecx
je 0x438e7b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0xa3c470]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x438e91
call fcn.00442a00
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.00442250
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
push 1
call fcn.0050e303
push 1
call fcn.0050e303
int3
Function at 0x439220
Capabilities:
Get thread local storage value

Disassembly:
push ecx
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 0x439285
call fcn.00432f00
push dword [eax]
call edi
test eax, eax
je 0x439285
push dword [esi + 0x1f8]
call edi
mov edx, eax
test edx, edx
je 0x439266
mov ecx, dword [edx + 0x14]
cmp ecx, dword [esi + 0x240]
je 0x439285
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x18
call fcn.004c21d4
add esp, 4
mov ecx, eax
push esi
call fcn.00438710
mov ecx, dword [esi + 0x1f8]
mov edx, eax
call fcn.00438500
pop edi
pop esi
pop ecx
ret
Function at 0x43a330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov bl, byte [ecx]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0
test bl, bl
je 0x43a524
push dword [edi + 0x200]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43a524
mov ecx, dword [edi + 0x200]
lea edx, [edi + 0x200]
call fcn.00438500
call fcn.004266c0
test al, al
je 0x43a3a9
lea ecx, [ebp - 0x78]
call fcn.00426600
jmp 0x43a3b4
xorps xmm0, xmm0
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x68], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
mov ecx, edi
push eax
call fcn.004385d0
test bl, 8
je 0x43a3d7
mov ecx, dword [ebp - 0x3c]
call fcn.0043f150
lea ecx, [ebp - 0x1c]
call fcn.004052e0
test bl, 1
je 0x43a499
push dword [ebp - 0x54]
lea eax, [edi + 4]
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, edi
lea eax, [ebp - 0x50]
push eax
call fcn.0043ab20
mov edx, eax
test edx, edx
je 0x43a434
mov ecx, dword [ebp - 0x48]
sub ecx, dword [edx]
mov eax, dword [ebp - 0x44]
sbb eax, dword [edx + 4]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
je 0x43a434
mov eax, dword [ebp - 0x5c]
sub eax, dword [edx + 8]
mov ecx, dword [ebp - 0x64]
sbb ecx, dword [edx + 0xc]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [edi + 0x164]
test al, 8
je 0x43a461
push edx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push 0x45
lea eax, [ebp - 0x34]
push eax
call fcn.00439e80
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411390
lea ecx, [ebp - 0x34]
call fcn.004051e0
cmp dword [0xa3c454], 0
je 0x43a48a
mov eax, dword [0xa3c454]
test eax, eax
setne al
test al, al
je 0x43a48a
call fcn.004409b0
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x43a48a
add ecx, 0xfffffffc
mov dword [eax + 4], ecx
cmp byte [ebp - 0x4c], 0
je 0x43a499
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x43a4e2
cmp dword [0xa3c1c0], 2
jg 0x43a4d1
push 2
push 0x5b6
push str.c:codezm3rd_base_trace_event_trace_log.cc
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x38], 2
call fcn.0041f810
lea edx, [ebp - 0x1c]
lea ecx, [eax + 8]
call fcn.00412e60
test byte [ebp - 0x38], 2
je 0x43a4e2
lea ecx, [ebp - 0x128]
call fcn.0041f860
test bl, 4
je 0x43a50f
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x43a50f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
push 0x45
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call eax
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.004051e0
mov ecx, dword [edi + 0x200]
xor edx, edx
call fcn.00438500
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 0x10