joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4318a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x51811b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [edi], 0
call fcn.005147f0
lea ecx, [esp + 0x48]
mov dword [edi + 4], 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 dword [esp + 0x70], 0
mov eax, dword [esi + 0x14]
lea ebp, [eax - 1]
cmp ebp, eax
jbe 0x431903
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
lea ebx, [esi + 4]
jb 0x431910
mov eax, dword [ebx]
jmp 0x431912
mov eax, ebx
cmp byte [eax + ebp], 0x2f
je 0x431943
mov eax, dword [esi + 0x14]
lea ebp, [eax - 1]
cmp ebp, eax
jbe 0x431928
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
jb 0x431930
mov ebx, dword [ebx]
cmp byte [ebx + ebp], 0x5c
je 0x431943
push esi
lea ecx, [esp + 0x4c]
call dword [0x52e398]
jmp 0x431978
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
push eax
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 1
call dword [0x52e398]
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x2c]
call fcn.00440a80
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x30]
mov esi, 8
cmp dword [esp + 0x44], esi
jae 0x43199d
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4319dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x4319ce
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x4319c3
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4319dc
call fcn.005147f0
mov esi, eax
call ebx
mov dword [edi], eax
mov dword [edi + 4], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
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 + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00515015
add esp, 0x64
ret
Function at 0x431f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516d73
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add eax, 0x30
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 1
call fcn.00440bb0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret 8

Function at 0x432460
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
cmp dword [esi + 0x28], 0
jne 0x4324e8
push edi
push 0
lea edi, [esi + 8]
push 0x5c
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_of_wchar_t__unsigned_int_const]
add eax, 1
push eax
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x432497
mov eax, dword [eax + 4]
jmp 0x43249a
add eax, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea ecx, [esp + 0x14]
mov edi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test edi, edi
pop edi
je 0x4324da
mov eax, dword [esp]
mov ecx, dword [esp + 4]
imul ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
add esp, 0x2c
ret
mov dword [esi + 0x28], 0x200
mov dword [esi + 0x2c], 0x1000
mov eax, dword [esi + 0x28]
add esp, 0x2c
ret

Function at 0x4324f0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x55db18]
sub esp, 0x24
test eax, eax
jne 0x43252b
mov eax, dword [0x55e460]
test eax, eax
jne 0x432526
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x55e460], eax
jg 0x432526
mov eax, 0x1000
mov dword [0x55e460], eax
mov dword [0x55db18], eax
add esp, 0x24
ret
Function at 0x432530
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x518058
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43259e
xor ebx, ebx
push ebx
xor eax, eax
push ebx
push 1
push ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x7c], ebx
jne 0x4325b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
mov al, byte [esp + 0x84]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
neg al
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
sbb eax, eax
and eax, ecx
push eax
push edx
push 0x20
lea eax, [esp + 0x58]
push eax
push 0x10
lea ecx, [esp + 0x38]
push ecx
push 0x940cf
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [esp + 0x84], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x432670
cmp eax, ebx
jne 0x43269b
call edi
cmp eax, 0x3e5
jne 0x432674
lea ecx, [esp + 0x1c]
call fcn.00401410
push esi
lea esi, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00431ff0
mov edx, dword [esp + 0x1c]
neg edx
sbb edx, edx
test edx, fcn.004b2590
mov dword [esp + 0x10], eax
je 0x43269b
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x43265b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
cmp eax, ebx
jne 0x43269b
call edi
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x43265b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
cmp dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x48]
setne bl
cmp eax, 0xffffffff
je 0x4326b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret

Function at 0x432820
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x55db18], 0
jne 0x43285b
mov eax, dword [0x55e460]
test eax, eax
jne 0x432856
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x55e460], eax
jg 0x432856
mov eax, 0x1000
mov dword [0x55e460], eax
mov dword [0x55db18], eax
add esp, 0x24
ret
Function at 0x432fe0
Capabilities:
Get file size

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
call fcn.005147f0
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43301f
call fcn.005147f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
mov esi, eax
mov dword [esp + 0x1c], ebp
jmp 0x43302b
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
neg esi
sbb esi, esi
test esi, fcn.004b2590
mov dword [esp + 0x18], ebp
je 0x43304d
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
test byte [ebx + 0x24], 4
je 0x43309c
call fcn.004324f0
sub eax, 1
cdq
mov ecx, eax
mov esi, edx
not esi
not ecx
mov ebx, esi
and ebx, dword [esp + 0x54]
mov edi, ecx
and edi, dword [esp + 0x50]
add eax, ebp
adc edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
and eax, ecx
and edx, esi
mov esi, dword [esp + 0x54]
sub eax, edi
sbb edx, ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
jmp 0x4330ba
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
sbb ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebx + 4]
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x44]
push eax
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push 0x940cf
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4330f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43311a
cmp dword [esp + 0x14], 0
jne 0x433108
mov eax, ebp
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov edx, dword [esp + 0x3c]
cmp edx, esi
mov eax, dword [esp + 0x38]
jg 0x43311e
jl 0x43311a
cmp eax, edi
jae 0x43311e
mov edx, esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x433a20
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51ff3c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, esi
mov dword [esp + 0x14], 4
call fcn.00433ac0
push 0x433810
push 3
push 0xc
lea eax, [esi + 0xc8]
push eax
mov byte [esp + 0x24], 3
call fcn.0051515e
push 0x433a10
push 4
push 0x24
lea ecx, [esi + 0x38]
push ecx
mov byte [esp + 0x24], 2
call fcn.0051515e
lea edi, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.004367f0
lea edx, [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], vtable.boost::asio::io_service::service.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x434420
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
cmp dword [esi], 0x40
push ebx
push ebp
push edi
mov ebx, eax
jne 0x43443c
mov edi, 0x2745
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
xor ebp, ebp
cmp dword [esi], ebp
jne 0x43451d
cmp dword [esp + 0x30], ebp
je 0x4344b3
cmp ebx, ebp
je 0x4344b3
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push eax
push eax
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
mov edi, dword [esp + 0xc]
cmp edi, dword [ebx]
jbe 0x43449e
mov edi, 0x2726
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4344b3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push edi
push edx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebx], edi
mov edi, dword [esp + 0x34]
cmp edi, 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
jne 0x4344da
mov edi, 0x2719
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x20]
push edx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.005147f0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, ebp
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x43451d
xor edi, edi
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4345a0
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 0x4346a6
cmp byte [ebp + 0xc], al
je 0x43460f
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x43460f
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
call fcn.005147f0
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.005147f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x43460f
call fcn.005147f0
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.005147f0
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 0x4346a6
call fcn.005147f0
cmp dword [esi + 4], eax
jne 0x43464e
cmp dword [esi], 0x2733
je 0x434660
call fcn.005147f0
cmp dword [esi + 4], eax
jne 0x4346a2
cmp dword [esi], 0x4d5
jne 0x4346a2
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x4346b2
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4346c0
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 0x4346e5
mov edi, 0x2719
call fcn.005147f0
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.005147f0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jl 0x4346de
xor edi, edi
call fcn.005147f0
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 0x434740
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x434760
mov edi, 0x2719
call fcn.005147f0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x43479d
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x4348c0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x434920
mov edi, 0x2746
jmp 0x43492c
cmp eax, 0x4d2
jne 0x434936
mov edi, 0x274d
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x434943
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret

Function at 0x434ba0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x434bff
mov edi, 0x2746
jmp 0x434c0b
cmp eax, 0x4d2
jne 0x434c15
mov edi, 0x274d
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x434c22
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x434d70
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 0x434d98
mov edi, 0x2719
call fcn.005147f0
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 0x434dfd
cmp ebx, 2
jne 0x434dbc
mov edi, 0x2726
call fcn.005147f0
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 0x434e10
cmp dword [esp + 0x1c], 4
jne 0x434da5
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0
je 0x434de7
or byte [eax], 4
xor edi, edi
call fcn.005147f0
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.005147f0
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 0x434e10
cmp ebx, 0x80
jne 0x434e10
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x434e4f
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x434f80
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 0x434fa5
mov edi, 0x2719
call fcn.005147f0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x434fee
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x435080
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 0x4350e4
cmp dword [esp + 0x18], ebx
jne 0x4350e4
test ebp, ebp
jne 0x4350e4
test edi, edi
je 0x435102
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 0x4350cb
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
xor edi, edi
call fcn.005147f0
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 0x435102
cmp dword [edi], 0
jne 0x435102
mov eax, dword [edi + 4]
test eax, eax
jle 0x435102
cmp eax, 0x3e8
jge 0x435102
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jl 0x435139
xor edi, edi
call fcn.005147f0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x435140
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x43516a
mov edi, 0x2719
call fcn.005147f0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
je 0x4351ba
jle 0x4351c6
xor edi, edi
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret

Function at 0x4351e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x43520a
mov edi, 0x2719
call fcn.005147f0
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.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
je 0x43525a
jle 0x435266
xor edi, edi
call fcn.005147f0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret