joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fba0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5520a0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00420cb0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00407ef0
mov eax, dword [0x556380]
test eax, eax
je 0x41fc09
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x41fd8b
test byte [0x553664], 2
je 0x41fc29
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41fc2e
cmp dword [ebx], 2
jl 0x41fc69
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004db313
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004da3b8
call fcn.004db313
add eax, 0x40
push eax
call fcn.004da122
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x553664], 1
je 0x41fd08
xor edx, edx
xor ecx, ecx
call fcn.0041f2c0
cmp dword [0x556358], 0
jne 0x41fc98
push 0xffffffffffffffff
push dword [0x556360]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41fca4
push dword [0x55637c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0041f490
test al, al
je 0x41fce5
push 2
push 0
push 0
push dword [0x556384]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x556384]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x556358], 0
jne 0x41fcfc
push dword [0x556360]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41fd08
push dword [0x55637c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x41fd8b
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41fd3c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004d22d0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00430d10
add esp, 4
cmp dword [0x556378], 0
je 0x41fd81
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00407ef0
lea eax, [esp + 0x28]
push eax
call dword [0x556378]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x41fd8b
push dword [esp + 0x28]
call fcn.004d0550
add esp, 4
jmp 0x41fd8b
cmp byte [0x55745c], 0
jne 0x41fdd8
int3
cmp dword [esp + 0x24], 0x10
jb 0x41fd9e
push dword [esp + 0x10]
call fcn.004d0550
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004043e0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00505b9f
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
push 1
call fcn.004dc1d8
int3
Function at 0x421320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push edi
mov edi, ecx
jne 0x421345
cmp byte [0x55745c], 0
jne 0x421468
int3
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
jne 0x421420
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.00421650
push eax
lea ecx, [ebp - 8]
call fcn.00421730
mov ecx, eax
add esp, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [ecx]
test edx, edx
je 0x421382
mov ecx, 1
lock xadd dword [edx], ecx
mov ecx, dword [edi + 4]
push esi
or esi, 0xffffffff
mov dword [edi + 4], edx
test ecx, ecx
je 0x4213a7
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4213a7
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x4213ce
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4213ce
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4213ee
lock xadd dword [ecx], esi
dec esi
setne al
test al, al
jne 0x4213ee
test ecx, ecx
je 0x4213ee
push ecx
call fcn.004d0550
add esp, 4
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call fcn.00435500
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push 0xffffffffffffffff
push edi
push 0x421550
push esi
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
pop esi
test eax, eax
jne 0x42142a
mov dword [edi + 0xc], eax
mov dword [ebx], eax
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00435500
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], edi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x421455
cmp dword [eax], edi
je 0x421451
add eax, 4
cmp eax, edx
jne 0x421446
cmp eax, edx
jne 0x42145e
lea eax, [ebp + 0xc]
push eax
call fcn.004375e0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
call fcn.004dc1d8
int3

