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

Disassembly:
jmp 0x140011db0
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 [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x1400240fd]
call fcn.1400113cf
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 0x140011e35
lea rcx, [0x14001b040]
call fcn.1400113a2
mov eax, 0xffffffff
jmp 0x140012028
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 0x140011e7b
lea rcx, str.gethostbyname
call fcn.1400113a2
mov eax, 0xffffffff
jmp 0x140012028
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 0x140011f12
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.1400113a2
jmp 0x140011ea0
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.140012100
mov ecx, dword [rbp + 0x23c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [0x14001b080]
call fcn.1400113a2
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 0x140011f9a
lea rcx, str.Bind
call fcn.1400113a2
mov eax, 0xffffffff
jmp 0x140012028
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 0x140011fd4
lea rcx, str.SIO_RCVALL_
call fcn.1400113a2
mov eax, 0xffffffff
jmp 0x140012028
xor eax, eax
cmp eax, 1
je 0x140012015
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 0x140012013
lea rcx, [rbp + 0x2d0]
call fcn.1400112e9
jmp 0x140011fd4
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, [0x14001adb8]
call fcn.140011352
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0xa08]
pop rdi
pop rbp
ret