Function at 0x140087410
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 [0x140162010]
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.14000e8a0
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 0x1400874b6
cmp rdx, qword [rbp - 0x38]
je 0x1400874ad
mov qword [rdx], rax
add qword [rbp - 0x40], 8
jmp 0x1400874b6
lea rcx, [rbp - 0x48]
call fcn.140088d90
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 0x140087aae
test r12b, r12b
jne 0x14008763b
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 0x1400879c7
mov r8d, dword [rbp - 0x80]
test r14b, r14b
je 0x14008769c
test r8d, r8d
jne 0x1400876a5
mov r12b, 1
mov esi, 1
mov rdi, qword [rsp + 0x40]
cmp r13d, dword [rdi + 0xa4]
jl 0x140087622
test r14b, r14b
jne 0x140087622
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14008761f
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x30]
call fcn.1400d41f0
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 0x1400875aa
or eax, 1
mov dword [rcx + rdi], eax
xor eax, eax
mov qword [rdi + rdx], rax
call fcn.1400890d0
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.140018320
nop
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp - 0x28], eax
setl byte [rbp + 0xd8]
jl 0x140087611
lea rdx, str.TerminateProcess:
lea rcx, [rbp - 0x30]
call fcn.140018e40
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14002cee0
mov byte [rbp + 0xd8], 1
lea rcx, [rbp - 0x30]
call fcn.140014330
mov rdi, qword [rsp + 0x40]
mov r14b, 1
inc r13d
cmp r13d, dword [rdi + 0xa0]
jl 0x1400874d7
test r12b, r12b
je 0x140087aae
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.14000bab0
lea rax, [rsp + 0x48]
mov rsi, qword [rsp + 0x68]
cmp rsi, rax
je 0x140087a70
mov rcx, rsi
call fcn.14000ba30
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 0x140087a75
test r8d, r8d
je 0x1400877eb
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 0x140087722
cmp rsi, 0x1000
jb 0x1400876f4
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140087bb5
lfence
call fcn.1400adcb8
mov rcx, rax
test rax, rax
je 0x140087bbb
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400876ff
lfence
mov rcx, rsi
call fcn.1400adcb8
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.1400d41f0
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 0x140087808
mov eax, dword [rbp - 0x80]
cmp dword [rbp - 0x7c], eax
jne 0x140087808
mov rsi, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
cmp rdi, rsi
je 0x140087791
nop dword [rax]
mov rcx, qword [rbp - 0x58]
cmp rcx, qword [rbp - 0x50]
je 0x140087775
movzx eax, byte [rdi]
mov byte [rcx], al
inc qword [rbp - 0x58]
jmp 0x140087785
mov r8, rdi
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
call fcn.140086b50
inc rdi
cmp rdi, rsi
jne 0x140087760
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1400877d8
mov rdx, qword [rbp - 0x68]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400877c2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087bbb
mov rcx, rdi
call fcn.1400ada10
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x68], rdi
cmp dword [rbp - 0x80], 0
jne 0x1400874f0
test r14b, r14b
jne 0x140087530
lea rcx, [rbp - 0x48]
call fcn.140087230
movzx r14d, r14b
test al, al
mov esi, 1
cmovne r14d, esi
jmp 0x140087535
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xe0]
call fcn.1400d41f0
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 0x140087852
or eax, 1
mov dword [rcx + rbx], eax
xor eax, eax
mov qword [rdx + rbx], rax
call fcn.1400890d0
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.140018320
nop
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0xe8], eax
setl byte [rbp + 0x1e8]
jl 0x1400878cb
lea rdx, str.ReadFile_stdout_:
lea rcx, [rbp + 0xe0]
call fcn.140018e40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x1e8], 1
lea rcx, [rbp + 0xe0]
call fcn.140014330
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087912
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008790d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087bbb
call fcn.1400ada10
xor bl, bl
xor edi, edi
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14008795c
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008794b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087bc1
call fcn.1400ada10
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14008799a
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087baf
call fcn.1400ada10
movzx eax, bl
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400ad9f0
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.1400d41f0
call fcn.140089150
mov qword [rbp + 0x1f0], rax
mov dword [rbp + 0x1f8], 2
lea rcx, [rbp + 0x200]
call fcn.140018320
nop
mov rcx, qword [rbp + 0x1f0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0x1f8], eax
setl byte [rbp + 0x2f8]
jl 0x140087a55
lea rdx, str.PeekNamedPipe_stdout_:
lea rcx, [rbp + 0x1f0]
call fcn.140070200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x2f8], 1
lea rcx, [rbp + 0x1f0]
call fcn.140014330
xor bl, bl
jmp 0x140087916
mov rdi, qword [rsp + 0x60]
cmp rdi, 0x10
jb 0x140087aae
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087aa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087bc7
call fcn.1400ada10
mov rsi, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140087b96
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x300]
call fcn.1400d41f0
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 0x140087b11
or eax, 1
mov dword [rcx + rbx], eax
xor eax, eax
mov qword [rdx + rbx], rax
call fcn.1400890d0
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.140018320
nop
mov rcx, qword [rbp + 0x300]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0x308], eax
setl byte [rbp + 0x408]
jl 0x140087b8a
lea rdx, str.GetExitCodeProcess__:
lea rcx, [rbp + 0x300]
call fcn.14002cf80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x3c]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x408], 1
lea rcx, [rbp + 0x300]
call fcn.140014330
test r12b, r12b
je 0x140087912
cmp dword [rsi], 0
jne 0x140087912
mov bl, 1
jmp 0x140087914
call fcn.1400e39e0
nop
call fcn.1400067c0
int3
call fcn.1400e39e0
nop
call fcn.1400e39e0
nop
call fcn.1400e39e0
int3