Function at 0x1400253c0
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
mov rbx, qword [rbp + 0x7f]
xor r14b, r14b
xor r15d, r15d
mov esi, r9d
mov r12, r8
mov r13, rdx
mov rdi, rcx
cmp byte [rcx + 0x11], r14b
je 0x1400254ae
mov r15, qword [rcx]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp r15, rax
jne 0x1400254ab
xor r14d, r14d
lea rdx, [rbp - 0x2d]
mov rcx, r15
mov dword [rbp - 0x2d], r14d
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test byte [rbp - 0x2d], 2
je 0x14002543a
mov r14b, 1
jmp 0x1400254ab
mov r15d, 1
cmp esi, 0xffffffff
je 0x140025464
mov rcx, qword [rdi]
lea rdx, [rbp + 0x5f]
call qword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
test eax, eax
je 0x140025633
cmp dword [rbp + 0x5f], r14d
je 0x1400255dd
mov rcx, qword [rdi]
lea r9, [rbp + 0x5f]
mov r8d, r15d
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
test eax, eax
je 0x1400254a7
cmp dword [rbp + 0x5f], r14d
jbe 0x140025440
cmp dword [rbp - 0x25], r14d
je 0x140025440
movsx eax, byte [rbp - 0x1b]
test al, al
je 0x140025440
movzx eax, al
mov byte [r13], al
test rbx, rbx
je 0x14002549f
mov dword [rbx], r14d
mov rax, r15
jmp 0x1400256a3
movzx r14d, r15b
xor r15d, r15d
cmp esi, 0xffffffff
je 0x140025630
test r14b, r14b
jne 0x140025630
cmp qword [rdi + 8], 0
jne 0x1400254dd
test rbx, rbx
je 0x1400255e8
mov dword [rbx], 5
xor eax, eax
jmp 0x1400256a3
mov rcx, qword [rdi]
lea r14, [0x14002add0]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r14
xorps xmm1, xmm1
mov qword [rbp - 0x11], r15
lea r9, [rbp - 0x11]
mov qword [rbp + 7], r15
mov r8d, r12d
mov qword [rbp + 0xf], rdi
mov rdx, r13
movdqu xmmword [rbp - 9], xmm0
movdqu xmmword [rbp + 0x17], xmm1
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400255a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x218
jne 0x140025610
mov rax, qword [rdi + 8]
lea rdx, [rbp - 0x11]
mov rcx, qword [rax]
mov qword [rbp + 7], rcx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14002556d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002556d
mov rcx, qword [rdi + 8]
mov edx, esi
call fcn.140028a90
test al, al
je 0x1400255ef
mov rcx, qword [rdi]
lea r9, [rbp - 0x11]
xorps xmm0, xmm0
mov qword [rbp - 0x11], r15
xorps xmm1, xmm1
mov qword [rbp + 7], r15
mov r8d, r12d
mov qword [rbp + 0xf], rdi
mov rdx, r13
mov qword [rsp + 0x20], r14
movdqu xmmword [rbp - 9], xmm0
movdqu xmmword [rbp + 0x17], xmm1
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140025520
mov rcx, qword [rdi + 8]
mov edx, esi
call fcn.140028a90
test al, al
jne 0x1400255d4
mov rcx, qword [rdi]
lea rdx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.140028a90
test al, al
je 0x1400255dd
cmp dword [rbp + 0x1f], 0x3e3
jne 0x140025622
test rbx, rbx
je 0x1400255e8
mov dword [rbx], 0xd
xor eax, eax
jmp 0x1400256a3
mov rcx, qword [rdi]
lea rdx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.140028a90
jmp 0x1400255dd
test rbx, rbx
je 0x1400255e8
mov dword [rbx], 1
xor eax, eax
jmp 0x1400256a3
test rbx, rbx
je 0x14002562a
mov dword [rbx], r15d
mov rax, qword [rbp + 0x17]
jmp 0x1400256a3
xor r14d, r14d
mov rcx, qword [rdi]
lea r9, [rbp - 0x31]
mov r8d, r12d
mov dword [rbp - 0x31], r14d
mov rdx, r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025672
mov eax, dword [rbp - 0x31]
cmp rax, r12
je 0x140025668
test rbx, rbx
je 0x1400256a3
mov dword [rbx], 0xb
jmp 0x1400256a3
test rbx, rbx
je 0x1400256a3
mov dword [rbx], r14d
jmp 0x1400256a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140025698
test rbx, rbx
je 0x1400256a0
cmp eax, 0x218
mov ecx, 0xf
mov eax, 1
cmovne ecx, eax
mov dword [rbx], ecx
jmp 0x1400256a0
test rbx, rbx
je 0x1400256a0
mov dword [rbx], r14d
mov eax, dword [rbp - 0x31]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret