joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442890
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x18]
test edi, edi
je 0x4428bb
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov edx, ecx
xor edx, 0x80
or edx, ebx
jne 0x4428e2
mov dword [eax + 0x18], 0
cmp dword [eax], 0
je 0x442a44
mov esi, dword [eax + 4]
mov ebp, 1
mov dword [eax + 4], 0
test esi, esi
mov edi, esi
jne 0x442980
jmp 0x442a44
mov edx, dword [eax + 8]
mov dword [esp], 1
mov dword [esp + 8], edx
add edx, ecx
add ecx, 1
movzx edx, dl
adc ebx, 0
mov ebp, ecx
mov esi, dword [edi + edx*4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ecx
xor ebp, 0x80
mov edx, dword [eax]
or ebp, ebx
mov ebp, esi
mov dword [esp + 0xc], edx
je 0x442964
mov dword [esp], edi
mov edi, dword [esp + 8]
mov ebp, esi
mov edx, ecx
mov dword [esp + 4], ecx
nop word [eax + eax]
mov eax, ebp
mov ebp, dword [esp]
lea ecx, [edx + edi]
add edx, 1
movzx ecx, cl
adc ebx, 0
mov ebp, dword [ebp + ecx*4]
mov ecx, edx
xor ecx, 0x80
or ecx, ebx
mov dword [eax + 4], ebp
jne 0x442930
mov eax, 0x81
sub eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xc], 0
je 0x44297b
mov edi, dword [eax + 4]
test edi, edi
je 0x44297b
mov dword [ebp + 4], edi
mov ebp, dword [esp]
inc ebp
jmp 0x442980
mov edi, ebp
mov ebp, dword [esp]
mov ebx, dword [esp + 0x24]
mov cl, 1
xor eax, eax
lock cmpxchg byte [ebx + 0xd4], cl
jne 0x4429ef
cmp byte [ebx + 0xec], 0
je 0x442a14
xor ecx, ecx
mov al, 1
lock cmpxchg byte [ebx + 0xd4], cl
je 0x4429c6
add ebx, 0xd4
push 0
push ebx
call fcn.0051d170
add esp, 8
jmp 0x4429c6
test edi, edi
mov esi, edi
je 0x442a44
mov eax, 0xffffffc0
mov edi, dword [esi + 4]
lock xadd dword [esi], eax
cmp eax, 0x3f
jbe 0x442a5f
and eax, 0xffffffc0
cmp eax, 0x40
jne 0x4429c0
mov eax, dword [esi + 8]
push esi
call dword [eax + 8]
add esp, 4
jmp 0x4429c0
lea eax, [ebx + 0xd4]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0xc], 0x3b9aca00
call fcn.0051c910
add esp, 0x10
cmp byte [ebx + 0xec], 0
jne 0x44299b
mov ecx, dword [ebx + 0xe8]
lea eax, [ebx + 0xe4]
lea edx, [ecx + 4]
test ecx, ecx
cmove edx, eax
xor ecx, ecx
mov al, 1
mov dword [edx], esi
mov dword [ebx + 0xe8], edi
add dword [ebx + 0xd0], ebp
lock cmpxchg byte [ebx + 0xd4], cl
jne 0x442a4c
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
add ebx, 0xd4
push 0
push ebx
call fcn.0051d170
add esp, 0x18
jmp 0x442a47
push 0x565a78
push 0x27
push str.assertion_failed:_prev.ref_count_____1
call fcn.0051ee20
add esp, 0xc
ud2

Function at 0x446080
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x44a210
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x44a470
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x44a254
dec eax
jmp 0x44a268
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push ecx
call fcn.0051e5f0
add esp, 4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 1
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x44a28c
lock dec dword [0x59978c]
push 4
push 0x20
push eax
call fcn.00421c20
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x44a2a5
dec eax
jmp 0x44a2b2
mov byte [ebp - 0x1d], 0
push ecx
call fcn.0051e5f0
add esp, 4
mov byte [ebp - 0x1d], 0
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44a690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x44ad90
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi]
test eax, eax
je 0x44a6e3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x44a6f8
cmp dword [eax + 4], 0
mov esi, eax
je 0x44a6f8
add esi, 4
jmp 0x44a80b
push edi
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x44a6d3
mov eax, dword [edi]
test eax, eax
je 0x44a7f0
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x44a809
mov esi, eax
test eax, eax
jne 0x44a77a
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], edi
movzx eax, byte [0x599449]
push 4
push 0x20
call fcn.00421c10
add esp, 8
test eax, eax
je 0x44a82c
movsd xmm1, qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x3c]
mov esi, eax
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [ebp - 0x34]
movsd qword [eax + 0x18], xmm0
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
mov eax, dword [edi]
test eax, eax
je 0x44a81e
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
add esi, 4
test eax, eax
je 0x44a7b3
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x44a7b3
movsd xmm0, qword [eax + 0x14]
movsd xmm2, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
movsd qword [ebp - 0x28], xmm0
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x38], xmm2
mov dword [ebp - 0x3c], ecx
jmp 0x44a7bf
lea eax, [ebp - 0x3c]
push eax
call fcn.00449ee0
add esp, 4
movsd xmm1, qword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x3c]
cmp dword [esi], 0
movsd qword [esi + 8], xmm1
movsd xmm1, qword [ebp - 0x2c]
movsd qword [esi + 0x10], xmm1
mov eax, dword [ebp - 0x24]
movsd qword [esi], xmm0
mov dword [esi + 0x18], eax
je 0x44a80b
lock dec dword [0x59978c]
jmp 0x44a80b
push edi
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x44a713
xor esi, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0051e5f0
add esp, 4
jmp 0x44a772
mov dword [ebp - 0x10], 0
push 0x20
push 4
call fcn.0051ec40
add esp, 8
ud2
Function at 0x45aea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4719b0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x45af30
jmp 0x45af1e
jbe 0x45afc4
cmp esi, 0x201
jae 0x45af30
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x45af6b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x45af5c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.0051e200
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x45af8f
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x45b027
cmp esi, edi
jne 0x45af10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45b043
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x45af1e
jmp 0x45af30
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x45b060
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0045d780
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45b011
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00421c20
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x45b001
jmp 0x45b011
mov dword [ebp - 0x10], 0
push 0x57dee8
push 0x28
push str.internal_error:_entered_unreachable_codeW
call fcn.0051ee20
add esp, 0xc
jmp 0x45b06f
push 0x57ded8
push eax
push esi
call fcn.0051f230
add esp, 0xc
ud2
Function at 0x461750
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x103c
call fcn.00516310
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x471ba0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
lea esi, [ebp - 0x1048]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00518d30
add esp, 0xc
xorps xmm0, xmm0
lea ebx, [ebp - 0x48]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x468fd0
push ebx
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4618a4
mov esi, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x34], 0
je 0x4617da
cmp dword [ebp - 0x30], 0
jne 0x4618b5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4618b5
cmp eax, 0x1000
mov dword [ebp - 0x24], eax
ja 0x4618f1
xor edi, edi
nop dword [eax + eax]
sub eax, edi
jb 0x4618d7
xorps xmm0, xmm0
lea edx, [ebp - 0x34]
lea ecx, [ebp + edi - 0x1048]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], edx
push 0x468fd0
push ebx
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4618ac
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x34], 0
je 0x461850
cmp dword [ebp - 0x30], 0
jne 0x4618b2
add edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp edi, eax
jne 0x461810
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x468fd0
push ebx
push 0x1000
lea eax, [ebp - 0x1048]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4617da
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4618b5
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x103c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x57d914
push dword [ebp - 0x24]
push edi
call fcn.0051f2a0
add esp, 0xc
jmp 0x46190b
mov dword [ebp - 0x10], 0
push 0x57d914
push 0x1000
push eax
call fcn.0051f230
add esp, 0xc
ud2
Function at 0x466940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x466984
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x46698a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4669c6
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4669eb
test eax, eax
js 0x4669d5
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4669e1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x57d6dc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0045d2d0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00456200
mov ecx, 7
int 0x29
ud2
Function at 0x46d3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.0046f7f0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x46d455
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00465540
mov edi, dword [esp]
test edi, edi
je 0x46d464
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46d479
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x46d471
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.00456670
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x46d471
add ebx, ebx
push 2
push ebx
push edi
call fcn.00421c20
add esp, 0x30
jmp 0x46d474

