joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bad0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bb1d
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40bb30
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x40bb66
test ecx, ecx
js 0x40bb66
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40bb6c
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417080
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov ecx, 0x53c1cc
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170c0
sub ecx, esi
lea eax, [ebp - 0x1c]
sar ecx, 1
push eax
push ecx
push 0x53c1cc
mov ecx, edx
call fcn.00411230
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x41711a
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.00415fd0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x41712b
push dword [ebp - 0x1c]
call fcn.004cdb8c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 4
Function at 0x41faf0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x54e0a0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00420c00
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00407eb0
mov eax, dword [0x552360]
test eax, eax
je 0x41fb59
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x41fcdb
test byte [0x54f664], 2
je 0x41fb79
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41fb7e
cmp dword [ebx], 2
jl 0x41fbb9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004d8943
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004d79e8
call fcn.004d8943
add eax, 0x40
push eax
call fcn.004d7752
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x54f664], 1
je 0x41fc58
xor edx, edx
xor ecx, ecx
call fcn.0041f210
cmp dword [0x552338], 0
jne 0x41fbe8
push 0xffffffffffffffff
push dword [0x552340]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41fbf4
push dword [0x55235c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0041f3e0
test al, al
je 0x41fc35
push 2
push 0
push 0
push dword [0x552364]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x552364]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x552338], 0
jne 0x41fc4c
push dword [0x552340]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41fc58
push dword [0x55235c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x41fcdb
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41fc8c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004cf900
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00430c40
add esp, 4
cmp dword [0x552358], 0
je 0x41fcd1
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00407eb0
lea eax, [esp + 0x28]
push eax
call dword [0x552358]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x41fcdb
push dword [esp + 0x28]
call fcn.004cdb8c
add esp, 4
jmp 0x41fcdb
cmp byte [0x55343c], 0
jne 0x41fd28
int3
cmp dword [esp + 0x24], 0x10
jb 0x41fcee
push dword [esp + 0x10]
call fcn.004cdb8c
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004043d0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.005031cf
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
push 1
call fcn.004d9808
int3
Function at 0x421270
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push edi
mov edi, ecx
jne 0x421295
cmp byte [0x55343c], 0
jne 0x4213b8
int3
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
jne 0x421370
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.004215a0
push eax
lea ecx, [ebp - 8]
call fcn.00421680
mov ecx, eax
add esp, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [ecx]
test edx, edx
je 0x4212d2
mov ecx, 1
lock xadd dword [edx], ecx
mov ecx, dword [edi + 4]
push esi
or esi, 0xffffffff
mov dword [edi + 4], edx
test ecx, ecx
je 0x4212f7
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4212f7
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x42131e
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x42131e
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42133e
lock xadd dword [ecx], esi
dec esi
setne al
test al, al
jne 0x42133e
test ecx, ecx
je 0x42133e
push ecx
call fcn.004cdb8c
add esp, 4
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call fcn.00435430
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push 0xffffffffffffffff
push edi
push 0x4214a0
push esi
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
pop esi
test eax, eax
jne 0x42137a
mov dword [edi + 0xc], eax
mov dword [ebx], eax
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00435430
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], edi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x4213a5
cmp dword [eax], edi
je 0x4213a1
add eax, 4
cmp eax, edx
jne 0x421396
cmp eax, edx
jne 0x4213ae
lea eax, [ebp + 0xc]
push eax
call fcn.00437510
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
call fcn.004d9808
int3

