joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021860
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067e5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100218e1
lea edx, [esi + 0xc]
mov al, 1
xchg byte [edx], al
push 0x3e8
push dword [esi + 4]
call ecx
test eax, eax
je 0x100218cf
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1002190b
push 0x3e8
push eax
call ecx
test eax, eax
je 0x100218ff
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call edi
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x1002191f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10088574]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x100895fc]
mov dword [ebp - 0x14], esi
cmp eax, dword [esi + 4]
jle 0x10021981
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021981
mov dword [ebp - 4], 0
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
mov ecx, 0x10089718
call fcn.1001a830
xor al, al
mov ecx, 0x100896d9
xchg byte [ecx], al
mov edx, dword [0x10089678]
test edx, edx
je 0x10021a13
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [0x1008967c]
test eax, eax
je 0x100219bd
lock inc dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [0x1008967c]
mov dword [ecx + 4], eax
mov ecx, 0x10089604
call fcn.10029cf0
mov esi, dword [0x1008967c]
mov dword [0x10089678], 0
mov dword [0x1008967c], 0
test esi, esi
je 0x10021a10
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10021a10
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10021a10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov eax, dword [0x100896e4]
test eax, eax
je 0x10021a23
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp byte [ebx + 8], 0
mov dword [0x10089680], 0
je 0x10021a83
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x10021a7c
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021a7c
mov dword [ebp - 4], 1
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
push 0x100895fc
call fcn.10041545
add esp, 4
mov byte [0x10089608], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x10025650
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x100895a0]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002567b
nop dword [eax]
cmp dword [eax], esi
je 0x1002567d
mov eax, dword [eax + 8]
test eax, eax
jne 0x10025670
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002567b
pop esi
jmp fcn.10025390
Function at 0x10027df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068925
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x10027e51
mov eax, dword [edi]
push dword [0x100895a0]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x10027e51
cmp dword [eax], esi
je 0x10027e94
mov eax, dword [eax + 8]
test eax, eax
jne 0x10027e46
push dword [0x100895a0]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x10027f4d
mov eax, dword [eax + 4]
test eax, eax
je 0x10027f4d
mov esi, dword [eax]
test esi, esi
je 0x10027f4d
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x10027f44
mov byte [esi + 0x2c], al
jmp 0x10027f5d
cmp dword [eax + 4], 0
je 0x10027e51
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10028650
add esp, 8
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10028029
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10028029
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10028029
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10041b03
add esp, 4
push 0x2d
call fcn.10041665
mov esi, eax
add esp, 4
mov byte [esi + 0x2c], 0xb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10028560
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x24], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10028013
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10027ffc
mov dword [eax + 0x14], esi
jmp 0x10027fff
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.10028230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10028230
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002826c
mov esi, dword [esi + 0x24]
test esi, esi
je 0x10028265
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10028264
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10028264
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100282b0
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100282a0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100282a0
cmp dword [ecx], 0
jne 0x100282a0
mov al, byte [esi + 0x2c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10028850
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068a85
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x100288b1
mov eax, dword [edi]
push dword [0x100895a0]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x100288b1
cmp dword [eax], esi
je 0x100288f4
mov eax, dword [eax + 8]
test eax, eax
jne 0x100288a6
push dword [0x100895a0]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x10028975
mov eax, dword [eax + 4]
test eax, eax
je 0x10028975
mov esi, dword [eax]
test esi, esi
je 0x10028975
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xa
jb 0x1002896c
mov byte [esi + 0x28], al
jmp 0x10028985
cmp dword [eax + 4], 0
je 0x100288b1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10028d40
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x10028a36
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10041b03
add esp, 4
push 0x29
call fcn.10041665
mov esi, eax
add esp, 4
mov byte [esi + 0x28], 0xa
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10028c90
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
mov dword [ecx], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10028a20
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10028a09
mov dword [eax + 0x14], esi
jmp 0x10028a0c
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.10028a60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10028a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066420
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x10028aac
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10028aa5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10028ae8
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10028ad8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10028ad8
cmp dword [ecx], 0
jne 0x10028ad8
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x10028ae1
push esi
call fcn.10041b03
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10029440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, str.Creating_overlay_thread._FromThreadId:
mov ecx, 0x10088668
call fcn.1000be60
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001fed0
push eax
call fcn.1000c0f0
mov al, byte [edi + 0x70]
lea esi, [edi + 0x70]
add esp, 4
test al, al
jne 0x10029509
cmp dword [edi + 0x64], 0
je 0x100294a9
lea ecx, [edi + 0x60]
call fcn.10029080
mov al, 1
xchg byte [esi], al
push 8
call fcn.10041665
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x10029290
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1002a400
push 0
push 0
call fcn.1004ea4f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1002959b
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x64], 0
jne 0x10029591
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov al, byte [edi + 0x71]
lea esi, [edi + 0x71]
test al, al
jne 0x10029572
cmp dword [edi + 0x6c], 0
je 0x10029521
lea ecx, [edi + 0x68]
call fcn.10029080
mov al, 1
xchg byte [esi], al
push 8
call fcn.10041665
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x10029290
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push 0
push eax
push 0x1002a400
push 0
push 0
call fcn.1004ea4f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10029583
cmp dword [edi + 0x6c], 0
jne 0x10029596
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x1c], 0
call fcn.100447f1
call fcn.10016580
call fcn.10016580
push 6
mov dword [ebp - 0x14], 0
call fcn.100447f1
int3
Function at 0x1002d050
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x1008600c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
mov esi, dword [ecx + 0xbc]
lea eax, [ecx + 0x2d104]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov bl, byte [esi + 8]
mov esi, dword [esi + 4]
mov dword [esp + 0x14], 0x10086b38
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
cmp esi, 0xffffffff
jne 0x1002d0bd
mov edi, 0x2719
call fcn.10002f00
mov ebx, eax
jmp 0x1002d17b
lea eax, [esp + 0x10]
push eax
push ecx
push 1
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.10006390
add esp, 0xc
test eax, eax
jns 0x1002d173
and bl, 1
mov byte [esp + 0xf], bl
test bl, bl
jne 0x1002d173
call fcn.10002f00
mov ebx, dword [esp + 0x14]
mov ecx, eax
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [ecx + 4]
jne 0x1002d109
cmp edi, 0x2733
je 0x1002d120
call fcn.10002f00
mov ecx, eax
mov eax, dword [ebx + 4]
cmp eax, dword [ecx + 4]
jne 0x1002d17b
cmp edi, 0x4d5
jne 0x1002d17b
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x34], esi
push eax
push 0
lea eax, [esi + 1]
mov dword [esp + 0x38], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1002d206
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push ecx
push 1
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.10006390
mov bl, byte [esp + 0x1b]
add esp, 0xc
test eax, eax
js 0x1002d0e2
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, str.Wrote_format_index:
mov ecx, 0x10088668
call fcn.1000be60
mov edx, str.index_
mov ecx, eax
call fcn.1000be60
mov ecx, dword [esp + 0x18]
push dword [ecx]
mov ecx, eax
call fcn.1001fed0
mov edx, 0x1007b8a4
mov ecx, eax
call fcn.1000be60
mov edx, str.error_
mov ecx, eax
call fcn.1000be60
mov edx, dword [ebx]
mov ecx, ebx
mov esi, eax
call dword [edx + 4]
mov edx, eax
mov ecx, esi
call fcn.1000be60
mov ecx, eax
call fcn.1002e4a0
push edi
mov ecx, eax
call fcn.100094e0
mov edx, 0x1007b898
mov ecx, eax
call fcn.1000be60
push eax
call fcn.1000c0f0
mov ecx, dword [esp + 0x138]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004144e
mov esp, ebp
pop ebp
ret
call fcn.10002f00
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x1002d17b
Function at 0x1002fbf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100694dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test ecx, ecx
je 0x1002fc4c
lock inc dword [ecx + 4]
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x44], eax
mov al, byte [edx + 0x10]
mov byte [ebp - 0x3c], al
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov eax, dword [edx]
push dword [0x10089594]
mov esi, dword [edi]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002fcb3
cmp dword [eax], esi
je 0x1002fdbb
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002fca4
lea eax, [ebp - 0x44]
push eax
push 0x54
mov dword [ebp - 0x54], eax
call fcn.10004cb0
add esp, 8
mov edx, eax
mov byte [ebp - 4], 2
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x10031290
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x24], eax
mov al, byte [ebp - 0x3c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [edx + 0x28], al
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x2c], eax
movups xmm0, xmmword [ebp - 0x30]
push edx
push edi
movups xmmword [edx + 0x34], xmm0
mov dword [ebp - 0x4c], 0
movq xmm0, qword [ebp - 0x20]
movq qword [edx + 0x44], xmm0
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x4c], eax
mov dword [ebp - 0x50], 0
call fcn.100081a0
lea ecx, [ebp - 0x54]
call fcn.10031230
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x1002fd9b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002fd9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1002fd9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004144e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
cmp dword [eax + 4], 0
je 0x1002fcb3
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10031a10
add esp, 8
jmp 0x1002fd73
Function at 0x1002fdf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069525
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x1002fe51
mov eax, dword [edi]
push dword [0x100895a0]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x1002fe51
cmp dword [eax], esi
je 0x1002fe94
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002fe46
push dword [0x100895a0]
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x1002ff4d
mov eax, dword [eax + 4]
test eax, eax
je 0x1002ff4d
mov esi, dword [eax]
test esi, esi
je 0x1002ff4d
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x1002ff44
mov byte [esi + 0x2c], al
jmp 0x1002ff5d
cmp dword [eax + 4], 0
je 0x1002fe51
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.100304a0
add esp, 8
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10030029
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10030029
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10030029
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10041b03
add esp, 4
push 0x2d
call fcn.10041665
mov esi, eax
add esp, 4
mov byte [esi + 0x2c], 0xb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10030200
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x24], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10030013
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1002fffc
mov dword [eax + 0x14], esi
jmp 0x1002ffff
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.10028230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4