joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428200
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0041dcb0
test al, al
jne 0x428227
mov ecx, dword [ebp + 0xc]
call fcn.0041dcb0
test al, al
jne 0x428227
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.004241d0
xor al, al
pop ebp
ret

Function at 0x428230
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 0x428257
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x428252
mov eax, dword [ebx]
jmp 0x428254
mov eax, ebx
mov byte [eax], 0
call fcn.0041dcb0
test al, al
je 0x428269
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x413024
push esi
call fcn.00423a00
mov edi, eax
add esp, 8
mov dword [ebp - 0xc], edi
test edi, edi
je 0x428260
push 0x10000
call fcn.004903b5
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.00495978
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x428302
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x4282d5
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.00419900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x428318
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.00495978
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4282b3
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00495a24
add esp, 4
test eax, eax
jne 0x42831b
mov byte [ebp - 1], 1
jmp 0x42831f
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00495e46
add esp, 4
test esi, esi
je 0x428335
push esi
call fcn.004903b0
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], 0
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x428999
cmp byte [ebp + 8], 0
je 0x428a18
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x428a18
cmp dword [0x4ba12c], 2
jg 0x428993
push 2
push 0x67
push 0x413040
lea ecx, [ebp - 0xbc]
mov dword [ebp - 8], 1
call fcn.0041fa50
push edi
add eax, 8
push 0x413084
push eax
call fcn.0041b630
add esp, 8
mov ecx, eax
call fcn.00420390
test byte [ebp - 8], 1
jmp 0x428a0b
cmp dword [0x4ba12c], 2
jg 0x428a07
push 1
push 2
lea ecx, [ebp - 0xb4]
mov dword [ebp - 8], 2
mov dword [ebp - 0xbc], 2
call fcn.0041ee10
mov dword [ebp - 0x18], 0x413040
mov dword [ebp - 0x14], 0x6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x6e
push 0x413040
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x10], eax
call fcn.0041fd20
push edi
lea eax, [ebp - 0xb4]
push 0x4130b0
push eax
call fcn.0041b630
add esp, 8
mov ecx, eax
call fcn.00420390
test byte [ebp - 8], 2
je 0x428a18
lea ecx, [ebp - 0xbc]
call fcn.0041faa0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42db90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004903f0
mov eax, dword [0x4b4810]
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 0x42dcd7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x42dc64
cmp word [esp + 0x10], ax
jne 0x42dc28
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0041a940
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00492f61
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 0x42dc30
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041a940
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x42dcd2
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 0x42dcb7
cmp eax, 0x400
ja 0x42dcb7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0041e160
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
Function at 0x42f250
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
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 [esp + 0x10], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0xc], eax
push edi
test bl, 0x10
je 0x42f2b0
mov dword [esp + 0x10], 5
jmp 0x42f2b8
test eax, eax
je 0x42f3fb
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 0x42f2db
or edx, 0x80000000
test ebx, 0x4000
je 0x42f2e9
or edx, 0x100
test ebx, 0x40000
je 0x42f2f7
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x42f30c
or ecx, 2
test ebx, 0x8000
je 0x42f316
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x42f32e
or eax, 0x100
test ebx, 0x1000
je 0x42f339
or eax, 2
test ebx, 0x2000
je 0x42f346
or eax, 0x4000000
test ebx, 0x20000
je 0x42f353
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x42f35e
mov edi, dword [edi]
push 0
push eax
push dword [esp + 0x18]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x42f39c
mov ecx, esi
call fcn.004242a0
test edi, edi
je 0x42f39c
cmp edi, 0xffffffff
je 0x42f39c
mov dword [esi], edi
call fcn.004261b0
push eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call fcn.00426300
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x42f3eb
cmp eax, 0xffffffff
je 0x42f3eb
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [esp + 0x14], 0
mov byte [esi + 9], al
je 0x42f3d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x42f3fb
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f420
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430450
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 0x4304bc
cmp dword [0x4bb344], 0
jne 0x4304a9
push 0x44
call fcn.0048f19b
add esp, 4
test eax, eax
je 0x43048a
mov ecx, eax
call fcn.00427630
mov edx, eax
jmp 0x43048c
xor edx, edx
mov ecx, edx
mov edi, 0x4bb344
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4304a9
test edx, edx
je 0x4304a9
push ecx
mov ecx, edx
call fcn.004275f0
mov eax, dword [0x4bb344]
cmp dword [eax], 1
jl 0x4304bc
mov dword [ebp - 4], 0x10000
jmp 0x4304be
xor ebx, ebx
push 8
call fcn.0048f19b
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 0x430330
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x430501
push edi
call fcn.0048f211
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x430517
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 0x4365a0
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]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.00447e70
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x4365d8
mov byte [esi + 8], 1
call ebx
jmp 0x4365de
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4365fa
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x4365b0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x439fb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0043a080
test al, al
je 0x43a01d
mov eax, dword [0x4b59a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x439fd5
call fcn.0043c270
mov ecx, eax
mov eax, dword [0x4bb288]
cmp dword [ecx + eax*4], 0
jne 0x43a01d
push 0x74
call fcn.0048f19b
add esp, 4
test eax, eax
je 0x439ffa
push esi
mov ecx, eax
call fcn.00439d90
mov esi, eax
jmp 0x439ffc
xor esi, esi
mov eax, dword [0x4b59a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43a015
call fcn.0043c270
mov ecx, eax
mov eax, dword [0x4bb288]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x43b420
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 0x43b466
cmp byte [0x4bb2a4], al
jne 0x43b491
int3
test bl, 1
je 0x43b479
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.0041faa0
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 0x43b443
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0049068d
int3
Function at 0x43c270
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [0x4b59a4]
mov dword [esp + 4], 0
mov dword [esp + 4], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x43c30d
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x43c2be
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x43c2ed
cmp byte [0x4bb2a4], 0
jne 0x43c380
int3
mov ecx, ebx
mov edx, 0x4b59a4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x43c30d
push ebx
call esi
mov ebx, dword [0x4b59a4]
mov dword [esp + 0xc], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c322
cmp byte [0x4bb2a4], 0
jne 0x43c38e
int3
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00447e70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.004903b5
add esp, 4
lea esi, [esp + 0x10]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
push 1
call fcn.0049068d
push 1
call fcn.0049068d
push 1
call fcn.0049068d
int3

Function at 0x43c3a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4b59a4]
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.004903b0
add esp, 4
mov edi, 0x100
jmp 0x43c400
mov esi, dword [0x4bb2b4]
xor dl, dl
test esi, esi
jle 0x43c438
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x43c433
mov eax, dword [esi*4 + 0x4bab80]
test eax, eax
je 0x43c433
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x43c410
dec edi
test edi, edi
jle 0x43c441
test dl, dl
jne 0x43c400
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.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x43c6e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4b4810]
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 0x43c705
mov dword [ebp - 0x38], edi
jmp 0x43c724
cmp byte [edi], 0
jne 0x43c713
mov dword [ebp - 0x38], 0
jmp 0x43c724
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c718
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428e00
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43c73c
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 0x43c75d
push dword [ebp - 0x1c]
call fcn.0048f211
add esp, 4
test esi, esi
jne 0x43c776
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x43c881
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004903b5
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x43c7a7
mov dword [ebp - 0x40], edi
jmp 0x43c7c4
cmp byte [edi], 0
jne 0x43c7b5
mov dword [ebp - 0x40], 0
jmp 0x43c7c4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x43c7b8
sub edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428e00
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43c7dc
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 0x43c7f8
push dword [ebp - 0x1c]
call fcn.0048f211
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00418fd0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00428cf0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x43c840
cmp dword [ebx + 0x14], 0x10
jb 0x43c827
push dword [ebx]
call fcn.0048f211
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.004197e0
cmp dword [ebp - 0x20], 0x10
jb 0x43c851
push dword [ebp - 0x34]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x43c874
push dword [ebp - 0x1c]
call fcn.0048f211
add esp, 4
test esi, esi
je 0x43c881
push esi
call fcn.004903b0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret 8
Function at 0x43e560
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], 0x413ef4
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.00436690
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 0x43e5d7
cmp dword [eax], esi
je 0x43e5d3
add eax, 4
cmp eax, edx
jne 0x43e5c8
cmp eax, edx
jne 0x43e5e0
lea eax, [ebp + 8]
push eax
call fcn.004367f0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x4bb11b]
lea ecx, [edi + 0x1e8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004436c0
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 0x43e650
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], 0x413ef4
call fcn.00436690
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
cmp edx, ecx
je 0x43e6ba
cmp dword [edx], edi
je 0x43e68f
add edx, 4
cmp edx, ecx
jne 0x43e684
cmp edx, ecx
je 0x43e6ba
cmp dword [esi + 0x64], 0
je 0x43e6a1
mov dword [edx], 0
jmp 0x43e6ba
mov eax, ecx
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call fcn.0048f360
add esp, 0xc
add dword [esi + 0x5c], 0xfffffffc
mov esi, dword [edi + 0x10]
test esi, esi
je 0x43e725
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x43e6de
cmp edx, 0x7fffffff
jne 0x43e6de
movsd xmm0, qword [0x4b57e8]
jmp 0x43e6eb
call fcn.00492caf
divsd xmm0, qword [0x414148]
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.0043e7d0
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00443550
add esp, 0xc
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
je 0x43e760
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x234]
cmp dword [edi + 0x20], eax
jne 0x43e760
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x3c]
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.00436690
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.004421d0
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 0x43e7a5
call fcn.0043b520
mov esi, dword [edi + 8]
test esi, esi
je 0x43e7bc
mov ecx, esi
call fcn.00442f50
push esi
call fcn.0048f211
add esp, 4
mov dword [edi], 0x413258
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x441175
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1dc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x4411ca
push dword [edi + 0x1dc]
call esi
mov ebx, eax
mov esi, dword [ebx + 8]
test esi, esi
je 0x4411ca
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x1808]
jne 0x4411cd
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, dword [ebx + 0xc]
jne 0x4411cd
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, esi
je 0x4411cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
je 0x4411e9
cmp byte [esi + 4], 0
jne 0x4411e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0xc]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x208]
test ecx, ecx
je 0x441227
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [edi + 0x20c]
jne 0x441227
cmp edx, dword [ecx + 0x1808]
jne 0x44116a
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push dword [ebp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442a30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 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 0x442a83
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 edi, dword [edx + ecx*4]
inc ecx
lea ecx, [edx + ecx*4]
mov dword [ebp + 0xc], ecx
cmp edi, esi
jne 0x442a9f
mov ecx, esi
jmp 0x442aa3
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x442af3
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x442ab5
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
jmp 0x442a97
mov ecx, dword [ebx]
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
nop
cmp edi, esi
jne 0x442ac8
mov ecx, esi
jmp 0x442acc
mov ecx, dword [ebx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x442adc
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jne 0x442adc
mov eax, dword [eax]
jmp 0x442ac0
cmp edx, eax
je 0x442af3
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x443010
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x443063
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x44308f
cmp dword [ecx], edi
jne 0x443087
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ecx + edx + 4], eax
jmp 0x443097
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x443097
cmp dword [ecx], edi
jne 0x44309a
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0048f211
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8