Function at 0x14009d6e0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x60], rdx
mov qword [rbp - 0x68], r8
xor r12d, r12d
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x18], r12b
mov dword [rbp - 0x80], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x78], r12
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14009d807
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x18], al
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14009d7ca
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14009d7c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14009dc6d
mov rcx, r8
call fcn.1400ae0c8
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rax, r14
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1400adbc0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dword [rbp - 0x60], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
mov dword [rbp - 0x24], 0x101
mov rax, qword [rsp + 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov word [rbp - 0x20], r12w
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x40], al
lea r8d, [rax + 3]
lea rdx, [0x140397a08]
lea rcx, [rbp + 0x40]
call fcn.140088bd0
nop
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14009d883
mov r9, qword [rsi]
mov rdi, qword [rsi + 0x10]
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14009d8c6
lea rax, [rcx + rdi]
mov qword [rbp + 0x50], rax
lea rbx, [rbp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 0x40]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.14029ddb0
mov byte [rbx + rdi], 0
jmp 0x14009d8da
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.1400917e0
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rcx, str.C:WindowsSystem32cmd.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14009da40
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x28], r12
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x14009d9a7
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009d99e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009dc73
call fcn.1400ae0c8
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x40], 0
cmp rax, 0x10
jb 0x14009d9ef
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009d9ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009dc67
call fcn.1400ae0c8
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x18], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14009d7ca
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14009d7c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jmp 0x14009d7bc
mov edx, gethostbyaddr
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
mov dword [rbp + 0x38], r12d
mov dword [rbp + 0x10], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14009db83
nop word [rax + rax]
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x14009db83
cmp eax, 0x3ff
jbe 0x14009daa7
mov eax, 0x3ff
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x38]
mov r8d, eax
lea rdx, [rbp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009db83
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x14009db83
cmp rax, 0x400
jae 0x14009dc61
mov byte [rbp + rax + 0x60], 0
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009daf1
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14009db3a
lea rax, [rcx + rbx]
mov qword [rbp + 0x28], rax
lea rdi, [rbp + 0x18]
cmp rdx, 0x10
cmovae rdi, qword [rbp + 0x18]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.14029ddb0
mov byte [rdi + rbx], 0
jmp 0x14009db52
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.1400917e0
mov dword [rbp + 0x38], r12d
mov dword [rbp + 0x10], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14009da90
test r15b, r15b
je 0x14009da40
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x28], r12
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x30], rdx
mov byte [rbp + 0x18], 0
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14009dc16
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009dc0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009dc73
call fcn.1400ae0c8
mov rdx, qword [rbp + 0x30]
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x40], 0
cmp rdx, 0x10
jb 0x14009d9ef
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009d9ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009dc67
jmp 0x14009d9ea
call fcn.1400ae248
nop
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
int3