joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ed80
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4ad658]
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 eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
push 0x64
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x80], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
push 0x83
push 0
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41380d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41380d
mov ecx, dword [eax]
lea edx, [ecx - 1]
cmp edx, 0x9ffe
ja 0x41380d
mov byte [ecx + eax + 4], 0
add eax, 4
push eax
lea ecx, [ebp - 0x64]
call fcn.00412ea0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x74]
push eax
push ecx
push edx
lea eax, [ebp - 0x64]
push edi
push eax
mov edx, ebx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004130e0
add esp, 0x20
push 0xc8
push 0xa6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov bl, 1
test edi, edi
je 0x413801
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x413801
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00412ea0
push edi
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040d140
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00412f00
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x48]
call fcn.00457e80
add esp, 4
mov esi, dword [ebp - 0x6c]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.0040c6c0
lea esi, [ebp - 0x48]
call fcn.00412900
lea ecx, [ebp - 0x2c]
call fcn.00412f00
lea ecx, [ebp - 0x64]
call fcn.00412f00
mov al, bl
jmp 0x41380f
xor al, al
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.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x41cb60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov ebx, eax
cmp ebx, edi
jne 0x41cbf4
xor eax, eax
cmp ecx, edi
je 0x41cbd6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, edi
je 0x41cc14
cmp ecx, edi
je 0x41cbff
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x41cc9c
jmp 0x41cc50
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0041cb60
mov ebx, eax
cmp ebx, edi
jne 0x41ccf2
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call esi
test eax, eax
je 0x41cc50
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x41ccb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
call fcn.0041cd90
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x41ccdd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x41cd03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00464d49
mov esp, ebp
pop ebp
ret 4
Function at 0x41d9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48be46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
cmp edi, esi
jne 0x41da70
call fcn.00411780
mov esi, eax
jmp 0x41db89
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x41da8f
call fcn.00411780
jmp 0x41db80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
jne 0x41daab
call fcn.00411780
jmp 0x41db80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x41dacc
mov esi, 0x8007000e
jmp 0x41db82
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x41dae1
cmp eax, 0xffffffff
jbe 0x41daeb
push 0x80070216
call fcn.00412300
cmp eax, 0x400
jbe 0x41db1d
lea ecx, [ebp - 0x418]
push ecx
call fcn.0041c430
jmp 0x41db29
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, esi
jne 0x41db41
mov esi, 0x8007000e
jmp 0x41db82
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0x41db5f
call fcn.00411780
jmp 0x41db80
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea esi, [ebp - 0x42c]
call fcn.0041d850
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x41dba2
lea eax, [ebp - 0x418]
call fcn.0041bd20
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 - 0x14]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ef70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ad658]
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.00465047
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.00412a40
mov dword [esi], vtable.boost::thread_resource_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 0x41f002
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::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
mov esp, ebp
pop ebp
ret 4

Function at 0x4204a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a0e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
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.00465047
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.00412a40
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 0x424db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bbfb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
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 0x429410
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], 0x4b1f18
mov dword [ebp - 0x10], ebx
call fcn.0042ee40
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.0042f3e0
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 0x42bae0
Capabilities:
Send data
Send 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 0x42bb0e
mov eax, dword [ebx + 4]
push 0
call fcn.0042bfb0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x42bb2c
mov eax, dword [ebx + 4]
push 0x2719
call fcn.0042bfb0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
push esi
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x42bb5f
mov eax, 0x274d
test edi, edi
je 0x42bb7e
cmp eax, 0x3e5
je 0x42bb7e
mov edx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ebx + 4]
call fcn.0042bfb0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0042c020
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
Function at 0x42c090
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 0x42c0be
mov eax, dword [ebx + 4]
push 0
call fcn.0042bfb0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x42c0dc
mov eax, dword [ebx + 4]
push 0x2719
call fcn.0042bfb0
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 0x42c115
mov eax, 0x2746
jmp 0x42c121
cmp eax, 0x4d2
jne 0x42c121
mov eax, 0x274d
test edi, edi
je 0x42c140
cmp eax, 0x3e5
je 0x42c140
mov ecx, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebx + 4]
call fcn.0042bfb0
pop edi
pop esi
pop ecx
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0042c020
pop edi
pop esi
pop ecx
pop ebp
ret 0x14