Function at 0x4214a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4214c0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x4214b9
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4214fe
mov byte [eax + 5], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x4214fe
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4214fe
push ecx
call fcn.004d0550
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00435500
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x54]
call fcn.00436920
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428f30
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 0x428f9a
cmp dword [0x5575e0], 0
jne 0x428f87
push 0x44
call fcn.004d1376
add esp, 4
test eax, eax
je 0x428f68
mov ecx, eax
call fcn.0041c7d0
mov edx, eax
jmp 0x428f6a
xor edx, edx
mov ecx, edx
mov esi, 0x5575e0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x428f87
test edx, edx
je 0x428f87
push ecx
mov ecx, edx
call fcn.0041c790
mov eax, dword [0x5575e0]
cmp dword [eax], 1
jl 0x428f9a
mov dword [ebp - 4], 0x10000
jmp 0x428f9c
xor ebx, ebx
push 0xc
call fcn.004d1376
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 0x428e30
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 0x428fe5
push esi
call fcn.004d0550
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x428ff4
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 0x42ffa0
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 0x42ffb2
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 0x42ffc9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004d215a
mov esi, eax
add esp, 8
test esi, esi
je 0x430042
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x430039
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 0x430039
cmp dword [ebp - 4], 0
je 0x430039
push 0x10
call fcn.004d1376
add esp, 4
test eax, eax
je 0x430042
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.0042fdc0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004d219a
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430980
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5520a0]
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 0x53fc70
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004d4427
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 0x430a54
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x430a6e
cmp esi, 8
jb 0x4309f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x430a98
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00406380
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
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 0x430aa0
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00406380
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
Function at 0x433940
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 0x433997
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 0x43397e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x433992
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], esi
jmp 0x4339cb
mov edx, dword [edi + 8]
call fcn.00433100
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x4339bb
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], esi
test ecx, ecx
je 0x4339cb
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00435500
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4339e2
call fcn.00451060
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 0x433a0c
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 0x433a7c
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x433a7c
test ecx, ecx
je 0x433a75
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [eax + 0xc]
mov ecx, esi
call fcn.00433b20
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.00433b20
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x433b20
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 0x433b49
push ecx
call fcn.00435bb0
push 4
mov dword [esi + 0xc0], 0
call fcn.004d1376
mov edi, eax
add esp, 4
test edi, edi
je 0x433b94
mov eax, dword [esi + 0xbc]
mov dword [edi], eax
test eax, eax
je 0x433b7b
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
call fcn.004501f0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x433b96
call fcn.00451060
jmp 0x433b96
xor edi, edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x433bb0
push ecx
call fcn.00435bb0
mov dword [esi + 0xc0], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x435bb0
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.004501f0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x435bd8
call fcn.00451060
mov ecx, dword [esi]
test ecx, ecx
je 0x435c00
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x435c00
test ecx, ecx
je 0x435bf9
add ecx, 0xfffffffc
jmp 0x435bfb
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.004d0550
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43de60
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0043f140
mov eax, dword [0x553814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x43de81
call fcn.00475240
mov edx, eax
mov eax, dword [0x5573e8]
cmp dword [edx + eax*4], 0
jne 0x43dec9
push 0x70
call fcn.004d1376
add esp, 4
test eax, eax
je 0x43dea6
push esi
mov ecx, eax
call fcn.0043db50
mov esi, eax
jmp 0x43dea8
xor esi, esi
mov eax, dword [0x553814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43dec1
call fcn.00475240
mov ecx, eax
mov eax, dword [0x5573e8]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x43ded0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5573e4]
push ebx
push esi
push edi
test eax, eax
jne 0x43dee0
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x553814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43def9
call fcn.00475240
mov ecx, eax
mov eax, dword [0x5573e8]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x43df90
mov ecx, 0x5573c0
xor edi, edi
xor ebx, ebx
call fcn.0043d0b0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5573bc]
test ecx, ecx
je 0x43df39
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x5573bc], eax
mov dword [ecx + 4], ebx
jmp 0x43df46
mov ebx, dword [0x5573f4]
inc ebx
mov dword [0x5573f4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x43df6d
push 0x70
call fcn.004d1376
add esp, 4
test eax, eax
je 0x43df6b
push ebx
mov ecx, eax
call fcn.0043dc50
mov edi, eax
jmp 0x43df6d
xor edi, edi
mov eax, dword [0x553814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43df86
call fcn.00475240
mov ecx, eax
mov eax, dword [0x5573e8]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x44f800
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.004501f0
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 0x44f84d
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 0x44f878
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 0x44f89c
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x44f89c
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 0x44f8b2
lock xadd dword [eax], ebx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x44f8d1
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x44f8d1
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 0x459140
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], 0x541870
mov dword [edi], 0x54184c
mov dword [edi + 4], 0x541854
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.00435500
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 0x4591cf
lea esp, [esp]
cmp dword [eax], edi
je 0x4591cb
add eax, 4
cmp eax, edx
jne 0x4591c0
cmp eax, edx
jne 0x4591d8
lea eax, [ebp + 8]
push eax
call fcn.004375e0
call fcn.004501f0
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 8], esi
test esi, esi
je 0x4591f6
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x557594]
test eax, eax
jne 0x459204
call fcn.00486e80
lea ecx, [ebp - 8]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.00485980
test esi, esi
je 0x459239
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x459239
test ecx, ecx
je 0x459232
add ecx, 0xfffffffc
jmp 0x459234
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 [0x5573b0]
lea ecx, [ebx + 0x1dc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00465a60
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 0x4592b0
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], 0x541854
push edi
mov dword [ebx], 0x54184c
call fcn.00435500
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.00436920
mov eax, dword [0x557594]
test eax, eax
jne 0x4592fb
call fcn.00486e80
push esi
mov ecx, eax
call fcn.00485a40
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x45936e
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
jne 0x459327
cmp edx, 0x7fffffff
jne 0x459327
movsd xmm0, qword [0x5534c8]
jmp 0x459334
call fcn.004d37ef
divsd xmm0, qword [0x5462e8]
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.00459440
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00465070
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 0x4593ac
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x218]
cmp dword [ebx + 0x20], eax
jne 0x4593ac
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.00435500
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.00460110
mov edi, dword [esp + 0x20]
mov eax, edi
mov edx, dword [esp + 0x24]
cmp edi, edx
je 0x4593ea
mov eax, dword [eax]
cmp eax, edx
jne 0x4593e4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push edi
push eax
call fcn.004600b0
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 0x45941b
call fcn.00451060
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x459428
push ecx
call fcn.00460960
pop edi
pop esi
mov dword [ebx], method.ATL::CAcl::CAce.virtual_4
mov dword [ebx + 4], 0x541870
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a100
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 0x45a176
call fcn.00435500
push dword [eax]
call edi
test eax, eax
je 0x45a176
push dword [esi + 0x1d0]
call edi
mov edx, eax
test edx, edx
je 0x45a146
mov ecx, dword [edx + 0x20]
cmp ecx, dword [esi + 0x218]
je 0x45a176
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x28
call fcn.004d1376
add esp, 4
test eax, eax
je 0x45a15e
push esi
mov ecx, eax
call fcn.00459140
jmp 0x45a160
xor eax, eax
push eax
push dword [esi + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x45a176
call fcn.00451060
pop edi
pop esi
pop ecx
ret