Function at 0x1400059c0
Capabilities:
Create pipe
Create process on windows
Print debug messages
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12d, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], r8
lea rcx, str.command:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005a23
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140005a36
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r15d, r15d
mov r13d, r15d
lea ebx, [r15 + 1]
cmp r12d, ebx
jne 0x140005a7f
call fcn.140005600
mov r13, rax
test rax, rax
jne 0x140005a7f
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
lea rdx, [0x14004456c]
mov rcx, rsi
call fcn.1400024b8
jmp 0x140005fde
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r15w
lea rdx, [0x140044340]
lea rcx, [rbp + 0x70]
call fcn.1400024b8
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x70], 0x18
mov dword [rbp - 0x60], ebx
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.1400134d0
mov dword [rbp - 0x50], ebx
mov dword [rbp - 0x14], 0x100
mov qword [rbp - 0x40], r15
mov qword [rbp], r15
mov rax, qword [rsp + 0x70]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov word [rbp - 0x10], r15w
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
mov ebx, r15d
cmp qword [r14 + 0x10], r15
jne 0x140005bac
test r12d, r12d
jne 0x140005b4a
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005b3d
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp 0x140005bfe
mov eax, 1
cmp r12d, eax
jne 0x140005c9f
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005b65
mov rdx, qword [rdi]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000020
mov eax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x140005c32
mov r8d, 1
lea rdx, str._0__
mov rcx, rdi
call fcn.14000261c
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140005bce
mov rdx, qword [r14]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140005bd2
mov rcx, rdi
call fcn.14000261c
test r12d, r12d
jne 0x140005c3b
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005bf6
mov rdx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000020
mov eax, 1
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov eax, 1
jmp 0x140005c9f
mov eax, 1
cmp r12d, eax
jne 0x140005c9f
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005c52
mov r8, qword [rdi]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000020
mov eax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
mov eax, 1
cmove ebx, eax
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], r15b
cmp ebx, eax
je 0x140005cc3
lea rdx, [0x140044574]
jmp 0x140005ece
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x2710
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140005ec7
cmp dword [rsp + 0x60], r15d
je 0x140005ec7
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], r15b
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
mov r8d, 0x100
lea rdx, [rbp + 0xb0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x64], eax
lea rax, [rbp + 0xb0]
or r15, 0xffffffffffffffff
inc r15
cmp byte [rax + r15], 0
jne 0x140005d58
cmp r15, qword [rbp + 0x48]
ja 0x140005d93
lea rbx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rbx, qword [rbp + 0x30]
mov qword [rbp + 0x40], r15
mov r8, r15
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call fcn.1400136c0
mov byte [rbx + r15], 0
jmp 0x140005da6
lea r9, [rbp + 0xb0]
mov rdx, r15
lea rcx, [rbp + 0x30]
call fcn.14000fb94
mov ebx, dword [rsp + 0x60]
xor r15d, r15d
mov qword [rbp + 0x90], r15
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
cmp qword [rbp + 0x40], rbx
cmovb rbx, qword [rbp + 0x40]
lea r9, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae r9, qword [rbp + 0x30]
lea rcx, [rbp + 0x90]
cmp rbx, 0xf
ja 0x140005e0d
mov qword [rbp + 0xa0], rbx
mov r8, rbx
mov rdx, r9
call fcn.1400136c0
mov byte [rbp + rbx + 0x90], r15b
jmp 0x140005e16
mov rdx, rbx
call fcn.14000fb94
nop
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
lea rcx, [rbp + 0x50]
call fcn.14000e1a4
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140005e80
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006022
call fcn.140010068
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140005ebb
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005eb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006028
call fcn.140010068
cmp dword [rsp + 0x64], r15d
je 0x140005ed7
jmp 0x140005d13
lea rdx, [0x140044578]
lea rcx, [rbp + 0x70]
call fcn.1400024b8
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140005f46
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140010328
mov rbx, rax
mov rcx, qword [rbp + 0x60]
mov word [rax + rcx*2], r15w
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae r8, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x60]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
or r9, 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.1400024b8
mov rcx, rbx
call fcn.140010068
test r13, r13
je 0x140005f54
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
cmp r12d, eax
jne 0x140005f64
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r15w
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x140005fc4
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000601c
call fcn.140010068
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], r15b
lea rcx, [rbp + 0x70]
call fcn.1400025b8
nop
mov rcx, rdi
call fcn.1400025b8
nop
mov rcx, r14
call fcn.1400025b8
mov rax, rsi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140010040
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400177cc
nop
call fcn.1400177cc
nop
call fcn.1400177cc
int3