Function at 0x46e160
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x471e20
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x46e1de
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x57da28
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], fcn.0045bbb0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x57da54
push eax
call fcn.0051ed60
add esp, 8
ud2
Function at 0x46e980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x471e40
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x599449]
push 4
push 8
call fcn.00421c10
add esp, 8
test eax, eax
je 0x46ea62
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x46eac0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x46e9fd
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x46ea4f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x46ea34
push dword [ecx + 8]
push eax
push dword [ebp - 0x20]
call fcn.00421c20
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.00421c20
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.0051ec40
add esp, 8
ud2
Function at 0x471150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x598ac4]
mov esi, ecx
test eax, eax
je 0x471176
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47118f
cmp dword [eax + 4], 0
je 0x47118f
add eax, 8
pop esi
pop edi
ret
push 0x598ac4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x47116a
mov eax, dword [0x598ac4]
test eax, eax
je 0x471226
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x471243
mov edi, eax
test eax, eax
jne 0x4711ef
movzx eax, byte [0x599449]
push 4
push 0x10
call fcn.00421c10
add esp, 8
test eax, eax
je 0x471257
mov dword [eax], 0x598ac4
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x598ac4]
test eax, eax
je 0x471248
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x47120f
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x471213
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x471213
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x598ac4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4711ad
xor eax, eax
pop esi
pop edi
ret
push 0x598ac4
call fcn.0051e5f0
add esp, 4
jmp 0x4711e7
push 0x10
push 4
call fcn.0051ec40
add esp, 8
ud2
Function at 0x471270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x471f30
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x598ad4]
test eax, eax
je 0x471380
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4712c5
cmp dword [eax + 4], 0
mov edi, eax
jne 0x47137b
mov eax, dword [0x598ad4]
test eax, eax
je 0x4713a2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4713bf
mov edi, eax
test eax, eax
jne 0x471339
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x598ad4
movzx eax, byte [0x599449]
push 4
push 0xc
call fcn.00421c10
add esp, 8
test eax, eax
je 0x4713e6
mov edi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov eax, dword [0x598ad4]
test eax, eax
je 0x4713d4
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x47134e
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x471350
mov eax, dword [esi + 4]
jmp 0x471350
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x47137b
test ecx, ecx
je 0x47137b
lock dec dword [ecx]
jne 0x47137b
lea ecx, [ebp - 0x24]
call fcn.00459870
add edi, 8
jmp 0x4713c1
push 0x598ad4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4712b9
jmp 0x4712c5
push 0x598ad4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4712e3
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x598ad4
call fcn.0051e5f0
add esp, 4
jmp 0x471331
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.0051ec40
add esp, 8
ud2
Function at 0x471420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x598ae4]
mov esi, ecx
test eax, eax
je 0x471446
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47145f
cmp byte [eax + 4], 0
je 0x47145f
add eax, 5
pop esi
pop edi
ret
push 0x598ae4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x47143a
mov eax, dword [0x598ae4]
test eax, eax
je 0x4714d2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4714eb
mov edi, eax
test eax, eax
jne 0x4714b0
movzx eax, byte [0x599449]
push 4
push 8
call fcn.00421c10
add esp, 8
test eax, eax
je 0x4714ff
mov dword [eax], 0x598ae4
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x598ae4]
test eax, eax
je 0x4714f0
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x4714c5
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x598ae4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x471475
xor eax, eax
pop esi
pop edi
ret
push 0x598ae4
call fcn.0051e5f0
add esp, 4
jmp 0x4714a8
push 8
push 4
call fcn.0051ec40
add esp, 8
ud2
Function at 0x471510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x471f40
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x598af4]
test eax, eax
je 0x471620
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x471565
cmp dword [eax + 4], 0
mov edi, eax
jne 0x47161b
mov eax, dword [0x598af4]
test eax, eax
je 0x471642
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47165f
mov edi, eax
test eax, eax
jne 0x4715d9
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x598af4
movzx eax, byte [0x599449]
push 4
push 0xc
call fcn.00421c10
add esp, 8
test eax, eax
je 0x471686
mov edi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov eax, dword [0x598af4]
test eax, eax
je 0x471674
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x4715ee
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x4715f0
mov eax, dword [esi + 4]
jmp 0x4715f0
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x47161b
test ecx, ecx
je 0x47161b
lock dec dword [ecx]
jne 0x47161b
lea ecx, [ebp - 0x24]
call fcn.004597d0
add edi, 8
jmp 0x471661
push 0x598af4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x471559
jmp 0x471565
push 0x598af4
call fcn.0051e5f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x471583
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x598af4
call fcn.0051e5f0
add esp, 4
jmp 0x4715d1
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.0051ec40
add esp, 8
ud2