joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov dword [ebp - 8], 0
mov esi, ecx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], esi
test ebx, ebx
jns 0x43b776
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x5805d0]
push edi
xor edi, edi
test ecx, ecx
je 0x43b7ba
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x43b7ba
mov ecx, dword [0x5805d0]
lea edi, [esi + 0x1c]
mov eax, ebx
mov dword [ebp + 0x14], str.File::Read
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
push edi
push str.File::Read
call dword [esi + 0x10]
mov esi, dword [ebp - 4]
jmp 0x43b7c0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43b7f8
mov esi, dword [ebp - 8]
jmp 0x43b80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x43b807
xor esi, esi
jmp 0x43b80a
or esi, 0xffffffff
test edi, edi
je 0x43b821
mov ecx, dword [0x5805d0]
test ecx, ecx
je 0x43b821
mov edx, dword [ecx]
push edi
push dword [ebp + 0x14]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43c4f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 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 [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
test bl, 0x10
je 0x43c546
mov dword [ebp + 0xc], 5
jmp 0x43c54e
test eax, eax
je 0x43c6ab
xor edx, edx
mov eax, 4
test bl, 0x40
push edi
mov edi, 0x40000000
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x43c572
or edx, 0x80000000
test ebx, 0x4000
je 0x43c580
or edx, 0x100
test ebx, 0x40000
je 0x43c58e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x43c5a3
or ecx, 2
test ebx, 0x8000
je 0x43c5ad
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x43c5c5
or eax, 0x100
test ebx, 0x1000
je 0x43c5d0
or eax, 2
test ebx, 0x2000
je 0x43c5dd
or eax, 0x4000000
test ebx, 0x20000
je 0x43c5ea
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x43c5f5
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x43c64e
mov ecx, esi
call fcn.00406ab0
test edi, edi
je 0x43c64e
cmp edi, 0xffffffff
je 0x43c64e
mov dword [esi], edi
call fcn.0041c520
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x57f470]
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x43c641
call fcn.00429ab0
mov ecx, dword [0x57f470]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
pop edi
test eax, eax
je 0x43c69b
cmp eax, 0xffffffff
je 0x43c69b
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x43c68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x43c6ab
mov byte [esi + 0x24], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0043c220
mov dword [esi + 0x20], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43c860
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 4], 0xffffffff
jmp 0x43c880
mov edi, 8
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov edi, edi
lea ecx, [ebp - 8]
cmp edi, 0xffffffff
lea esi, [ebp - 4]
cmovbe esi, ecx
mov esi, dword [esi]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43c8b3
cmp byte [0x58062c], al
jne 0x43c8f7
int3
test bl, 1
je 0x43c8c6
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffffe
call fcn.0042c7a0
mov eax, dword [ebp - 0xc]
sub edi, esi
add eax, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x43c890
cmp dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
jb 0x43c8e9
ja 0x43c880
cmp eax, 0xffff7fff
ja 0x43c880
pop edi
pop esi
and eax, 0x7fff
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004fcf46
int3

Function at 0x43eed0
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 0x43ef3a
cmp dword [0x5807e4], 0
jne 0x43ef27
push 0x44
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x43ef08
mov ecx, eax
call fcn.004293e0
mov edx, eax
jmp 0x43ef0a
xor edx, edx
mov ecx, edx
mov esi, 0x5807e4
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x43ef27
test edx, edx
je 0x43ef27
push ecx
mov ecx, edx
call fcn.004293a0
mov eax, dword [0x5807e4]
cmp dword [eax], 1
jl 0x43ef3a
mov dword [ebp - 4], 0x10000
jmp 0x43ef3c
xor ebx, ebx
push 0xc
call fcn.004f3c8b
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 0x43edd0
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 0x43ef85
push esi
call fcn.004f2e36
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x43ef94
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 0x443460
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 0x443472
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 0x443489
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004f5704
mov esi, eax
add esp, 8
test esi, esi
je 0x443502
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4434f9
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 0x4434f9
cmp dword [ebp - 4], 0
je 0x4434f9
push 0x10
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x443502
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.00443280
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004f3b20
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443e40
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x57a120]
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 0x564148
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004fbbc7
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 0x443f14
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x443f2e
cmp esi, 8
jb 0x443eb0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x443f58
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00407440
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
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 0x443f60
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00407440
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
Function at 0x446de0
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 0x446e37
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 0x446e1e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x446e32
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], esi
jmp 0x446e6b
mov edx, dword [edi + 8]
call fcn.004465a0
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x446e5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], esi
test ecx, ecx
je 0x446e6b
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.004489a0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x446e82
call fcn.00469e00
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 0x446eac
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 0x446f1c
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x446f1c
test ecx, ecx
je 0x446f15
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [eax + 0xc]
mov ecx, esi
call fcn.00446fc0
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.00446fc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x446fc0
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 0x446fe9
push ecx
call fcn.00449060
push 4
mov dword [esi + 0xc0], 0
call fcn.004f3c8b
mov edi, eax
add esp, 4
test edi, edi
je 0x447034
mov eax, dword [esi + 0xbc]
mov dword [edi], eax
test eax, eax
je 0x44701b
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
call fcn.00468fe0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x447036
call fcn.00469e00
jmp 0x447036
xor edi, edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x447050
push ecx
call fcn.00449060
mov dword [esi + 0xc0], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449060
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.00468fe0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x449088
call fcn.00469e00
mov ecx, dword [esi]
test ecx, ecx
je 0x4490b0
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4490b0
test ecx, ecx
je 0x4490a9
add ecx, 0xfffffffc
jmp 0x4490ab
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.004f2e36
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x459cf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test esi, esi
je 0x459d5c
mov dword [ebp - 8], 0xffffffff
push edi
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 8]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x459d37
cmp byte [0x58062c], al
jne 0x459d62
int3
test bl, 1
je 0x459d4a
lea ecx, [ebp - 0xbc]
and ebx, 0xfffffffe
call fcn.0042c7a0
mov ecx, dword [ebp - 4]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x459d14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004fcf46
int3

