Function at 0x1400112b2
Capabilities:
Create raw socket
Get hostname
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
jmp 0x140011dd0
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x1400240fc]
call fcn.1400113de
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 3
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140011e55
lea rcx, [0x14001b040]
call fcn.1400113b1
mov eax, 0xffffffff
jmp 0x140012048
mov edx, gethostname
lea rcx, [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0
jne 0x140011e9b
lea rcx, str.gethostbyname
call fcn.1400113b1
mov eax, 0xffffffff
jmp 0x140012048
mov eax, 2
mov word [rbp + 0x238], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x23a], ax
mov dword [rbp + 0x284], 0
mov eax, dword [rbp + 0x284]
mov rcx, qword [rbp + 0x268]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rbp + 0x268]
movsx rdx, word [rdx + 0x12]
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov rcx, qword [rbp + 0x268]
cmp rax, qword [rcx]
jae 0x140011f32
mov eax, dword [rbp + 0x284]
inc eax
mov dword [rbp + 0x284], eax
mov eax, dword [rbp + 0x284]
mov rcx, qword [rbp + 0x268]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, dword [rbp + 0x284]
lea rcx, [0x14001b068]
call fcn.1400113b1
jmp 0x140011ec0
mov rax, qword [rbp + 0x268]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x268]
mov rdx, qword [rdx + 0x18]
mov r9, rax
mov r8, qword [rdx + rcx]
mov edx, 4
lea rcx, [rbp + 0x23c]
call fcn.140012120
mov ecx, dword [rbp + 0x23c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [0x14001b080]
call fcn.1400113b1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x238]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140011fba
lea rcx, str.Bind
call fcn.1400113b1
mov eax, 0xffffffff
jmp 0x140012048
mov dword [rbp + 0x2a4], 1
lea r8, [rbp + 0x2a4]
mov edx, 0x98000001
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140011ff4
lea rcx, str.SIO_RCVALL_
call fcn.1400113b1
mov eax, 0xffffffff
jmp 0x140012048
xor eax, eax
cmp eax, 1
je 0x140012035
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x2d0]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x6e4], eax
cmp dword [rbp + 0x6e4], 0
jle 0x140012033
lea rcx, [rbp + 0x2d0]
call fcn.1400112f8
jmp 0x140011ff4
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001af00]
call fcn.140011361
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0xa08]
pop rdi
pop rbp
ret