Function at 0x140013790
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Create two anonymous pipes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd30]
sub rsp, 0xe30
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp + 0xd20], rax
mov r14, qword [rbp + 0xd90]
mov r12, r8
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
xor esi, esi
mov rbx, rax
mov ecx, 0xfffffff4
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x54], 0x101
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x30], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea rdx, [rbp - 8]
xor r8d, r8d
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rdx, qword [rbp - 0x20]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x30], 3
mov r8, rbx
mov dword [rsp + 0x28], 1
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp - 8]
lea r9, [rbp - 0x38]
mov dword [rsp + 0x30], 3
mov r8, rbx
mov dword [rsp + 0x28], 1
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test rdi, rdi
jne 0x14001393f
mov r8d, 0x100
lea rdx, [rbp + 0x320]
mov rcx, r15
call fcn.140015110
lea r8d, [rsi + 0xa]
lea rdx, [rbp]
lea rcx, [0x140088570]
call fcn.140015110
lea rdx, [rbp]
lea rcx, [rbp + 0x320]
call fcn.14005302c
mov rbx, rax
test rax, rax
je 0x14001393f
mov r8, rax
mov word [rbp + 0x20], si
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.140053914
cmp byte [rbp + 0x20], 0x23
mov byte [rbp + 0x11f], sil
jne 0x140013937
cmp byte [rbp + 0x21], 0x21
jne 0x140013937
movzx eax, byte [rbp + 0x22]
lea rdi, [rbp + 0x22]
test al, al
je 0x140013937
nop word [rax + rax]
movzx ecx, al
call fcn.140061cc0
test eax, eax
je 0x140013937
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140013920
mov rcx, rbx
call fcn.1400531cc
mov r9, r14
mov qword [rsp + 0x20], r15
lea r8, [0x140088628]
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.140003a00
mov r8d, 0x100
lea rdx, [rbp + 0x920]
lea rcx, [rbp + 0x20]
call fcn.140015110
xor r9d, r9d
lea r8, [rbp + 0x320]
mov edx, 0x100
lea rcx, [rbp + 0x920]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x320]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400139a0
mov qword [rsp + 0x38], rsi
lea rcx, [rbp + 0x120]
mov qword [rsp + 0x30], rsi
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 0x100
lea r8, [rbp + 0x320]
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, 0x100
lea rdx, [rbp + 0x820]
mov rcx, r14
call fcn.140006b60
mov r8d, 0x100
lea rdx, [rbp + 0xb20]
mov rcx, r14
call fcn.140015110
test rdi, rdi
je 0x140013a52
mov r8d, 0x100
lea rdx, [rbp + 0x520]
mov rcx, rdi
call fcn.140006b60
lea rax, [rbp + 0x120]
mov edx, 0x100
lea r9, [rbp + 0x520]
mov qword [rsp + 0x20], rax
lea r8, str._s___s_
lea rcx, [rbp + 0x220]
call fcn.140003a00
jmp 0x140013a71
lea r9, [rbp + 0x120]
mov edx, 0x100
lea r8, str.__s_
lea rcx, [rbp + 0x220]
call fcn.140003a00
mov r8d, 0x100
lea rdx, [rbp + 0x620]
lea rcx, [rbp + 0x220]
call fcn.140015110
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x620]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0xb20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140013b65
mov rdi, qword [rbp - 0x18]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14005f49c
mov rbx, qword [rbp + 0xd98]
test rax, rax
je 0x140013b0e
mov r8, rax
mov qword [rax], rbx
xor edx, edx
mov qword [rax + 8], rdi
lea rcx, [0x140010d70]
call fcn.14006264c
mov rdi, qword [rbp - 0x10]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14005f49c
test rax, rax
je 0x140013b39
mov r8, rax
mov qword [rax], rbx
xor edx, edx
mov qword [rax + 8], rdi
lea rcx, [0x140010c30]
call fcn.14006264c
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013b86
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xd98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 0x2307
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x140013bb9
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x620]
lea rcx, str.CGI_command:___ls______p
call fcn.140003d70
cmp qword [rsp + 0x50], rsi
setne sil
mov eax, esi
mov rcx, qword [rbp + 0xd20]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0xe30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret