Function at 0x1400d6f90
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x11
je 0x1400d6fc9
xor eax, eax
jmp 0x1400d7383
mov dword [rsp + 0xd0], 0
mov byte [rsp + 0x60], 0
lea rdi, [rsp + 0x61]
xor eax, eax
mov ecx, WSAGetLastError
rep stosb byte [rdi], al
mov dword [rsp + 0xe0], 0
lea rdi, [rsp + 0xe4]
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
rep stosb byte [rdi], al
lea rdi, [rsp + 0xf4]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xec]
lea rax, [rsp + 0xe8]
lea r9, [rsp + 0xe4]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xe0]
lea rdx, str._X:_X:_X:_X:_X:_X
mov rcx, qword [rsp + 0x150]
call fcn.1400aa430
mov dword [rsp + 0xd0], 0
jmp 0x1400d7079
mov eax, dword [rsp + 0xd0]
add eax, 1
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 6
jae 0x1400d709f
mov eax, dword [rsp + 0xd0]
mov ecx, dword [rsp + 0xd0]
movzx eax, byte [rsp + rax*4 + 0xe0]
mov byte [rsp + rcx + 0x60], al
jmp 0x1400d7068
mov dword [rsp + 0xd0], 1
jmp 0x1400d70bd
mov eax, dword [rsp + 0xd0]
add eax, 1
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0x11
jae 0x1400d70ea
mov eax, dword [rsp + 0xd0]
imul eax, eax, 6
mov eax, eax
lea rcx, [rsp + rax + 0x60]
mov r8d, 6
lea rdx, [rsp + 0x60]
call fcn.1400a8d20
jmp 0x1400d70ac
mov dword [rsp + 0xd0], 0
jmp 0x1400d7108
mov eax, dword [rsp + 0xd0]
add eax, 1
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 6
jae 0x1400d7120
mov eax, dword [rsp + 0xd0]
mov byte [rsp + rax + 0x60], 0xff
jmp 0x1400d70f7
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xd0], 0
cmp qword [rsp + 0xd8], 0
je 0x1400d737e
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1400d737e
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
mov dword [rsp + 0xf8], eax
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x120], rax
mov dword [rsp + 0xfc], 1
mov dword [rsp + 0x11c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xfc]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x11c], eax
mov dword [rsp + 0x128], 0
mov dword [rsp + 0x118], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x128]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x11c], eax
mov dword [rsp + 0x100], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x100]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov word [rsp + 0x108], dx
lea rdi, [rsp + 0x10a]
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x108], ax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x10c], eax
xor eax, eax
mov word [rsp + 0x10a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x11c], eax
mov dword [rsp + 0x10c], 0xffffffff
mov cx, 0xfa0
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x10a], ax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, WSASetLastError
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_sendto]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 2
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0xd0]
add eax, 1
mov dword [rsp + 0xd0], eax
jmp 0x1400d713b
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x140
pop rdi
ret