joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425d60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x425d81
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425d84
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x425e0b
cmp byte [ebp + 0xc], 0
je 0x425e8e
cmp byte [esi], 0
je 0x425dad
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425db0
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x425e8e
cmp dword [0x4b60d8], 2
jg 0x425e05
push 2
push 0x89
push 0x413158
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 2
call fcn.0041fdc0
push 1
add eax, 8
push 0x41319c
push eax
call fcn.0041bbb0
add esp, 8
mov ecx, eax
call fcn.00420700
test byte [ebp - 4], 2
jmp 0x425e81
cmp dword [0x4b60d8], 2
jg 0x425e7d
push 1
push 2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 4
mov dword [ebp - 0xb8], 2
call fcn.0041f3a0
mov dword [ebp - 0x14], 0x413158
mov dword [ebp - 0x10], 0x90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x90
push 0x413158
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc], eax
call fcn.00420090
push 1
lea eax, [ebp - 0xb0]
push 0x4131c8
push eax
call fcn.0041bbb0
add esp, 8
mov ecx, eax
call fcn.00420700
test byte [ebp - 4], 4
je 0x425e8e
lea ecx, [ebp - 0xb8]
call fcn.0041fe10
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427000
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x427052
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x42706a
mov ecx, esi
jmp 0x42706f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x42709c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x42707e
mov eax, dword [eax]
jmp 0x427062
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x42708e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4273e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x427434
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x427463
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x427463
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x4274a7
cmp esi, eax
jne 0x427457
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x427491
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4274c3
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4274e5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00427500
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4274cb
mov dword [ecx], edi
jmp 0x4274e5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4274e5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00427550
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428eb0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0041e240
test al, al
jne 0x428ed7
mov ecx, dword [ebp + 0xc]
call fcn.0041e240
test al, al
jne 0x428ed7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00424450
xor al, al
pop ebp
ret

Function at 0x428ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x428f07
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x428f02
mov eax, dword [ebx]
jmp 0x428f04
mov eax, ebx
mov byte [eax], 0
call fcn.0041e240
test al, al
je 0x428f19
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4132b4
push esi
call fcn.00423ae0
mov edi, eax
add esp, 8
mov dword [ebp - 0xc], edi
test edi, edi
je 0x428f10
push 0x10000
call fcn.0048e105
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004935a8
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x428fb2
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x428f85
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00419e80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x428fc8
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004935a8
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x428f63
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00493654
add esp, 4
test eax, eax
jne 0x428fcb
mov byte [ebp - 1], 1
jmp 0x428fcf
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00493a76
add esp, 4
test esi, esi
je 0x428fe5
push esi
call fcn.0048e100
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d980
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0048e140
mov eax, dword [0x4b0780]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42dac7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x42da54
cmp word [esp + 0x10], ax
jne 0x42da18
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0041aec0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42da20
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041aec0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x42dac2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x42daa7
cmp eax, 0x400
ja 0x42daa7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0041e6f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
Function at 0x42f2f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 8], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 8], eax
push edi
test bl, 0x10
je 0x42f349
mov dword [ebp + 8], 5
jmp 0x42f351
test eax, eax
je 0x42f4ae
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x42f374
or edx, 0x80000000
test ebx, 0x4000
je 0x42f382
or edx, 0x100
test ebx, 0x40000
je 0x42f390
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x42f3a5
or ecx, 2
test ebx, 0x8000
je 0x42f3af
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x42f3c7
or eax, 0x100
test ebx, 0x1000
je 0x42f3d2
or eax, 2
test ebx, 0x2000
je 0x42f3df
or eax, 0x4000000
test ebx, 0x20000
je 0x42f3ec
or eax, 0x2000000
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x42f3f7
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 8]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x42f450
mov ecx, esi
call fcn.004245a0
test edi, edi
je 0x42f450
cmp edi, 0xffffffff
je 0x42f450
mov dword [esi], edi
call fcn.00428510
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b6178]
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x42f443
call fcn.00428620
mov ecx, dword [0x4b6178]
push dword [ebp + 8]
mov eax, dword [ecx]
push dword [ebp - 4]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x42f49e
cmp eax, 0xffffffff
je 0x42f49e
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 8], 0
mov byte [esi + 0x25], al
je 0x42f48c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test bl, 0xa
je 0x42f4ae
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f0c0
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, edx
push edi
test ebx, ebx
je 0x43036c
cmp dword [0x4b7360], 0
jne 0x430359
push 0x44
call fcn.0048cef3
add esp, 4
test eax, eax
je 0x43033a
mov ecx, eax
call fcn.00427740
mov edx, eax
jmp 0x43033c
xor edx, edx
mov ecx, edx
mov edi, 0x4b7360
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x430359
test edx, edx
je 0x430359
push ecx
mov ecx, edx
call fcn.00427700
mov eax, dword [0x4b7360]
cmp dword [eax], 1
jl 0x43036c
mov dword [ebp - 4], 0x10000
jmp 0x43036e
xor ebx, ebx
push 8
call fcn.0048cef3
add esp, 4
mov edi, eax
push 0
push dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x4301b0
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4303b1
push edi
call fcn.0048cf69
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4303c7
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
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 0x43a0e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0043a430
mov eax, dword [0x4b1918]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x43a101
call fcn.0043d240
mov edx, eax
mov eax, dword [0x4b7248]
cmp dword [edx + eax*4], 0
jne 0x43a149
push 0x70
call fcn.0048cef3
add esp, 4
test eax, eax
je 0x43a126
push esi
mov ecx, eax
call fcn.00439eb0
mov esi, eax
jmp 0x43a128
xor esi, esi
mov eax, dword [0x4b1918]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43a141
call fcn.0043d240
mov ecx, eax
mov eax, dword [0x4b7248]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x43a150
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x4b7244], 0
push ebx
push esi
push edi
jne 0x43a162
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4b1918]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43a17b
call fcn.0043d240
mov ecx, eax
mov eax, dword [0x4b7248]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x43a212
mov ecx, 0x4b7228
xor edi, edi
xor ebx, ebx
call fcn.0042ed80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4b7218]
test ecx, ecx
je 0x43a1bb
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x4b7218], eax
mov dword [ecx + 4], ebx
jmp 0x43a1c8
mov ebx, dword [0x4b7254]
inc ebx
mov dword [0x4b7254], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x43a1ef
push 0x70
call fcn.0048cef3
add esp, 4
test eax, eax
je 0x43a1ed
push ebx
mov ecx, eax
call fcn.00439f70
mov edi, eax
jmp 0x43a1ef
xor edi, edi
mov eax, dword [0x4b1918]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43a208
call fcn.0043d240
mov ecx, eax
mov eax, dword [0x4b7248]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x43c140
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 8
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43c186
cmp byte [0x4b7268], al
jne 0x43c1b1
int3
test bl, 1
je 0x43c199
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.0041fe10
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x43c163
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048e41d
int3
Function at 0x43c3c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x43c3e5
mov dword [ebp - 0x38], edi
jmp 0x43c404
cmp byte [edi], 0
jne 0x43c3f3
mov dword [ebp - 0x38], 0
jmp 0x43c404
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c3f8
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004294c0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43c41c
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x43c43d
push dword [ebp - 0x1c]
call fcn.0048cf69
add esp, 4
test esi, esi
jne 0x43c456
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x43c561
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e105
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x43c487
mov dword [ebp - 0x40], edi
jmp 0x43c4a4
cmp byte [edi], 0
jne 0x43c495
mov dword [ebp - 0x40], 0
jmp 0x43c4a4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x43c498
sub edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004294c0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43c4bc
mov eax, dword [eax]
push dword [ebp - 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x43c4d8
push dword [ebp - 0x1c]
call fcn.0048cf69
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00419550
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004293b0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x43c520
cmp dword [ebx + 0x14], 0x10
jb 0x43c507
push dword [ebx]
call fcn.0048cf69
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.00419d60
cmp dword [ebp - 0x20], 0x10
jb 0x43c531
push dword [ebp - 0x34]
call fcn.0048cf69
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x43c554
push dword [ebp - 0x1c]
call fcn.0048cf69
add esp, 4
test esi, esi
je 0x43c561
push esi
call fcn.0048e100
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret 8
Function at 0x43d240
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 [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4b1918]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x43d2e0
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x43d28d
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x43d2be
cmp byte [0x4b7268], 0
jne 0x43d357
int3
mov ecx, ebx
mov edx, 0x4b1918
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x43d2e0
push ebx
call esi
mov ebx, dword [0x4b1918]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d2f5
cmp byte [0x4b7268], 0
jne 0x43d365
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00449f04
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.0048e105
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.00490c9e
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048e41d
push 1
call fcn.0048e41d
push 1
call fcn.0048e41d
int3

Function at 0x43d370
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4b0780]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4b1918]
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.0048e100
add esp, 4
mov edi, 0x100
jmp 0x43d3d0
mov esi, dword [0x4b7278]
xor dl, dl
test esi, esi
jle 0x43d408
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x43d403
mov eax, dword [esi*4 + 0x4b6b00]
test eax, eax
je 0x43d403
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x43d3e0
dec edi
test edi, edi
jle 0x43d411
test dl, dl
jne 0x43d3d0
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.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x43f420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0x413ea8
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x234]
mov dword [esi + 0x20], eax
call fcn.00439a60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x43f497
cmp dword [eax], esi
je 0x43f493
add eax, 4
cmp eax, edx
jne 0x43f488
cmp eax, edx
jne 0x43f4a0
lea eax, [ebp + 8]
push eax
call fcn.00439c30
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x4b70ca]
lea ecx, [edi + 0x1e8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00444770
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43f510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [edi], 0x413ea8
call fcn.00439a60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea ecx, [eax + 0x54]
call fcn.00439b10
mov esi, dword [edi + 0x10]
test esi, esi
je 0x43f5ac
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x43f565
cmp edx, 0x7fffffff
jne 0x43f565
movsd xmm0, qword [0x4b1758]
jmp 0x43f572
call fcn.0049093f
divsd xmm0, qword [0x414680]
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, edi
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.0043f650
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00444570
add esp, 0xc
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
je 0x43f5e7
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x234]
cmp dword [edi + 0x20], eax
jne 0x43f5e7
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edi + 8]
push ecx
mov edx, esp
mov dword [edi + 8], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [edi + 0xc]
call dword [eax + 8]
call fcn.00439a60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
add ecx, 0x1e8
lea eax, [esp + 0xc]
push eax
call fcn.004431c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1dc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43f62c
call fcn.0043d0d0
mov esi, dword [edi + 8]
test esi, esi
je 0x43f643
mov ecx, esi
call fcn.00443f70
push esi
call fcn.0048cf69
add esp, 4
mov dword [edi], 0x41356c
pop edi
pop esi
mov esp, ebp
pop ebp
ret