Function at 0x42c190
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f06c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0042c2e0
push 0x42cd60
push 3
push 0xc
lea eax, [esi + 0xc8]
push eax
mov byte [ebp - 4], 3
call fcn.00466320
push 0x42cca0
push 4
push 0x24
lea ecx, [esi + 0x38]
push ecx
mov byte [ebp - 4], 2
call fcn.00466320
lea edi, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042cb10
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42c5b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c5d5
mov edi, 0x2719
call fcn.004827a0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 4], 0
mov dword [esi], eax
mov dword [esi + 4], edi
jl 0x42c626
xor edi, edi
call fcn.004827a0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
cmp dword [ebx], edi
je 0x42c623
or byte [eax], 1
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
and byte [eax], 0xfc
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42cea0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
mov edi, eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x42cf01
cmp dword [ebp + 0xc], ebx
jne 0x42cf01
cmp dword [ebp + 0x10], ebx
jne 0x42cf01
test edi, edi
je 0x42cf1f
mov ecx, dword [edi]
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
imul dword [edi + 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x42cee7
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
call fcn.004827a0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop ebx
pop ecx
pop ebp
ret
test edi, edi
je 0x42cf1f
cmp dword [edi], 0
jne 0x42cf1f
mov eax, dword [edi + 4]
test eax, eax
jle 0x42cf1f
cmp eax, 0x3e8
jge 0x42cf1f
mov dword [edi + 4], 0x3e8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push edx
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
js 0x42cf57
xor edi, edi
call fcn.004827a0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp + 0xc]
push edi
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 1
push edx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x42cfb1
mov edi, 0x2746
jmp 0x42cfbd
cmp eax, 0x4d2
jne 0x42cfc7
mov edi, 0x274d
call fcn.004827a0
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x42cfd4
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
call fcn.004827a0
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x408]
xor ebx, ebx
push esi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], 0x400
mov dword [ebp - 0x418], ebx
call fcn.004827a0
mov edx, dword [edi]
lea ecx, [ebp - 0x420]
push ecx
push edx
lea esi, [ebp - 0x418]
mov dword [ebp - 0x414], eax
call fcn.0042cf60
add esp, 8
cmp eax, ebx
setg cl
mov byte [ebp - 0x409], cl
cmp eax, 0x400
jne 0x42d0de
lea esp, [esp]
mov esi, dword [edi]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 1
lea edx, [ebp - 0x420]
push edx
push esi
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.004827a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x42d0ae
cmp eax, 0x4d2
jne 0x42d0b3
call fcn.004827a0
cmp esi, ebx
jne 0x42d0c8
call fcn.004827a0
cmp dword [ebp - 0x410], 0x400
je 0x42d060
mov al, byte [ebp - 0x409]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00464d49
mov esp, ebp
pop ebp
ret

Function at 0x42d6f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d714
mov edi, 0x2719
call fcn.004827a0
mov dword [esi], edi
mov dword [esi + 4], eax
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
js 0x42d70c
xor edi, edi
call fcn.004827a0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
or byte [eax], 2
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d770
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d792
mov edi, 0x2719
call fcn.004827a0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x42d7cd
xor edi, edi
call fcn.004827a0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4326c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4872ab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00464292
push 4
mov dword [ebp - 4], 0
call fcn.00464e82
mov edi, eax
add esp, 4
test edi, edi
je 0x432740
call fcn.00463f7f
mov dword [edi], eax
call fcn.00463d3e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00463c73
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x432736
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00463c9b
jmp 0x432742
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 1
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x432a51
mov edi, 0x2746
jmp 0x432a5d
cmp eax, 0x4d2
jne 0x432a67
mov edi, 0x274d
call fcn.004827a0
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x432a74
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
call fcn.004827a0
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret