joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp + 0x1c]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x4126ea
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
jne 0x412713
mov ecx, dword [esi + 4]
push 0x2719
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x28], 0
push dword [esp + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x41274f
mov eax, 0x2746
jmp 0x41275c
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x412789
cmp eax, 0x3e5
je 0x412789
push dword [esp + 0x14]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.004128b0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
Function at 0x415060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ea2a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00459b6f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x415106
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0045db0f
push 0x4928f8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.004604db
push edi
push esi
call fcn.00459a4b
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 - 0x10]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 4

Function at 0x418dd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x418e10
call fcn.0045d2b0
mov dword [edi + 4], eax
mov dword [edi], 0x2719
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x418e77
call fcn.0045d2b0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x418fe0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x419017
call fcn.0045d2b0
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
jmp 0x419050
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x41904c
call fcn.0045d2b0
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x10]
call fcn.0045d2b0
cmp dword [ebx + 4], eax
jne 0x419062
cmp dword [ebx], 0x2734
je 0x41907c
call fcn.0045d2b0
cmp dword [ebx + 4], eax
jne 0x41911c
cmp dword [ebx], 0x2733
jne 0x41911c
mov edx, ebx
mov ecx, esi
call fcn.00418dd0
test eax, eax
js 0x41911c
mov dword [esp + 0xc], 0
cmp esi, 0xffffffff
jne 0x4190ba
call fcn.0045d2b0
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x419109
call fcn.0045d2b0
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x41910e
cmp edi, 0xffffffff
je 0x41911c
call fcn.0045d2b0
mov ecx, dword [esp + 0xc]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
cmp esi, 0xffffffff
jne 0x419177
call fcn.0045d2b0
mov dword [edi + 4], eax
mov dword [edi], 0x2719
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x4191bc
call fcn.0045d2b0
mov dword [edi], ebx
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x419220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
push 0
mov esi, edx
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x419282
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x17
jne 0x4192a0
push 4
lea eax, [ebp - 8]
push eax
push 0x1b
push 0x29
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.0045d2b0
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, edi
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x41a543
call fcn.0045d2b0
mov dword [ebx], 0x2746
jmp 0x41a555
cmp eax, 0x4d2
jne 0x41a558
call fcn.0045d2b0
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x41a570
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
call fcn.0045d2b0
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x41a690
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41a7ac
cmp byte [ebp + 8], bl
je 0x41a714
test byte [esi], 8
je 0x41a714
xor eax, eax
mov dword [esp + 0x18], eax
call fcn.0045d2b0
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0045d2b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x41a716
call fcn.0045d2b0
jmp 0x41a716
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x41a7ac
call fcn.0045d2b0
cmp dword [edi + 4], eax
jne 0x41a74f
cmp dword [edi], 0x2733
je 0x41a761
call fcn.0045d2b0
cmp dword [edi + 4], eax
jne 0x41a7a8
cmp dword [edi], 0x4d5
jne 0x41a7a8
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x14]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x41a7ba
call fcn.0045d2b0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x41b4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480940
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0045db4f
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041cbe0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x41b54a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41bda0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480940
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0045db4f
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041cbe0
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x41be30
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ff3a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
lea esi, [edi + 0x48]
push 1
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041dee0
push 0x20
mov byte [ebp - 4], 3
call fcn.0045d324
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41d019
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
mov dword [eax + 0x1c], 0
call fcn.0041e450
jmp 0x41d01b
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [eax + 0x1c]
mov dword [esi + 8], eax
lea esi, [edi + 0x58]
mov byte [ebp - 4], 5
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b7f0
mov dword [esi], eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 6
call fcn.0041dc90
lea esi, [edi + 0x70]
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0041dee0
push 0x20
mov byte [ebp - 4], 8
call fcn.0045d324
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x41d08f
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
mov dword [eax + 0x1c], 0
call fcn.0041e450
jmp 0x41d091
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [eax + 0x1c]
mov dword [esi + 8], eax
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 0xa
call fcn.0045b060
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dee0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
push 0x4a16b4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41df26
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4a16b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x41df3d
push 0
push 0x4a16b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41df54
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 8], eax
call fcn.0045d2b0
mov edx, str.winsock
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
call fcn.0041a130
int3
Function at 0x41e030
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4a16bc
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x41e093
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
push fcn.00412af0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d315
mov esp, ebp
pop ebp
ret

Function at 0x41e300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ffdf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x18], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], 0
call fcn.004123f0
mov esi, eax
call fcn.0045d2b0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
test esi, esi
je 0x41e3b6
mov edx, str.mutex
lea ecx, [ebp - 0x14]
call fcn.0041a130
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov byte [ebp - 4], 5
cmp dword [ebp + 0xc], 0xffffffff
lea ecx, [ebp + 0xc]
lea eax, [ebp - 0x10]
cmovbe eax, ecx
mov dword [ebp - 0x10], 0xffffffff
push dword [eax]
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x41e41c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.0045d2b0
mov dword [ebp - 0x10], eax
test esi, esi
je 0x41e41c
mov edx, str.iocp
lea ecx, [ebp - 0x14]
call fcn.0041a130
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42cbc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480a24
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0xffffffff
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0042c6f0
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
jne 0x42cc91
push str.boost::thread_resource_error
push 0xb
lea ecx, [ebp - 0x3c]
call fcn.0041c150
mov dword [ebp - 0x3c], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.0041c0e0
mov dword [edi + 0x34], eax
mov byte [edi + 0x38], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42d7e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480940
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0045db4f
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041cbe0
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x42d870
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x430bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4814b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49b950]
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 edi, ecx
mov ebx, dword [ebp + 8]
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x430c4c
mov ecx, edi
call fcn.0042d1d0
call fcn.0045d2b0
mov dword [ebx + 4], eax
mov dword [ebx], 0
xor eax, eax
jmp 0x430cd4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push dword [0x505b68]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x505b68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.00430970
test eax, eax
je 0x430cb3
lea esp, [esp]
cmp esi, 0xffffffff
je 0x430ca6
inc esi
push ebx
push ecx
mov ecx, edi
call fcn.00430970
test eax, eax
jne 0x430ca0
push dword [ebp - 0x18]
push dword [0x505b68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x430cd2
push ecx
call fcn.0045d373
add esp, 4
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.0045d315
mov esp, ebp
pop ebp
ret 4