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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x510
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
movdqa xmm0, xmmword [0x1400ac8a0]
movdqu xmmword [rbp + 0x90], xmm0
xor r15d, r15d
mov word [rbp + 0x80], r15w
lea r8d, [r15 + 0x2a]
lea rdx, [0x1400aa7d0]
lea rcx, [rbp + 0x80]
call fcn.140001a50
nop
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea rcx, str.RestoreSystemHealthCMD:__s
call fcn.140036ce0
mov dword [rbp - 0x78], SafeArrayPutElement
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], 1
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140042b2e
mov dword [0x1400c2e80], 0x32
jmp 0x140043324
mov dword [rbp - 0x40], 0x68
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x18], rax
mov word [rbp], r15w
mov dword [rbp - 4], 0x101
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x1f0]
call fcn.140059e60
lea r8, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r8, qword [rbp + 0x80]
mov edx, 0x100
lea rcx, [rbp + 0x1f0]
call fcn.140067d98
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140042c08
lea rcx, str.RestoreSystemHealthCreateProcess_FAIL
call fcn.140036ce0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400c2e80], 0x32
jmp 0x140043324
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r15w
xor eax, eax
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1c8], rax
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1d8], rax
mov word [rbp + 0x1e0], ax
cmp dword [0x1400c2e7c], 1
je 0x1400432a8
lea r12, [0x1400aa938]
lea r13, [0x1400aa93c]
movsd xmm6, qword [0x1400ac840]
mov r14d, dword [rbp + 0x58]
nop dword [rax]
mov dword [rbp + 0x50], r15d
mov dword [rbp + 0x5c], r15d
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
mov r8d, 0x11
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400433ac
cmp dword [rbp + 0x50], 0
jne 0x140042cd4
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004329b
xor eax, eax
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1c8], rax
mov byte [rbp + 0x1d0], al
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x58]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004339b
lea rax, [rbp + 0x1c0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140042d20
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x60]
call fcn.140002cf0
lea r10, [rbp + 0x60]
mov rbx, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x78]
cmp rdi, 8
cmovae r10, rbx
mov r11, qword [rbp + 0x70]
cmp r11, 1
jb 0x140042daf
lea rcx, [r11 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
mov r8, r9
sub r8, r12
cmp word [r9], 0x5d
jne 0x140042da0
mov edx, 1
mov rcx, r12
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140042da0
add rcx, 2
sub rdx, 1
jne 0x140042d84
sub r9, r10
sar r9, 1
jmp 0x140042db6
cmp r9, r10
je 0x140042daf
sub r9, 2
sub r8, 2
jmp 0x140042d75
mov r9, 0xffffffffffffffff
cmp r9, 0xffffffffffffffff
jne 0x140042dcb
lea ecx, [r9 + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004329b
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r15w
cmp r11, r9
cmovb r9, r11
lea rdx, [rbp + 0x60]
cmp rdi, 8
cmovae rdx, rbx
mov r8, r9
lea rcx, [rbp + 0x30]
call fcn.140001a50
nop
lea r10, [rbp + 0x30]
mov rbx, qword [rbp + 0x30]
mov rdi, qword [rbp + 0x48]
cmp rdi, 8
cmovae r10, rbx
mov r11, qword [rbp + 0x40]
cmp r11, 1
jb 0x14004324f
lea rcx, [r11 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
mov r8, r9
sub r8, r13
nop word [rax + rax]
cmp word [r9], 0x5b
jne 0x140042f85
mov edx, 1
mov rcx, r13
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140042f85
add rcx, 2
sub rdx, 1
jne 0x140042e60
sub r9, r10
sar r9, 1
cmp r9, 0xffffffffffffffff
je 0x14004324f
inc r9
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
cmp r11, r9
jb 0x1400433f5
sub r11, r9
mov r8, 0xffffffffffffffff
cmp r11, r8
cmovb r8, r11
lea rax, [rbp + 0x30]
cmp rdi, 8
cmovae rax, rbx
lea rdx, [rax + r9*2]
lea rcx, [rsp + 0x50]
call fcn.140001a50
lea rcx, [rbp + 0x30]
call fcn.140001990
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x40], xmm1
lea rcx, [rbp + 0x30]
movq rdi, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
cmp rsi, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], 1
lea r9, [0x1400a9650]
xor r8d, r8d
movq rbx, xmm1
mov rdx, rbx
call fcn.140001c80
cmp rax, 0xffffffffffffffff
jne 0x140042f9b
lea ecx, [rax + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14004329b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433d7
jmp 0x140043296
cmp r9, r10
je 0x14004324f
sub r9, 2
sub r8, 2
jmp 0x140042e40
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
cmp rbx, rax
cmovb rax, rbx
lea rdx, [rbp + 0x30]
cmp rsi, 8
cmovae rdx, rdi
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.140001a50
lea rcx, [rbp + 0x30]
call fcn.140001990
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x40], xmm1
lea r10, [rbp + 0x30]
movq rbx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdi, xmm0
cmp rdi, 8
cmovae r10, rbx
movq r11, xmm1
cmp r11, 1
jb 0x140043071
lea rcx, [r11 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rdx, [r10 + rax*2]
mov r9, rdx
lea rsi, [0x14009e070]
sub r9, rsi
cmp word [rdx], 0x20
jne 0x140043062
mov r8d, 1
mov rcx, rsi
movzx eax, word [rcx]
cmp word [rcx + r9], ax
jne 0x140043062
add rcx, 2
sub r8, 1
jne 0x140043046
sub rdx, r10
sar rdx, 1
jmp 0x140043078
cmp rdx, r10
je 0x140043071
sub rdx, 2
sub r9, 2
jmp 0x140043037
mov rdx, 0xffffffffffffffff
cmp rdx, 0xffffffffffffffff
jne 0x1400430f9
lea r10, [rbp + 0x30]
cmp rdi, 8
cmovae r10, rbx
cmp r11, 1
jb 0x1400430f2
lea rcx, [r11 - 1]
mov rax, rdx
cmp rcx, rdx
cmovb rax, rcx
lea rdx, [r10 + rax*2]
mov r9, rdx
lea rax, [0x1400a49fc]
sub r9, rax
nop
cmp word [rdx], 0x3d
jne 0x1400430e3
mov r8d, 1
mov rcx, rax
nop
movzx eax, word [rcx]
cmp word [rcx + r9], ax
jne 0x1400430dc
add rcx, 2
sub r8, 1
jne 0x1400430c0
sub rdx, r10
sar rdx, 1
jmp 0x1400430f9
lea rax, [0x1400a49fc]
cmp rdx, r10
je 0x1400430f2
sub rdx, 2
sub r9, 2
jmp 0x1400430b0
mov rdx, 0xffffffffffffffff
inc rdx
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r15w
cmp r11, rdx
jb 0x1400433ef
sub r11, rdx
mov r8, 0xffffffffffffffff
cmp r11, r8
cmovb r8, r11
lea rax, [rbp + 0x30]
cmp rdi, 8
cmovae rax, rbx
lea rdx, [rax + rdx*2]
lea rcx, [rbp + 0xa0]
call fcn.140001a50
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0xc0]
call fcn.140059e60
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.14003d570
nop
mov dword [rbp + 0x54], r14d
lea rdx, [rbp + 0x54]
lea rcx, [rbp + 0xc0]
call fcn.14003e4e0
mov r14d, dword [rbp + 0x54]
lea rcx, [rbp + 0xc0]
call fcn.14003d460
mov edx, r14d
lea rcx, [0x1400aa940]
call fcn.140036ce0
movd xmm0, r14d
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [0x1400c2e80], eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x140043212
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004320c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433e9
call fcn.140055724
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14004329b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433dd
jmp 0x140043296
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14004329b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433fb
call fcn.140055724
cmp dword [0x1400c2e7c], 1
jne 0x140042c80
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400c2e80], 0x32
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140043313
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004330e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433e3
call fcn.140055724
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r15w
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140043366
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400433d1
call fcn.140055724
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140055700
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.ReadFile_break
call fcn.140036ce0
jmp 0x1400432b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.PeekNamedPipe_GetLastError__d
call fcn.140036ce0
lea rcx, str.PeekNamedPipe_break
call fcn.140036ce0
jmp 0x1400432b4
call fcn.14005c4ec
nop
call fcn.14005c4ec
int3
call fcn.14005c4ec
nop
call fcn.14005c4ec
nop
call fcn.14005c4ec
int3
call fcn.1400028d0
int3
call fcn.1400028d0
nop
call fcn.14005c4ec
int3