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 0x140011a80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xef8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x296
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xf18]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0xec8], rax
lea rcx, [0x1400250c8]
call fcn.1400113cf
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140011af7
lea rcx, str.WinSock
call fcn.1400111bd
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140011f9d
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 0x140011b35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14001bf00]
call fcn.1400111bd
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rbp + 0x220]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov edx, 0x100
lea rcx, [rbp + 0x220]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rbp + 0x334], eax
lea rcx, [rbp + 0x220]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x358], rax
cmp qword [rbp + 0x358], 0
je 0x140011cd8
mov eax, 2
mov word [rbp + 0x1e8], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
mov dword [rbp + 0x394], 0
lea rcx, [0x14001bf28]
call fcn.1400111bd
mov rax, qword [rbp + 0x358]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [rbp + 0x378], rax
jmp 0x140011bf5
mov eax, dword [rbp + 0x394]
inc eax
mov dword [rbp + 0x394], eax
movsxd rax, dword [rbp + 0x394]
mov rcx, qword [rbp + 0x358]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x378], rax
cmp qword [rbp + 0x378], 0
je 0x140011c53
mov rax, qword [rbp + 0x358]
movsx rax, word [rax + 0x12]
mov r8, rax
mov rdx, qword [rbp + 0x378]
lea rcx, [rbp + 0x1ec]
call fcn.1400111db
lea rcx, [0x14001bf60]
call fcn.1400111bd
mov ecx, dword [rbp + 0x1ec]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, dword [rbp + 0x394]
lea rcx, str._t___d_t_t_s_n
call fcn.1400111bd
jmp 0x140011bca
lea rcx, [0x14001bf88]
call fcn.1400111bd
lea rdx, [rbp + 0x3b4]
lea rcx, [0x14001bfb0]
call fcn.14001109b
cmp dword [rbp + 0x3b4], 0
jl 0x140011c89
mov eax, dword [rbp + 0x394]
cmp dword [rbp + 0x3b4], eax
jl 0x140011c97
lea rcx, [0x14001bfb8]
call fcn.1400111bd
jmp 0x140011c5f
movsxd rax, dword [rbp + 0x3b4]
mov rcx, qword [rbp + 0x358]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0x358]
movsx rax, word [rax + 0x12]
mov r8, rax
mov rdx, qword [rbp + 0x378]
lea rcx, [rbp + 0x1ec]
call fcn.1400111db
jmp 0x140011d01
lea rcx, [0x14001bfd8]
call fcn.1400111bd
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140011f9d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140011d49
lea rcx, [0x14001bff8]
call fcn.1400111bd
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140011f9d
mov dword [rbp + 0x3d4], 1
lea r8, [rbp + 0x3d4]
mov edx, 0x98000001
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140011d8d
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140011f9d
mov qword [rbp + 0x9f8], 0
mov dword [rbp + 0xa34], 0
xor eax, eax
cmp eax, 1
je 0x140011f9b
xor r9d, r9d
mov r8d, 0x5dc
lea rdx, [rbp + 0x400]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rbp + 0x9f8], rax
cmp qword [rbp + 0x9f8], 0
je 0x140011de7
cmp qword [rbp + 0x9f8], 0xffffffffffffffff
jne 0x140011e10
cmp qword [rbp + 0x9f8], 0xffffffffffffffff
jne 0x140011e0e
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140011f9d
jmp 0x140011da2
mov eax, dword [rbp + 0xa34]
inc eax
mov dword [rbp + 0xa34], eax
mov edx, dword [rbp + 0xa34]
lea rcx, str.__d__t
call fcn.1400111bd
lea rax, [rbp + 0x400]
mov qword [rbp + 0xa18], rax
mov rax, qword [rbp + 0xa18]
movzx eax, byte [rax + 9]
mov dword [rbp + 0xec4], eax
mov eax, dword [rbp + 0xec4]
dec eax
mov dword [rbp + 0xec4], eax
cmp dword [rbp + 0xec4], 0x31
ja case.0x140011e8a.2
movsxd rax, dword [rbp + 0xec4]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x11ff0]
mov eax, dword [rcx + rax*4 + 0x11fcc]
add rax, rcx
jmp rax
lea rcx, [rbp + 0x400]
call fcn.14001110e
jmp 0x140011f82
lea rcx, [rbp + 0x400]
call fcn.1400113a2
jmp 0x140011f82
lea rcx, [rbp + 0x400]
call fcn.140011325
jmp 0x140011f82
mov rax, qword [rbp + 0xa18]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov edx, eax
lea rcx, str.Catch_a_IGMP__len_:__d._n
call fcn.1400111bd
jmp 0x140011f82
mov rax, qword [rbp + 0xa18]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov edx, eax
lea rcx, str.Catch_a_EGP__len_:__d._n
call fcn.1400111bd
jmp 0x140011f82
mov rax, qword [rbp + 0xa18]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov edx, eax
lea rcx, str.Catch_a_IGP__len_:__d._n
call fcn.1400111bd
jmp 0x140011f82
mov rax, qword [rbp + 0xa18]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov edx, eax
lea rcx, str.Catch_a_ESP__len_:__d._n
call fcn.1400111bd
jmp 0x140011f82
mov rax, qword [rbp + 0xa18]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov edx, eax
lea rcx, str.Catch_a_OSPF__len_:__d._n
call fcn.1400111bd
jmp 0x140011f82
lea rcx, [0x14001c0b8]
call fcn.1400111bd
mov r8d, 0x5dc
xor edx, edx
lea rcx, [rbp + 0x400]
call fcn.1400112fd
jmp 0x140011da2
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001be70]
call fcn.140011352
mov rax, rdi
mov rcx, qword [rbp + 0xec8]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0xed8]
pop rdi
pop rbp
ret