Function at 0x41eba3
Capabilities:
Create raw socket
Get hostname
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x429357
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x10938
call fcn.00425510
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
mov byte [ebp - 0x130], bl
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x944]
stosw word es:[edi], ax
call fcn.00407ea9
push dword [ebp + 8]
lea ecx, [ebp - 0x944]
mov dword [ebp - 4], ebx
call fcn.00407eea
push dword [ebp + 0xc]
lea ecx, [ebp - 0x944]
mov dword [ebp - 0x18], eax
call fcn.00407eea
push 0x43c95c
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov word [ebp - 0x2c], 2
mov word [ebp - 0x2a], bx
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x41ec72
mov eax, dword [0x43e448]
mov eax, dword [eax + 0x36c8]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41ec38
cmp eax, 0xffffffff
jne 0x41ec83
push 0xff
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x41ec83
push dword [ebp + 0x10]
lea ecx, [ebp - 0x944]
call fcn.00407eea
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x41ec8c
cmp eax, 0xffffffff
jne 0x41ec9a
mov eax, dword [0x43e448]
mov eax, dword [eax + 0x36c8]
mov dword [ebp - 0x10], eax
push 1
pop esi
push esi
push ebx
push ebx
push ebx
push 3
push 2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ed9e
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
push ebx
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41ed9e
push 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41ed9e
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 4
lea eax, [ebp - 0x14]
push eax
push 0x98000001
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x41ed9e
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
je 0x41ed8c
mov esi, 0xffff
push esi
lea eax, [ebp - 0x10944]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x10944]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [ebp - 0x1093b], 0x2f
jne 0x41ed85
mov edx, dword [ebp - 0x10938]
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jne 0x41ed62
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10938], ecx
mov ecx, dword [ebp + 8]
jmp 0x41ed70
cmp edx, dword [ebp + 8]
jne 0x41ed85
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10938], edx
push eax
lea eax, [ebp - 0x10944]
push eax
mov dword [ebp - 0x10934], ecx
call fcn.0041eb17
pop ecx
pop ecx
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
jne 0x41ed1d
push sym.imp.MSVCRT.dll__except_handler3
call sub.MSVCRT.dll_fflush
pop ecx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x944]
call fcn.00407edc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret