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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c07d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x10025287
lea ecx, [esi + 0xc]
mov al, 1
xchg byte [ecx], al
push 0x3e8
push dword [esi + 4]
call edx
test eax, eax
je 0x10025271
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x100252b5
push 0x3e8
push eax
call edx
test eax, eax
je 0x100252a5
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x100252c9
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008813c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1008950c]
cmp eax, dword [esi + 4]
jle 0x10025328
push 0x1008950c
call fcn.10045e7c
add esp, 4
cmp dword [0x1008950c], 0xffffffff
jne 0x10025328
mov dword [ebp - 4], 0
call fcn.1001b650
push 0x1006faa0
call fcn.1004632a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1008950c
call fcn.10045e2b
add esp, 4
mov ecx, 0x10089514
call fcn.1001be00
cmp byte [ebp + 8], 0
je 0x10025388
mov eax, dword [0x1008950c]
cmp eax, dword [esi + 4]
jle 0x10025381
push 0x1008950c
call fcn.10045e7c
add esp, 4
cmp dword [0x1008950c], 0xffffffff
jne 0x10025381
mov dword [ebp - 4], 1
call fcn.1001b650
push 0x1006faa0
call fcn.1004632a
add esp, 4
push 0x1008950c
call fcn.10045e2b
add esp, 4
mov byte [0x10089518], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10029aa0
Capabilities:
Read file via mapping

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 0x1006c6dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
sub esp, 0x18
mov dword [ebp - 0x48], esi
mov ecx, esp
push 0x100894dc
call fcn.100051f0
lea ecx, [ebp - 0x2c]
call fcn.10029950
add esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x48], eax
push 0
test eax, eax
jne 0x10029b98
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0x1007adcc
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.10005600
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10029b78
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10029b6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029c47
push ecx
push edx
call fcn.1004633f
add esp, 8
mov eax, esi
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.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x34], 0
mov ecx, edi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029bc1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.10005600
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
cmp ecx, 7
jbe 0x10029b78
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10029b6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10029b6e
call fcn.1004eae1
int3
Function at 0x1002ba80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cb35
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10086040]
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 0x1002bae1
mov eax, dword [edi]
push dword [0x10089498]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x1002bae1
cmp dword [eax], esi
je 0x1002bb24
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002bad6
push dword [0x10089498]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x1002bbf3
mov eax, dword [eax + 4]
test eax, eax
je 0x1002bbf3
mov esi, dword [eax]
test esi, esi
je 0x1002bbf3
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x1002bbea
mov byte [esi + 0x2c], al
jmp 0x1002bc03
cmp dword [eax + 4], 0
je 0x1002bae1
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.1002c2e0
add esp, 8
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1002bccf
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002bccf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1002bccf
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.1004637e
add esp, 4
push 0x2d
call fcn.10045ee0
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], 0x1002c1f0
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 0x1002bcb9
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 0x1002bca2
mov dword [eax + 0x14], esi
jmp 0x1002bca5
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.1002bed0
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 0x1002bed0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002bf0c
mov esi, dword [esi + 0x24]
test esi, esi
je 0x1002bf05
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002bf04
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002bf04
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 0x1002bf50
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002bf40
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002bf40
cmp dword [ecx], 0
jne 0x1002bf40
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.1004637e
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x1002c4e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cc95
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10086040]
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 0x1002c541
mov eax, dword [edi]
push dword [0x10089498]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x1002c541
cmp dword [eax], esi
je 0x1002c584
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002c536
push dword [0x10089498]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x1002c61b
mov eax, dword [eax + 4]
test eax, eax
je 0x1002c61b
mov esi, dword [eax]
test esi, esi
je 0x1002c61b
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xa
jb 0x1002c612
mov byte [esi + 0x28], al
jmp 0x1002c62b
cmp dword [eax + 4], 0
je 0x1002c541
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.1002c9e0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002c6dc
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.1004637e
add esp, 4
push 0x29
call fcn.10045ee0
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], 0x1002c930
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 0x1002c6c6
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 0x1002c6af
mov dword [eax + 0x14], esi
jmp 0x1002c6b2
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.1002c700
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 0x1002c700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069ed0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10086040]
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 0x1002c74c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1002c745
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 0x1002c788
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002c778
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002c778
cmp dword [ecx], 0
jne 0x1002c778
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x1002c781
push esi
call fcn.1004637e
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 0x1002d0e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cdc5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10086040]
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, 0x10088238
call fcn.1000e770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.100234d0
push eax
call fcn.1000ea10
mov al, byte [edi + 0x70]
lea ebx, [edi + 0x70]
add esp, 4
test al, al
jne 0x1002d1aa
cmp dword [edi + 0x64], 0
je 0x1002d14a
lea ecx, [edi + 0x60]
call fcn.1002cd10
mov al, 1
xchg byte [ebx], al
push 8
call fcn.10045ee0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1002cf10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1002e070
push 0
push 0
call fcn.1005355f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1002d23e
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x64], 0
jne 0x1002d234
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov al, byte [edi + 0x71]
lea ebx, [edi + 0x71]
test al, al
jne 0x1002d214
cmp dword [edi + 0x6c], 0
lea esi, [edi + 0x68]
je 0x1002d1c4
mov ecx, esi
call fcn.1002cd10
mov al, 1
xchg byte [ebx], al
push 8
call fcn.10045ee0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1002cf10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push 0
push eax
push 0x1002e070
push 0
push 0
call fcn.1005355f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x1002d226
cmp dword [esi + 4], 0
jne 0x1002d239
mov eax, dword [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x1c], 0
call fcn.10047e12
call fcn.1002ca90
call fcn.1002ca90
push 6
mov dword [ebp - 0x14], 0
call fcn.10047e12
int3
Function at 0x1002e4a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x10086040]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
mov ebx, ecx
mov al, dl
mov ecx, dword [esp + 0x124]
mov byte [esp + 0xb], al
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x138]
push edi
cmp ebx, 0xffffffff
jne 0x1002e52d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008813c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x1002e522
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], ebx
jne 0x1002e522
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov dword [esi], 0x2719
jmp 0x1002e6c5
cmp byte [esp + 0x138], 0
je 0x1002e546
test al, 0x10
je 0x1002e546
mov dword [esi], 0
jmp 0x1002e6cc
push esi
push ecx
push dword [esp + 0x138]
mov edx, ecx
mov ecx, ebx
call fcn.100083b0
add esp, 0xc
test eax, eax
jns 0x1002e6ce
test byte [esp + 0x13], 1
mov ecx, dword [0x1008813c]
mov eax, dword fs:[0x2c]
lea ebp, [eax + ecx*4]
jne 0x1002e6cc
mov edi, dword [ebp]
mov ecx, dword [0x10088e30]
cmp ecx, dword [edi + 4]
jle 0x1002e5c6
push 0x10088e30
call fcn.10045e7c
mov ecx, dword [0x10088e30]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1002e5c6
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
mov ecx, dword [0x10088e30]
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bcc]
jne 0x1002e5dc
cmp dword [esi], 0x2733
je 0x1002e632
cmp ecx, dword [edi + 4]
jle 0x1002e614
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1002e614
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bcc]
jne 0x1002e6cc
cmp dword [esi], 0x4d5
jne 0x1002e6cc
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ebx
push eax
push 0
lea eax, [ebx + 1]
mov dword [esp + 0x28], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1002e67e
mov edx, dword [esp + 0x14]
push esi
push ecx
push dword [esp + 0x138]
mov ecx, ebx
mov dword [esi], 0
call fcn.100083b0
add esp, 0xc
test eax, eax
js 0x1002e57d
jmp 0x1002e6ce
mov eax, dword [0x10088e30]
mov ecx, edi
cmp eax, dword [ecx + 4]
jle 0x1002e6bd
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1002e6bd
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x10086bc8
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10045df2
add esp, 0x118
ret
Function at 0x10033e10
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 0x1006d7ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10086040]
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 eax, dword [edx + 0xc]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test eax, eax
je 0x10033e69
lock inc dword [eax + 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x40], eax
mov al, byte [edx + 0x10]
mov byte [ebp - 0x3c], al
mov eax, dword [ebx + 8]
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 [0x1008948c]
mov esi, dword [edi]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10033ed3
cmp dword [eax], esi
je 0x10033fdb
mov eax, dword [eax + 8]
test eax, eax
jne 0x10033ec4
lea eax, [ebp - 0x44]
push eax
push 0x54
mov dword [ebp - 0x54], eax
call fcn.100064a0
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], 0x100354f0
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.1000aa40
lea ecx, [ebp - 0x54]
call fcn.10035490
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10033fbb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10033fbb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10033fbb
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.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
cmp dword [eax + 4], 0
je 0x10033ed3
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10035d00
add esp, 8
jmp 0x10033f93
Function at 0x10034000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d7f5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10086040]
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 0x10034061
mov eax, dword [edi]
push dword [0x10089498]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x10034061
cmp dword [eax], esi
je 0x100340a4
mov eax, dword [eax + 8]
test eax, eax
jne 0x10034056
push dword [0x10089498]
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x10034173
mov eax, dword [eax + 4]
test eax, eax
je 0x10034173
mov esi, dword [eax]
test esi, esi
je 0x10034173
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x1003416a
mov byte [esi + 0x2c], al
jmp 0x10034183
cmp dword [eax + 4], 0
je 0x10034061
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.10034580
add esp, 8
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1003424f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003424f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003424f
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.1004637e
add esp, 4
push 0x2d
call fcn.10045ee0
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], 0x10034430
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 0x10034239
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 0x10034222
mov dword [eax + 0x14], esi
jmp 0x10034225
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.1002bed0
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