Function at 0x4213f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x421410
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x421409
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42144e
mov byte [eax + 5], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x42144e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x42144e
push ecx
call fcn.004cdb8c
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00435430
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x54]
call fcn.00436850
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428e60
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 0x428eca
cmp dword [0x5535a0], 0
jne 0x428eb7
push 0x44
call fcn.004ce9a6
add esp, 4
test eax, eax
je 0x428e98
mov ecx, eax
call fcn.0041c720
mov edx, eax
jmp 0x428e9a
xor edx, edx
mov ecx, edx
mov esi, 0x5535a0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x428eb7
test edx, edx
je 0x428eb7
push ecx
mov ecx, edx
call fcn.0041c6e0
mov eax, dword [0x5535a0]
cmp dword [eax], 1
jl 0x428eca
mov dword [ebp - 4], 0x10000
jmp 0x428ecc
xor ebx, ebx
push 0xc
call fcn.004ce9a6
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 0x428d60
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 0x428f15
push esi
call fcn.004cdb8c
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x428f24
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 0x42fed0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x42fee2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x42fef9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004cf78a
mov esi, eax
add esp, 8
test esi, esi
je 0x42ff72
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42ff69
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42ff69
cmp dword [ebp - 4], 0
je 0x42ff69
push 0x10
call fcn.004ce9a6
add esp, 4
test eax, eax
je 0x42ff72
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.0042fcf0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004cf7ca
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4308b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x53c9a0
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004d1a57
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x430984
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43099e
cmp esi, 8
jb 0x430920
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x4309c8
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00406340
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4309d0
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00406340
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
Function at 0x433870
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
lea ecx, [ebp - 4]
cmp dword [edi + 0x70], 0
je 0x4338c7
push dword [edi + 0x70]
mov eax, dword [edi + 0x74]
push ecx
call eax
add esp, 8
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4338ae
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x4338c2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], esi
jmp 0x4338fb
mov edx, dword [edi + 8]
call fcn.00433030
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x4338eb
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], esi
test ecx, ecx
je 0x4338fb
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00435430
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x433912
call fcn.00450f80
push ebx
mov ebx, dword [edi + 0xb4]
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x34], 0
mov byte [ebx + 0x42], 1
je 0x43393c
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebx + 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 [ebp - 8]
pop ebx
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb8], 0
test ecx, ecx
je 0x4339ac
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4339ac
test ecx, ecx
je 0x4339a5
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [eax + 0xc]
mov ecx, esi
call fcn.00433a50
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.00433a50
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x433a50
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x433a79
push ecx
call fcn.00435ae0
push 4
mov dword [esi + 0xc0], 0
call fcn.004ce9a6
mov edi, eax
add esp, 4
test edi, edi
je 0x433ac4
mov eax, dword [esi + 0xbc]
mov dword [edi], eax
test eax, eax
je 0x433aab
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
call fcn.00450120
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x433ac6
call fcn.00450f80
jmp 0x433ac6
xor edi, edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x433ae0
push ecx
call fcn.00435ae0
mov dword [esi + 0xc0], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x435ae0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00450120
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x435b08
call fcn.00450f80
mov ecx, dword [esi]
test ecx, ecx
je 0x435b30
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x435b30
test ecx, ecx
je 0x435b29
add ecx, 0xfffffffc
jmp 0x435b2b
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.004cdb8c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43dda0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0043f080
mov eax, dword [0x54f814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x43ddc1
call fcn.00475160
mov edx, eax
mov eax, dword [0x5533c8]
cmp dword [edx + eax*4], 0
jne 0x43de09
push 0x70
call fcn.004ce9a6
add esp, 4
test eax, eax
je 0x43dde6
push esi
mov ecx, eax
call fcn.0043da90
mov esi, eax
jmp 0x43dde8
xor esi, esi
mov eax, dword [0x54f814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43de01
call fcn.00475160
mov ecx, eax
mov eax, dword [0x5533c8]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x43de10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5533c4]
push ebx
push esi
push edi
test eax, eax
jne 0x43de20
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x54f814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43de39
call fcn.00475160
mov ecx, eax
mov eax, dword [0x5533c8]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x43ded0
mov ecx, 0x5533a0
xor edi, edi
xor ebx, ebx
call fcn.0043cff0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x55339c]
test ecx, ecx
je 0x43de79
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x55339c], eax
mov dword [ecx + 4], ebx
jmp 0x43de86
mov ebx, dword [0x5533d4]
inc ebx
mov dword [0x5533d4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x43dead
push 0x70
call fcn.004ce9a6
add esp, 4
test eax, eax
je 0x43deab
push ebx
mov ecx, eax
call fcn.0043db90
mov edi, eax
jmp 0x43dead
xor edi, edi
mov eax, dword [0x54f814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43dec6
call fcn.00475160
mov ecx, eax
mov eax, dword [0x5533c8]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x44f730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edx]
push edi
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
call fcn.00450120
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, 1
mov eax, dword [eax]
mov dword [esi + 0x10], eax
test eax, eax
je 0x44f77d
mov ecx, ebx
add eax, 4
lock xadd dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov edx, dword [edx]
test edx, edx
je 0x44f7a8
mov eax, ebx
lock xadd dword [edx], eax
mov ecx, dword [esi + 0x1c]
or edi, 0xffffffff
mov dword [esi + 0x1c], edx
test ecx, ecx
je 0x44f7cc
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x44f7cc
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x44f7e2
lock xadd dword [eax], ebx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x44f801
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x44f801
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x459060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x53e5a0
mov dword [edi], 0x53e57c
mov dword [edi + 4], 0x53e584
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 0x218]
mov dword [edi + 0x20], eax
call fcn.00435430
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], edi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x4590ef
lea esp, [esp]
cmp dword [eax], edi
je 0x4590eb
add eax, 4
cmp eax, edx
jne 0x4590e0
cmp eax, edx
jne 0x4590f8
lea eax, [ebp + 8]
push eax
call fcn.00437510
call fcn.00450120
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 8], esi
test esi, esi
je 0x459116
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x553554]
test eax, eax
jne 0x459124
call fcn.00486d70
lea ecx, [ebp - 8]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.00485870
test esi, esi
je 0x459159
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x459159
test ecx, ecx
je 0x459152
add ecx, 0xfffffffc
jmp 0x459154
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x553390]
lea ecx, [ebx + 0x1dc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00465980
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 0x4591d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
lea esi, [ebx + 4]
mov dword [esi], 0x53e584
push edi
mov dword [ebx], 0x53e57c
call fcn.00435430
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.00436850
mov eax, dword [0x553554]
test eax, eax
jne 0x45921b
call fcn.00486d70
push esi
mov ecx, eax
call fcn.00485930
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x45928e
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
jne 0x459247
cmp edx, 0x7fffffff
jne 0x459247
movsd xmm0, qword [0x54f4c8]
jmp 0x459254
call fcn.004d0e1f
divsd xmm0, qword [0x543018]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.00459360
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00464f90
add esp, 0xc
mov esi, dword [ebx + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xc], 0
je 0x4592cc
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x218]
cmp dword [ebx + 0x20], eax
jne 0x4592cc
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.00435430
push dword [eax]
call edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov eax, dword [ebx + 8]
push ecx
add eax, 0x1dc
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00460030
mov edi, dword [esp + 0x20]
mov eax, edi
mov edx, dword [esp + 0x24]
cmp edi, edx
je 0x45930a
mov eax, dword [eax]
cmp eax, edx
jne 0x459304
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push edi
push eax
call fcn.0045ffd0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 8]
push 0
push dword [eax + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x45933b
call fcn.00450f80
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x459348
push ecx
call fcn.00460880
pop edi
pop esi
mov dword [ebx], method.ATL::CAcl::CAce.virtual_4
mov dword [ebx + 4], 0x53e5a0
pop ebx
mov esp, ebp
pop ebp
ret