Function at 0x45a7f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0045bad0
mov eax, dword [0x57b894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x45a811
call fcn.0048e1d0
mov edx, eax
mov eax, dword [0x580610]
cmp dword [edx + eax*4], 0
jne 0x45a859
push 0x70
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x45a836
push esi
mov ecx, eax
call fcn.0045a4e0
mov esi, eax
jmp 0x45a838
xor esi, esi
mov eax, dword [0x57b894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x45a851
call fcn.0048e1d0
mov ecx, eax
mov eax, dword [0x580610]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x45a860
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x58060c]
push ebx
push esi
push edi
test eax, eax
jne 0x45a870
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x57b894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x45a889
call fcn.0048e1d0
mov ecx, eax
mov eax, dword [0x580610]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x45a920
mov ecx, 0x5805e8
xor edi, edi
xor ebx, ebx
call fcn.0043a150
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5805e4]
test ecx, ecx
je 0x45a8c9
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x5805e4], eax
mov dword [ecx + 4], ebx
jmp 0x45a8d6
mov ebx, dword [0x58061c]
inc ebx
mov dword [0x58061c], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x45a8fd
push 0x70
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x45a8fb
push ebx
mov ecx, eax
call fcn.0045a5e0
mov edi, eax
jmp 0x45a8fd
xor edi, edi
mov eax, dword [0x57b894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x45a916
call fcn.0048e1d0
mov ecx, eax
mov eax, dword [0x580610]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4685e0
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.00468fe0
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 0x46862d
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 0x468658
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 0x46867c
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46867c
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 0x468692
lock xadd dword [eax], ebx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x4686b1
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x4686b1
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 0x471e70
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], 0x5662b8
mov dword [edi], 0x566294
mov dword [edi + 4], 0x56629c
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.004489a0
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 0x471eff
lea esp, [esp]
cmp dword [eax], edi
je 0x471efb
add eax, 4
cmp eax, edx
jne 0x471ef0
cmp eax, edx
jne 0x471f08
lea eax, [ebp + 8]
push eax
call fcn.0044aa90
call fcn.00468fe0
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 8], esi
test esi, esi
je 0x471f26
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x580754]
test eax, eax
jne 0x471f34
call fcn.0049cd70
lea ecx, [ebp - 8]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.0049b870
test esi, esi
je 0x471f69
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x471f69
test ecx, ecx
je 0x471f62
add ecx, 0xfffffffc
jmp 0x471f64
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 [0x58048e]
lea ecx, [ebx + 0x1dc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0047e750
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 0x471fe0
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], 0x56629c
push edi
mov dword [ebx], 0x566294
call fcn.004489a0
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.00449dd0
mov eax, dword [0x580754]
test eax, eax
jne 0x47202b
call fcn.0049cd70
push esi
mov ecx, eax
call fcn.0049b930
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x47209e
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
jne 0x472057
cmp edx, 0x7fffffff
jne 0x472057
movsd xmm0, qword [0x57b548]
jmp 0x472064
call fcn.004f60cf
divsd xmm0, qword [0x56aac0]
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.00472170
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.0047dd60
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 0x4720dc
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x218]
cmp dword [ebx + 0x20], eax
jne 0x4720dc
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.004489a0
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.00478e30
mov edi, dword [esp + 0x20]
mov eax, edi
mov edx, dword [esp + 0x24]
cmp edi, edx
je 0x47211a
mov eax, dword [eax]
cmp eax, edx
jne 0x472114
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push edi
push eax
call fcn.00478dd0
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 0x47214b
call fcn.00469e00
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x472158
push ecx
call fcn.00479670
pop edi
pop esi
mov dword [ebx], method.ATL::CAcl::CAce.virtual_4
mov dword [ebx + 4], 0x5662b8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x1d4]
call edi
test eax, eax
jne 0x472ea6
call fcn.004489a0
push dword [eax]
call edi
test eax, eax
je 0x472ea6
push dword [esi + 0x1d0]
call edi
mov edx, eax
test edx, edx
je 0x472e76
mov ecx, dword [edx + 0x20]
cmp ecx, dword [esi + 0x218]
je 0x472ea6
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x28
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x472e8e
push esi
mov ecx, eax
call fcn.00471e70
jmp 0x472e90
xor eax, eax
push eax
push dword [esi + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x472ea6
call fcn.00469e00
pop edi
pop esi
pop ecx
ret