joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d490
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x22ac
call fcn.00418ad0
cmp dword [0x8e4524], 0x37
jne 0x41d629
push 0
lea eax, [esp + 0x16ac]
push eax
push 0
push 0x404218
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea edx, [esp + 0x6ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0x4042ac
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
xor eax, eax
push eax
lea edx, [esp + 0xeac]
push edx
push 0x4042ec
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea edx, [esp + 0x2ac]
push edx
push 0x404324
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x188]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0x404344
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40420c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0x404364
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0040aab0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0x404370
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x8e6c88]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x8e2d1c]
mov byte [eax + esi], dl
add esp, 0x22ac
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x53266ded
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0xb8b3fc1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10007e80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10007f0d
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10058070]
mov esi, eax
mov eax, dword [0x10058074]
cmp ecx, 0x25c5e09b
jne 0x10007ec1
cmp eax, 0x8fafd21e
je 0x10007ed0
cmp ecx, 0x257edf0d
jne 0x10007ed7
cmp eax, 0xb2ab117a
jne 0x10007ed7
test esi, esi
setne al
jmp 0x10007ee7
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10058068
cmp eax, 1
jne 0x10007f06
test esi, esi
setne al
jmp 0x10007f08
and al, 1
pop esi
test al, al
jne 0x10007f1e
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
mov edx, 0x1004b728
lea ecx, [ebp - 0x10]
call fcn.10007cc0
int3

Function at 0x10008120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x1005c5ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000814a
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp - 4]
call fcn.100133e0
add esp, 8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [ebp - 4]
call fcn.100133e0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x10008160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x1005c5ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10008179
mov esi, dword [eax + 4]
jmp 0x1000817b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x1000819c
test esi, esi
je 0x1000819c
xor edx, edx
nop dword [eax + eax]
cmp dword [esi + edx*4], 0
je 0x100081aa
inc edx
cmp edx, 2
jl 0x10008190
push dword [ebp + 8]
call fcn.100427ad
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret
Function at 0x10008940
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x20], ecx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], edi
cmp ecx, 1
je 0x10008971
mov eax, dword [esi]
jmp 0x10008988
mov eax, dword [esi + 4]
xor edx, edx
mov dword [ebp - 0x14], 0x1ffff7
div dword [ebp - 0x14]
imul eax, edx, 0x3e8
add eax, dword [esi]
cmp eax, 0x40
jne 0x100089aa
mov edx, 0x2745
lea ecx, [ebp - 0x2c]
call fcn.10007d20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov ecx, eax
mov dword [esi + 8], eax
cmp ecx, 1
jne 0x100089b7
cmp dword [esi], 0
setne cl
jmp 0x100089ba
and cl, 1
test cl, cl
jne 0x10008a98
test edi, edi
je 0x10008a3b
test ebx, ebx
je 0x10008a3b
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 0xc]
cmp edi, dword [ebx]
jbe 0x10008a2a
mov edx, 0x2726
lea ecx, [ebp - 0x2c]
call fcn.10007d20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x10008a3b
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx], edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x10008a75
mov edx, 0x2719
lea ecx, [ebp - 0x2c]
call fcn.10007d20
pop edi
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 8]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.10008860
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
Function at 0x10008ab0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov ebx, edx
cmp edi, 0xffffffff
je 0x10008bd1
cmp byte [ebp + 8], 0
je 0x10008b19
mov al, byte [ebx]
test al, 8
je 0x10008b19
or al, 8
xor ecx, ecx
push 4
mov byte [ebx], al
xorps xmm0, xmm0
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0x80
push 0xffff
push edi
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x18]
setne dl
call fcn.10008860
push esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10008860
test esi, esi
je 0x10008bbe
mov edx, 0x2733
lea ecx, [ebp - 0x24]
call fcn.10007d20
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], eax
call fcn.10006fb0
test al, al
jne 0x10008b8e
mov edx, 0x4d5
lea ecx, [ebp - 0x24]
call fcn.10007d20
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], eax
call fcn.10006fb0
test al, al
je 0x10008bbe
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10008860
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
Function at 0x10008d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push 0
push 0
push eax
push 1
push edx
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x10058070]
mov edi, eax
mov ecx, dword [0x10058074]
cmp edx, 0x25c5e09b
jne 0x10008dc7
cmp ecx, 0x8fafd21e
je 0x10008dd7
cmp edx, 0x257edf0d
jne 0x10008dde
cmp ecx, 0xb2ab117a
jne 0x10008dde
test edi, edi
setne al
jmp 0x10008dee
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esi], edi
mov edi, eax
mov dword [esi + 4], 0x10058068
mov dword [esi + 8], eax
mov dword [ebp - 0xc], 0x1ffff7
cmp edi, 1
je 0x10008e14
mov eax, dword [esi]
mov ecx, eax
jmp 0x10008e26
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp - 0xc]
mov ecx, dword [esi]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x40
jne 0x10008e32
mov edx, 0x2746
jmp 0x10008e58
cmp edi, 1
jne 0x10008e4b
mov eax, dword [esi + 4]
xor edx, edx
mov edi, 0x1ffff7
div edi
imul eax, edx, 0x3e8
add ecx, eax
cmp ecx, 0x4d2
jne 0x10008e6e
mov edx, 0x274d
lea ecx, [ebp - 0x18]
call fcn.10007d20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test ebx, ebx
je 0x10008e86
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x10008e94
mov edi, 0x10058068
jmp 0x10008ea1
mov edi, 0x10058050
cmp eax, 1
je 0x10008ea1
mov edi, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x10008eb6
cmp eax, 0x8fafd21e
je 0x10008ec5
cmp ecx, 0x257edf0d
jne 0x10008ec9
cmp eax, 0xb2ab117a
jne 0x10008ec9
xor al, al
jmp 0x10008ed4
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp - 4]
mov dword [esi], 0
xor ecx, ebp
movzx eax, al
mov dword [esi + 4], edi
add eax, 2
pop edi
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
Function at 0x10009570
Capabilities:
Access peb ldr_data
Get kernel32 base address

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 0x1004408e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x10058014]
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 - 0x24], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1000a530
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.100083e0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x100096e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10058070]
mov edi, eax
mov eax, dword [0x10058074]
cmp ecx, 0x25c5e09b
jne 0x1000968a
cmp eax, 0x8fafd21e
je 0x10009699
cmp ecx, 0x257edf0d
jne 0x100096a0
cmp eax, 0xb2ab117a
jne 0x100096a0
test edi, edi
setne dl
jmp 0x100096b2
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push edi
mov eax, dword [eax + 0x18]
call eax
mov dl, al
movzx ecx, dl
add dl, 2
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x10058068
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
cmp ecx, 0xffffffff
jne 0x100096d4
test edi, edi
setne dl
jmp 0x100096d7
and dl, 1
test dl, dl
jne 0x10009785
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x10009763
lock inc dword [edi]
push 0xc
call fcn.1004234e
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1004234e
add esp, 4
mov dword [ebp - 0x2c], eax
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [eax], xmm0
push 0
push eax
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.10009230
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10009760
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x24]
call fcn.100427b2
add esp, 8
mov dword [esi + 0x60], edi
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.10041f5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x20]
call fcn.10007cc0
int3
Function at 0x100097a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100440c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
je 0x10009860
call fcn.10009e30
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x1005bdc8
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x1000982c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10009842
push method.boost::asio::detail::execution_context_service_base_class_boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp__.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x10009859
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.100427b2
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.1000e940
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000987c
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x10009893
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.100427b2
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000989d
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.boost::asio::execution_context::service.0
je 0x100098b4
push 0x64
push esi
call fcn.100427b2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 4
Function at 0x10009ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044145
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x10009cf7
call fcn.10009e30
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
jmp 0x10009dd6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
add esp, 4
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x1005c5ac]
neg ecx
movq qword [ebp - 0x1c], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x1005c5ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.1000a0c0
test eax, eax
je 0x10009d9d
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, esi
call fcn.1000a0c0
test eax, eax
jne 0x10009d81
push dword [ebp - 0x14]
push dword [0x1005c5ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop
mov eax, dword [ebp + esi*4 - 0x50]
test eax, eax
je 0x10009dc1
push eax
call fcn.100427ad
add esp, 4
inc esi
cmp esi, 0xa
jl 0x10009db0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 4

Function at 0x10009f00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1005c5ac]
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 0x10009f2b
nop dword [eax]
cmp dword [eax], esi
je 0x10009f2d
mov eax, dword [eax + 8]
test eax, eax
jne 0x10009f20
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10009f2b
pop esi
jmp fcn.10007fc0

