joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4107e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43db68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x451084]
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.00421e80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00402b90
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
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 0x410880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43db68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x451084]
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.00421e80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00402b90
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], 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
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411b10
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov dword [0x453a4c], eax
test eax, eax
je 0x411b30
mov byte [0x455d7d], 1
jmp 0x411b3f
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call esi
mov dword [0x453a4c], eax
mov ecx, edi
shl ecx, 4
or ecx, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
pop esi
test eax, eax
je 0x411b94
mov edx, dword [ebp + 8]
push edx
mov dword [0x453a50], ebx
mov dword [0x455e80], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
dec eax
neg eax
sbb eax, eax
and eax, 4
jne 0x411b92
push 0x43
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
pop ebp
ret
mov eax, 3
pop ebp
ret
Function at 0x4122b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x456044]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4122e5
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4122e5
mov eax, dword [ecx]
test eax, eax
je 0x4122e5
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x412302
push eax
call fcn.004223a9
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.004223b4
add esp, 4
cmp ebx, 0xff
ja 0x412300
movzx ecx, bl
mov byte [eax + ebx], cl
ret
xor ecx, ecx
mov byte [eax + ebx], cl
ret

Function at 0x412610
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x455fec
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x41265d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.boost::asio::detail::win_iocp_io_service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x412720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ef71
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x451084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [ebp - 0x13c], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
push 0x11c
lea ecx, [ebp - 0x130]
push edi
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.00427a90
add esp, 0xc
push 3
push 2
push edi
push edi
mov dword [ebp - 0x130], 0x11c
mov dword [ebp - 0x12c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x34], edi
call fcn.00412360
mov ebx, eax
call fcn.00430570
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], eax
cmp ebx, edi
je 0x412811
lea eax, [ebp - 0x138]
push eax
mov ecx, str.mutex
call fcn.0040ee20
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
jb 0x412829
or eax, 0xffffffff
push eax
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x412869
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x138], ebx
call fcn.00430570
mov dword [ebp - 0x134], eax
cmp ebx, edi
je 0x412869
lea ecx, [ebp - 0x138]
push ecx
mov ecx, str.iocp
call fcn.0040ee20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421cf1
mov esp, ebp
pop ebp
ret 8
Function at 0x412cb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x412db0
cmp byte [ebp + 0xc], bl
je 0x412d19
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x412d19
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.00430570
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.00430570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x412d19
call fcn.00430570
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.00430570
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
test ebx, ebx
je 0x412db0
call fcn.00430570
cmp dword [esi + 4], eax
jne 0x412d58
cmp dword [esi], 0x2733
je 0x412d6a
call fcn.00430570
cmp dword [esi + 4], eax
jne 0x412dac
cmp dword [esi], 0x4d5
jne 0x412dac
lea ecx, [esp + 0xc]
push ecx
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.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x412dbc
xor edi, edi
call fcn.00430570
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov esi, eax
jne 0x412e79
mov edi, 0x2719
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x412ea0
test byte [ebp + 0xc], 0x10
je 0x412ea0
xor edi, edi
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x412eeb
mov edi, 0x2746
jmp 0x412ef7
cmp eax, 0x4d2
jne 0x412f01
mov edi, 0x274d
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
jne 0x412f18
xor edi, edi
call fcn.00430570
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], edi
test eax, eax
jns 0x412f54
test byte [ebp + 0xc], 1
jne 0x412f52
call fcn.00430570
cmp dword [esi + 4], eax
jne 0x412f30
cmp dword [esi], 0x2733
je 0x412f42
call fcn.00430570
cmp dword [esi + 4], eax
jne 0x412f52
cmp dword [esi], 0x4d5
jne 0x412f52
mov ecx, dword [ebp + 8]
call fcn.00412f60
test eax, eax
jns 0x412ea0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412f60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x451084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x412f9e
mov edi, 0x2719
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421cf1
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
je 0x412fef
jle 0x412ffb
xor edi, edi
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00421cf1
mov esp, ebp
pop ebp
ret
Function at 0x413010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e808
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x451084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov byte [ebp - 0xd], al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
add edi, 0x3c
mov dword [ebp - 0x14], 4
jmp 0x413059
xor eax, eax
mov ecx, dword [edi + 0x1c]
cmp ecx, eax
je 0x41308c
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [edi + 0x18]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
mov edx, dword [edi]
cmp eax, edx
jne 0x413078
mov eax, edx
jmp 0x41308e
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41308c
cmp dword [eax + 8], esi
je 0x41308e
mov eax, dword [eax]
cmp eax, ecx
jne 0x413081
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
push edx
push eax
lea eax, [edi - 4]
push eax
lea ebx, [ebp - 0x20]
call fcn.00414800
test al, al
jne 0x4130ab
cmp byte [ebp - 0xd], al
mov byte [ebp - 0xd], al
je 0x4130af
mov byte [ebp - 0xd], 1
add edi, 0x24
dec dword [ebp - 0x14]
jne 0x413057
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x14]
lea ebx, [ebp - 0x20]
call fcn.0040f000
xor ebx, ebx
cmp byte [ebp - 0xd], bl
je 0x413129
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 1
call fcn.00430570
mov esi, dword [esi + 0x34]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.00430570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x41311b
cmp eax, 0x4d2
jne 0x413120
call fcn.00430570
cmp esi, ebx
jne 0x413129
call fcn.00430570
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x20]
mov edi, esi
cmp esi, ebx
je 0x413160
lea eax, [esi + 0x14]
mov esi, dword [eax]
mov dword [eax], ebx
mov dword [ebp - 0x20], ebx
call fcn.00430570
mov edx, dword [edi + 0x18]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push edi
push ebx
mov dword [ebp - 0x1c], eax
call edx
add esp, 0x10
mov edi, esi
cmp esi, ebx
jne 0x413139
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4134d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [ebx + 4]
push edi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x4134fe
mov eax, dword [ebx + 4]
push 0
call fcn.00412ba0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x41351c
mov eax, dword [ebx + 4]
push 0x2719
call fcn.00412ba0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
push esi
mov dword [ebp + 8], edx
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x413555
mov eax, 0x2746
jmp 0x413561
cmp eax, 0x4d2
jne 0x413561
mov eax, 0x274d
test edi, edi
je 0x413580
cmp eax, 0x3e5
je 0x413580
mov ecx, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebx + 4]
call fcn.00412ba0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.00412b30
pop edi
pop esi
pop ecx
pop ebp
ret 0x14

Function at 0x414970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f40b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x451084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x4153b0
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], 0x453d48
mov dword [ebp - 0x10], ebx
call fcn.004124c0
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea esi, [edi + 4]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], bl
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [edi]
add ebx, 0x14
call fcn.004132e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call fcn.00430570
mov edi, dword [esi + 4]
cmp edi, 0xffffffff
jne 0x414bae
mov esi, 0x2719
jmp 0x414bec
or byte [esi + 8], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 8]
push 4
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edi
test esi, esi
jne 0x414bf9
call fcn.00430570
mov ecx, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x414c0b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, str.set_option
call fcn.0040ee20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414c20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call fcn.00430570
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp esi, 0xffffffff
jne 0x414c3f
mov esi, 0x2719
jmp 0x414c76
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0xc]
push 4
push ecx
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
test esi, esi
jne 0x414c83
call fcn.00430570
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x414c95
lea edx, [ebp - 8]
push edx
mov ecx, str.set_option
call fcn.0040ee20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x416bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f160
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x451084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
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 0x416c10
mov eax, esi
call fcn.00416cb0
xor esi, esi
call fcn.00430570
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x456044]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x456044]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00416d90
test eax, eax
je 0x416c62
cmp ebx, 0xffffffff
je 0x416c56
inc ebx
push edi
mov ecx, esi
call fcn.00416d90
test eax, eax
jne 0x416c50
mov edx, dword [ebp - 0x14]
mov eax, dword [0x456044]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x416c82
push eax
call fcn.004223a9
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4170b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0x40
push ebx
push edi
mov ebx, eax
jne 0x4170ce
mov edi, 0x2745
call fcn.00430570
mov dword [esi], edi
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi], eax
jne 0x41719d
cmp dword [ebp + 0x14], eax
je 0x41713a
cmp ebx, eax
je 0x41713a
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
push ecx
push ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 4]
cmp edi, dword [ebx]
jbe 0x417125
mov edi, 0x2726
call fcn.00430570
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x417138
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call fcn.00428970
add esp, 0xc
mov dword [ebx], edi
xor eax, eax
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp edi, 0xffffffff
jne 0x41715d
mov edi, 0x2719
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [ebp - 0x14]
push edx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00430570
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x41719d
call fcn.00430570
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f40b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x451084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x41e0c0
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], 0x4547e8
mov dword [ebp - 0x10], ebx
call fcn.004124c0
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea esi, [edi + 4]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], bl
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [edi]
add ebx, 0x14
call fcn.004132e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41b6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e6e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x451084]
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.00421e80
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 ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00402b90
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x41b772
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_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