Function at 0x140135980
Capabilities:
Read file on windows
Read pipe
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov qword [rsp + 0x68], r9
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov rbx, rcx
mov rax, qword [rbp + 0x480]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
xor esi, esi
mov qword [rbp - 0x38], rsi
lfence
lea ecx, [rsi + 8]
call fcn.140012d70
mov qword [rbp - 0x48], rax
lea rdx, [rax + 8]
mov qword [rbp - 0x38], rdx
lfence
mov qword [rax], rbx
mov qword [rbp - 0x40], rdx
lea r8, [rdi + 0x88]
mov rax, qword [r8]
test rax, rax
je 0x140135a26
cmp rdx, qword [rbp - 0x38]
je 0x140135a1d
mov qword [rdx], rax
add qword [rbp - 0x40], 8
jmp 0x140135a26
lea rcx, [rbp - 0x48]
call fcn.140132260
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x50], rsi
xor r14b, r14b
xor r12b, r12b
mov r13d, esi
cmp dword [rdi + 0xa0], esi
jle 0x14013601e
test r12b, r12b
jne 0x140135bab
xor edi, edi
mov dword [rbp - 0x80], edi
nop word [rax + rax]
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140135f37
mov r8d, dword [rbp - 0x80]
test r14b, r14b
je 0x140135c0c
test r8d, r8d
jne 0x140135c15
mov r12b, 1
mov esi, 1
mov rdi, qword [rsp + 0x40]
cmp r13d, dword [rdi + 0xa4]
jl 0x140135b92
test r14b, r14b
jne 0x140135b92
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140135b8f
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x30]
call fcn.1401a8d80
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov eax, 0x13c8
mov ecx, eax
mov eax, dword [rax + rdi]
mov edx, 0x13c0
mov esi, edx
test al, 1
jne 0x140135b1a
or eax, 1
mov dword [rcx + rdi], eax
xor eax, eax
mov qword [rdi + rdx], rax
call fcn.140138a70
mov qword [rdi + rsi], rax
mov rax, qword [rdi + rsi]
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 2
lea rcx, [rbp - 0x20]
call fcn.14000f010
nop
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp - 0x28], eax
setl byte [rbp + 0xd8]
jl 0x140135b81
lea rdx, str.TerminateProcess:
lea rcx, [rbp - 0x30]
call fcn.140032540
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400122b0
mov byte [rbp + 0xd8], 1
lea rcx, [rbp - 0x30]
call fcn.14000afe0
mov rdi, qword [rsp + 0x40]
mov r14b, 1
inc r13d
cmp r13d, dword [rdi + 0xa0]
jl 0x140135a47
test r12b, r12b
je 0x14013601e
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
sub r8, rdx
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov edi, 0xf
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x48]
call fcn.140010ea0
lea rax, [rsp + 0x48]
mov rsi, qword [rsp + 0x68]
cmp rsi, rax
je 0x140135fe0
mov rcx, rsi
call fcn.140010cd0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
mov byte [rsp + 0x48], 0
jmp 0x140135fe5
test r8d, r8d
je 0x140135d5b
mov dword [rbp - 0x7c], edi
xorps xmm0, xmm0
mov esi, r8d
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rdi
test r8d, r8d
je 0x140135c92
cmp rsi, 0x1000
jb 0x140135c64
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140136125
lfence
call fcn.140185648
mov rcx, rax
test rax, rax
je 0x14013612b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140135c6f
lfence
mov rcx, rsi
call fcn.140185648
mov qword [rbp - 0x78], rax
lea rdi, [rax + rsi]
mov qword [rbp - 0x68], rdi
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1401a8d80
mov qword [rbp - 0x70], rdi
mov r8d, dword [rbp - 0x80]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x7c]
mov rdx, qword [rbp - 0x78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140135d78
mov eax, dword [rbp - 0x80]
cmp dword [rbp - 0x7c], eax
jne 0x140135d78
mov rsi, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
cmp rdi, rsi
je 0x140135d01
nop dword [rax]
mov rcx, qword [rbp - 0x58]
cmp rcx, qword [rbp - 0x50]
je 0x140135ce5
movzx eax, byte [rdi]
mov byte [rcx], al
inc qword [rbp - 0x58]
jmp 0x140135cf5
mov r8, rdi
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
call fcn.14012fb00
inc rdi
cmp rdi, rsi
jne 0x140135cd0
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x140135d48
mov rdx, qword [rbp - 0x68]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140135d32
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013612b
mov rcx, rdi
call fcn.1401853a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x68], rdi
cmp dword [rbp - 0x80], 0
jne 0x140135a60
test r14b, r14b
jne 0x140135aa0
lea rcx, [rbp - 0x48]
call fcn.1401357a0
movzx r14d, r14b
test al, al
mov esi, 1
cmovne r14d, esi
jmp 0x140135aa5
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xe0]
call fcn.1401a8d80
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, 0x13c8
mov ecx, eax
mov eax, dword [rax + rbx]
mov edx, 0x13c0
mov edi, edx
test al, 1
jne 0x140135dc2
or eax, 1
mov dword [rcx + rbx], eax
xor eax, eax
mov qword [rdx + rbx], rax
call fcn.140138a70
mov qword [rdi + rbx], rax
mov rax, qword [rdi + rbx]
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0xe8], 2
lea rcx, [rbp + 0xf0]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0xe8], eax
setl byte [rbp + 0x1e8]
jl 0x140135e3b
lea rdx, str.ReadFile_stdout_:
lea rcx, [rbp + 0xe0]
call fcn.140032540
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x1e8], 1
lea rcx, [rbp + 0xe0]
call fcn.14000afe0
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140135e82
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140135e7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013612b
call fcn.1401853a0
xor bl, bl
xor edi, edi
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140135ecc
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140135ebb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140136131
call fcn.1401853a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140135f0a
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140135f05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013611f
call fcn.1401853a0
movzx eax, bl
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140185380
mov rbx, qword [rsp + 0x568]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x1f0]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp + 0x1f0], rax
mov dword [rbp + 0x1f8], 2
lea rcx, [rbp + 0x200]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0x1f0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0x1f8], eax
setl byte [rbp + 0x2f8]
jl 0x140135fc5
lea rdx, str.PeekNamedPipe_stdout_:
lea rcx, [rbp + 0x1f0]
call fcn.1400121b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x2f8], 1
lea rcx, [rbp + 0x1f0]
call fcn.14000afe0
xor bl, bl
jmp 0x140135e86
mov rdi, qword [rsp + 0x60]
cmp rdi, 0x10
jb 0x14013601e
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140136019
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140136137
call fcn.1401853a0
mov rsi, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140136106
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x300]
call fcn.1401a8d80
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, 0x13c8
mov ecx, eax
mov eax, dword [rax + rbx]
mov edx, 0x13c0
mov edi, edx
test al, 1
jne 0x140136081
or eax, 1
mov dword [rcx + rbx], eax
xor eax, eax
mov qword [rdx + rbx], rax
call fcn.140138a70
mov qword [rdi + rbx], rax
mov rax, qword [rdi + rbx]
mov qword [rbp + 0x300], rax
mov dword [rbp + 0x308], 2
lea rcx, [rbp + 0x310]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0x300]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0x308], eax
setl byte [rbp + 0x408]
jl 0x1401360fa
lea rdx, str.GetExitCodeProcess__:
lea rcx, [rbp + 0x300]
call fcn.140012150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x3c]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x408], 1
lea rcx, [rbp + 0x300]
call fcn.14000afe0
test r12b, r12b
je 0x140135e82
cmp dword [rsi], 0
jne 0x140135e82
mov bl, 1
jmp 0x140135e84
call fcn.1401b3c00
nop
call fcn.140008770
int3
call fcn.1401b3c00
nop
call fcn.1401b3c00
nop
call fcn.1401b3c00
int3