Function at 0x1000a810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x10058014]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, 1
lock xadd dword [0x1005c568], eax
inc eax
cmp eax, 1
jne 0x1000a850
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x1005c56c
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret
Function at 0x1000adf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004430d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp dword [eax], 0xffffffff
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], ecx
je 0x1000ae6c
mov edx, 1
lea ecx, [ebp - 0x20]
call fcn.10007d90
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
movq xmm0, qword [edi]
movq qword [esi], xmm0
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
jmp 0x1000af73
push 1
push 0
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
mov ecx, edi
cmp ebx, 0xffffffff
sete dl
call fcn.10008860
cmp ebx, 0xffffffff
jne 0x1000ae93
or ebx, ebx
jmp 0x1000aeb1
cmp dword [ebp - 0x14], 0x17
jne 0x1000aeb1
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x1000aecd
movq xmm0, qword [edi]
movq qword [esi], xmm0
mov eax, dword [edi + 8]
jmp 0x1000af70
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push edi
push ebx
push eax
mov ecx, dword [ecx + 4]
call fcn.10009c00
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x1000aeee
cmp dword [eax], 0
setne cl
jmp 0x1000aef1
and cl, 1
test cl, cl
je 0x1000af2b
movq xmm0, qword [edi]
lea edx, [ebp - 0x21]
movq qword [esi], xmm0
mov ecx, ebx
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x21], 0
call fcn.10008ab0
add esp, 8
jmp 0x1000af73
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0xffffffff
mov dword [eax], ebx
sub ecx, 1
je 0x1000af50
sub ecx, 1
je 0x1000af4a
mov byte [eax + 4], 0
jmp 0x1000af54
mov byte [eax + 4], 0x20
jmp 0x1000af54
mov byte [eax + 4], 0x10
push dword [ebp - 0x2c]
push ecx
lea ecx, [eax + 8]
call fcn.100134c0
xorps xmm0, xmm0
xor eax, eax
movq qword [edi], xmm0
mov dword [edi + 8], eax
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 0x18