joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010320
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
mov edi, eax
xor eax, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x10010426
cmp byte [ebp + 0xc], al
je 0x1001038f
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x1001038f
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
call fcn.1010d600
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x10]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.1010d600
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1001038f
call fcn.1010d600
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.1010d600
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
je 0x10010426
call fcn.1010d600
cmp dword [esi + 4], eax
jne 0x100103ce
cmp dword [esi], 0x2733
je 0x100103e0
call fcn.1010d600
cmp dword [esi + 4], eax
jne 0x10010422
cmp dword [esi], 0x4d5
jne 0x10010422
lea edx, [esp + 0xc]
push edx
push 0x8004667e
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
and byte [eax], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x10010432
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010440
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10010465
mov edi, 0x2719
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
xor al, al
pop edi
pop ebp
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.1010d600
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jl 0x1001045e
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
or byte [ebp], 2
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
Function at 0x100104c0
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x100104e0
mov edi, 0x2719
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x1001051d
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10010640
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x100106a0
mov edi, 0x2746
jmp 0x100106ac
cmp eax, 0x4d2
jne 0x100106b6
mov edi, 0x274d
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x100106c3
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret

Function at 0x10010920
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x1001097f
mov edi, 0x2746
jmp 0x1001098b
cmp eax, 0x4d2
jne 0x10010995
mov edi, 0x274d
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x100109a2
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x10010af0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, edx
cmp edi, 0xffffffff
mov ebx, ecx
jne 0x10010b18
mov edi, 0x2719
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0xa5100000
jne 0x10010b7d
cmp ebx, 2
jne 0x10010b3c
mov edi, 0x2726
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
pop ecx
ret
cmp ebx, 1
jne 0x10010b90
cmp dword [esp + 0x1c], 4
jne 0x10010b25
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0
je 0x10010b67
or byte [eax], 4
xor edi, edi
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
and byte [eax], 0xfb
xor edi, edi
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0xffff
jne 0x10010b90
cmp ebx, 0x80
jne 0x10010b90
or byte [eax], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x10010bcf
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10010d00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp ebx, 0xffffffff
push edi
mov edi, eax
jne 0x10010d25
mov edi, 0x2719
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, ebx
pop edi
pop ebx
add esp, 8
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
mov eax, dword [esp + 0xc]
mov dword [edi], eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x10010d6e
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x10010e00
Capabilities:
Get socket status

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 0
mov edi, eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x10010e64
cmp dword [esp + 0x18], ebx
jne 0x10010e64
test ebp, ebp
jne 0x10010e64
test edi, edi
je 0x10010e82
mov ecx, dword [edi + 4]
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x10010e4b
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
xor edi, edi
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
test edi, edi
je 0x10010e82
cmp dword [edi], 0
jne 0x10010e82
mov eax, dword [edi + 4]
test eax, eax
jle 0x10010e82
cmp eax, 0x3e8
jge 0x10010e82
mov dword [edi + 4], 0x3e8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edi
push ebp
push edx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jl 0x10010eb9
xor edi, edi
call fcn.1010d600
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10010ec0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10010eea
mov edi, 0x2719
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x114
ret
push 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
je 0x10010f3a
jle 0x10010f46
xor edi, edi
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret

Function at 0x10010f60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10010f8a
mov edi, 0x2719
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x114
ret
push 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.1010d600
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
je 0x10010fda
jle 0x10010fe6
xor edi, edi
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret
Function at 0x100112b0
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebp
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [esp + 0x14], 2
je 0x100112d7
mov esi, 0x273f
call fcn.1010d600
mov dword [edi], esi
mov dword [edi + 4], eax
xor eax, eax
pop esi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
call fcn.1010d600
mov ebp, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
mov dword [edi], eax
mov dword [edi + 4], ebp
je 0x100112d1
xor ebp, ebp
call fcn.1010d600
mov dword [edi], ebp
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov dword [ebx], ecx
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0xc]
pop esi
mov dword [ebx + 0xc], ecx
mov eax, ebx
pop ebp
pop ecx
ret
Function at 0x100126c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010fc31
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
push 0x10129600
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.1000c0e0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x2c], edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc

Function at 0x10012750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010fc31
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.1000c0e0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0x10
Function at 0x10012a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10110da1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Day_of_month_value_is_out_of_range_1..31
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10001040
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x10012b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10110da1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Year_is_out_of_valid_range:_1400..10000
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10001040
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x10012bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10110da1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Month_number_is_out_of_range_1..12
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10001040
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x10012f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101176bf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x30]
mov byte [esp + 0x24], 3
push eax
mov dword [esi + 0x2c], ebx
call fcn.100147d0
mov edi, eax
call fcn.1010d600
mov dword [esp + 0x10], edi
neg edi
sbb edi, edi
test edi, fcn.1009bff0
mov dword [esp + 0x14], eax
je 0x10012fc3
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.mutex
call fcn.100129a0
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
or ecx, 0xffffffff
mov byte [esp + 0x24], 5
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x30]
ja 0x10012fe6
lea eax, [esp + 0x34]
mov edx, dword [eax]
push edx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x10013029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x10], edi
call fcn.1010d600
neg edi
sbb edi, edi
test edi, fcn.1009bff0
mov dword [esp + 0x14], eax
je 0x10013029
lea eax, [esp + 0x10]
push eax
mov ecx, str.iocp
call fcn.100129a0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc
Function at 0x100132b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1011bd48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x10013316
push 1
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
call fcn.1010d600
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [0x10155cd8]
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x10155cd8]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, edx
push eax
push ecx
mov dword [esp + 0x20], edx
call ebp
push edi
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.100136b0
test eax, eax
je 0x10013369
cmp ebx, 0xffffffff
je 0x1001335d
add ebx, 1
push edi
mov ecx, esi
call fcn.100136b0
test eax, eax
jne 0x10013355
mov edx, dword [esp + 0x1c]
mov eax, dword [0x10155cd8]
push edx
push eax
call ebp
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x10014090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, ecx
cmp dword [ebx + 0x14], 0
push edi
mov esi, eax
jne 0x100140ad
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x14], eax
jmp 0x100140bf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
je 0x100140bf
mov dword [ebx + 0x14], 0xffffffff
mov eax, dword [ebp + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [esp + 0x24], 0
push 0
je 0x100140e6
mov eax, dword [ebp + 4]
push 0
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov ebx, dword [ebx]
cmp ebx, 0xffffffff
jne 0x10014101
mov eax, dword [ebp + 4]
push 0x2719
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push esi
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x10014139
mov eax, 0x274d
test edi, edi
je 0x10014159
cmp eax, 0x3e5
je 0x10014159
mov edx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [ebp + 4]
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [ebp + 4]
mov edi, esi
call fcn.10013560
pop edi
pop esi
pop ebp
pop ebx
ret 0x14