joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449130
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e0eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x80000fa0
mov eax, dword [edi]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
mov byte [esi + 4], 0
mov dword [esi + 8], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 4], 1
cmp dword [esi], 0
je 0x44918b
mov ecx, dword [esi]
add ecx, 0x18
call fcn.0041e9f0
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, esi
mov dword [esi + 0x30], 0
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
add ecx, 2
add ecx, edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x3c], ecx
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 0x44aac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xa0], eax
mov al, byte [ebp + 0x18]
mov byte [edi + 0x9c], al
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x88], eax
cmp dword [eax + 0x14], 0
je 0x44ab29
push 0x48
call fcn.00466473
add esp, 4
test eax, eax
je 0x44ab0b
mov ecx, eax
call fcn.0044a740
jmp 0x44ab0d
xor eax, eax
mov dword [edi + 0xc8], eax
cmp dword [edi + 0xc8], 0
jne 0x44ab29
push str.rpc_failed__n
call fcn.00468ed8
add esp, 4
mov ax, word [ebp + 0x10]
lea edx, [edi + 0xb4]
mov word [edi + 0xc6], ax
mov eax, dword [ebp + 0xc]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x44ab40
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1001
push 0xffff
push dword [edi + 0xa0]
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x94], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1002
push 0xffff
push dword [edi + 0xa0]
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [edi + 0x98], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push eax
push dword [edi + 0xa0]
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [edi + 0xa4]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x44abe0
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [edi + 0x90]
mov word [edi + 0xc4], ax
call fcn.0045af70
mov ecx, dword [edi + 0x8c]
call fcn.004599a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004670fe
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44ae30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [0x4e303c]
dec eax
add eax, esi
div esi
push edi
imul eax, esi
mov edi, ecx
mov ecx, 0x1000
push 4
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x98], ecx
mov eax, dword [edi + 0x98]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
push dword [edi + 0xa0]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
pop ebp
ret 4

Function at 0x44ae90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [0x4e303c]
dec eax
add eax, esi
div esi
push edi
imul eax, esi
mov edi, ecx
mov ecx, 0x1000
push 4
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x94], ecx
mov eax, dword [edi + 0x94]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push dword [edi + 0xa0]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edx, 1
test eax, eax
mov dword [esi], vtable.dbc::PreAllocHeap_class_dbc::AcceptConnect_.0
push 0x80000fa0
cmovne edx, eax
mov dword [esi + 4], 0
lea eax, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 0x10], 1
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
call fcn.00448a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
mov dword [edi], vtable.dbc::PreAllocHeap_class_dbc::AcceptConnect_.0
mov edx, esi
cmovne edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [edi + 4], edx
push 0x80000fa0
cmovne esi, eax
lea eax, [edi + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [edi + 0x10], 1
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
call fcn.00448a60
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 0x44b040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edx, 1
test eax, eax
mov dword [esi], vtable.dbc::PreAllocHeap_class_dbc::DataSocket_.0
push 0x80000fa0
cmovne edx, eax
mov dword [esi + 4], 0
lea eax, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 0x10], 1
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
call fcn.00448a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
mov dword [edi], vtable.dbc::PreAllocHeap_class_dbc::DataSocket_.0
mov edx, esi
cmovne edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [edi + 4], edx
push 0x80000fa0
cmovne esi, eax
lea eax, [edi + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [edi + 0x10], 1
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
call fcn.00448a60
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 0x44b190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edx, 1
test eax, eax
mov dword [esi], vtable.dbc::PreAllocHeap_class_dbc::DelConnect_.0
push 0x80000fa0
cmovne edx, eax
mov dword [esi + 4], 0
lea eax, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 0x10], 1
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
call fcn.00448a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44b230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
mov dword [edi], vtable.dbc::PreAllocHeap_class_dbc::DelConnect_.0
mov edx, esi
cmovne edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [edi + 4], edx
push 0x80000fa0
cmovne esi, eax
lea eax, [edi + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [edi + 0x10], 1
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
call fcn.00448a60
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 0x44c400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e32e0]
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, ecx
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x160], 0
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
jne 0x44c5a4
lea esi, [eax + 0x164]
mov ecx, esi
mov dword [ebp - 0x34], esi
call fcn.00448cf0
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov eax, 2
movdqu xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x44c4a6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44c596
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], edi
test eax, eax
je 0x44c4c0
mov dword [eax], edi
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44c4de
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x44c596
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x44c596
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x44c596
push eax
mov ecx, 0x4e94b4
call fcn.0044cb60
push 0
push dword [ebp - 0x2c]
mov edi, eax
push dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0044aac0
mov ecx, dword [ebp - 0x2c]
push edi
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov dword [ebp - 4], 0
test al, al
je 0x44c58f
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0044ba40
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00448cc0
mov eax, edi
jmp 0x44c5a6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00448cc0
xor eax, eax
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.004670fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e3f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov word [esi + 0x174], ax
test edx, edx
je 0x44e44f
mov ecx, edx
lea edi, [ecx + 1]
jmp 0x44e420
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e420
sub ecx, edi
cmp ecx, 0x10
jae 0x44e44f
lea edi, [esi + 0x176]
mov ecx, edi
sub ecx, edx
jmp 0x44e440
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x44e440
jmp 0x44e46e
push 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edi, [esi + 0x176]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x44e461
cmp dword [esi + 0x170], 0xffffffff
jne 0x44e4ab
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x170], eax
cmp dword [esi + 0x170], 0xffffffff
je 0x44e4ab
cmp byte [edi], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
je 0x44e4c0
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x44e4c2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, 2
movzx eax, word [esi + 0x174]
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [esi + 0x170]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x44e50e
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x170]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x44e53b
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
mov eax, dword [esi + 0x170]
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x44e573
pop edi
mov eax, 0xfffffffc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret 8
mov byte [esi + 0x16c], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004670fe
mov esp, ebp
pop ebp
ret 8
Function at 0x44e9c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x602c
call fcn.00467560
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x6020], eax
push edi
mov ecx, eax
mov dword [ebp - 8], 0
call fcn.00457bc0
test al, al
jne 0x44eb06
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x140], 0
jne 0x44eb06
lea eax, [ebp - 0x601c]
mov dword [ebp - 0x601c], 0
push eax
mov ecx, esi
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x2014], 0
mov word [ebp - 0xf], 0
mov byte [ebp - 0x10], 0
call fcn.0044bce0
mov bl, byte [ebp - 0x10]
mov cl, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
test bl, bl
jne 0x44ea60
test dl, dl
jne 0x44ea60
test cl, cl
jne 0x44ea60
push 2
jmp 0x44eaf1
test cl, cl
mov dword [ebp - 0x6024], 0
lea eax, [ebp - 0x602c]
mov dword [ebp - 0x602c], 0
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x6028], 0x7d0
cmove eax, dword [ebp - 0x6024]
xor ecx, ecx
push eax
test dl, dl
lea eax, [ebp - 0x4018]
cmove eax, ecx
test bl, bl
push eax
lea eax, [ebp - 0x601c]
cmove eax, ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x44ead2
test eax, eax
je 0x44eae6
lea eax, [ebp - 0x601c]
mov ecx, esi
push eax
call fcn.0044bac0
jmp 0x44eae6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2742
je 0x44eb13
cmp eax, 0x276d
je 0x44eb13
mov eax, dword [esi + 0x158]
test eax, eax
je 0x44eaf3
push eax
call edi
mov ecx, dword [ebp - 0x6020]
call fcn.00457bc0
test al, al
je 0x44ea01
push 0
lea ecx, [esi + 0x140]
call fcn.00448ca0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004670fe
mov esp, ebp
pop ebp
ret 4
Function at 0x44eb30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x602c
call fcn.00467560
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x6020], eax
push edi
mov ecx, eax
mov dword [ebp - 8], 0
call fcn.00457bc0
test al, al
jne 0x44ed8e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x140], 0
jne 0x44ed8e
cmp dword [esi + 0x170], 0xffffffff
mov dword [ebp - 0x601c], 0
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x2014], 0
mov word [ebp - 0xf], 0
mov byte [ebp - 0x10], 0
je 0x44ebf5
mov eax, dword [esi + 0x170]
cmp byte [esi + 0x16c], 0
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x2014], 1
mov byte [ebp - 0xe], 1
jne 0x44ebf5
cmp dword [esi + 0x160], 0
jne 0x44ebf5
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x6018], eax
mov dword [ebp - 0x601c], 1
mov byte [ebp - 0x10], 1
lea eax, [ebp - 0x601c]
mov ecx, esi
push eax
call fcn.0044bce0
mov bl, byte [ebp - 0x10]
mov cl, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
test bl, bl
jne 0x44ec1f
test dl, dl
jne 0x44ec1f
test cl, cl
jne 0x44ec1f
push 2
jmp 0x44ed79
test cl, cl
mov dword [ebp - 0x6024], 0
lea eax, [ebp - 0x602c]
mov dword [ebp - 0x602c], 0
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x6028], 0x7d0
cmove eax, dword [ebp - 0x6024]
xor ecx, ecx
push eax
test dl, dl
lea eax, [ebp - 0x4018]
cmove eax, ecx
test bl, bl
push eax
lea eax, [ebp - 0x601c]
cmove eax, ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x44ed5a
test eax, eax
je 0x44ed6e
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [esi + 0x170]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44ecdb
mov eax, dword [esi + 0x170]
cmp eax, 0xffffffff
je 0x44ecbc
push eax
mov dword [esi + 0x170], 0xffffffff
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi + 0x176]
mov byte [esi + 0x16c], 1
push eax
movzx eax, word [esi + 0x174]
mov ecx, esi
push eax
call fcn.0044e3f0
jmp 0x44ed47
cmp byte [esi + 0x16c], 0
jne 0x44ed4a
lea eax, [ebp - 0x601c]
push eax
mov eax, dword [esi + 0x170]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44ed4a
lea ecx, [esi + 0x164]
call fcn.00448cf0
cmp dword [esi + 0x160], 0
jne 0x44ed36
push 0
mov ecx, 0x4e982c
call fcn.0044cb10
mov dword [eax + 0x48], esi
add eax, 0x10
mov ecx, dword [esi + 0x144]
push eax
mov byte [esi + 0x16c], 1
call fcn.00452440
jmp 0x44ed41
lea ecx, [esi + 0x164]
call fcn.00448cc0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0xc]
lea eax, [ebp - 0x601c]
mov ecx, esi
push eax
call fcn.0044bac0
jmp 0x44ed6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2742
je 0x44ed9b
cmp eax, 0x276d
je 0x44ed9b
mov eax, dword [esi + 0x158]
test eax, eax
je 0x44ed7b
push eax
call edi
mov ecx, dword [ebp - 0x6020]
call fcn.00457bc0
test al, al
je 0x44eb71
push 0
lea ecx, [esi + 0x140]
call fcn.00448ca0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004670fe
mov esp, ebp
pop ebp
ret 4
Function at 0x44edc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44ee10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x44ee0a
shr eax, 8
cmp al, 2
jne 0x44ee0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret

Function at 0x44f630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48de97
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x44f684
mov dword [edi], 0x4b42c8
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004475a0
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.004464d0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x4e96e0]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4