Function at 0x140002d30
Capabilities:
Read file on windows
Read pipe

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
xor eax, eax
mov rsi, qword [rdx + 8]
mov rbx, qword [rdx]
lea r12, [rsp + 0x90]
mov r8, rcx
mov ecx, 0xa
mov qword [rsp + 0x50], 0
lea rbp, [rsp + 0x80]
mov rdi, r12
cmp rsi, 7
mov qword [rsp + 0x58], 0
rep stosq qword [rdi], rax
mov rax, qword [r8 + 0x18]
lea rdi, [rbx + rsi]
mov rcx, rbp
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x90], 0x68
mov dword [rsp + 0xcc], 0x100
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], rax
mov rax, qword [r8]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0xe0], rax
ja 0x140002a70
cmp rbx, rdi
je 0x1400029b8
lea rax, [rcx + rsi*2]
cmp rbx, rax
setae al
cmp rdi, rcx
setbe dl
or al, dl
je 0x140002ab0
lea rax, [rsi - 1]
cmp rax, 0xe
jbe 0x140002ab0
mov rdx, rsi
xor eax, eax
pxor xmm3, xmm3
and rdx, 0xfffffffffffffff0
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rbx + rax]
movdqa xmm1, xmm3
pcmpgtb xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
punpckhbw xmm0, xmm1
movups xmmword [rcx + rax*2], xmm2
movups xmmword [rcx + rax*2 + 0x10], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x140002850
mov rdx, rsi
and rdx, 0xfffffffffffffff0
lea rax, [rcx + rdx*2]
add rbx, rdx
cmp rsi, rdx
je 0x1400029b8
movsx dx, byte [rbx]
mov word [rax], dx
lea rdx, [rbx + 1]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 1]
mov word [rax + 2], dx
lea rdx, [rbx + 2]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 2]
mov word [rax + 4], dx
lea rdx, [rbx + 3]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 3]
mov word [rax + 6], dx
lea rdx, [rbx + 4]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 4]
mov word [rax + 8], dx
lea rdx, [rbx + 5]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 5]
mov word [rax + 0xa], dx
lea rdx, [rbx + 6]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 6]
mov word [rax + 0xc], dx
lea rdx, [rbx + 7]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 7]
mov word [rax + 0xe], dx
lea rdx, [rbx + 8]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 8]
mov word [rax + 0x10], dx
lea rdx, [rbx + 9]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 9]
mov word [rax + 0x12], dx
lea rdx, [rbx + 0xa]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 0xa]
mov word [rax + 0x14], dx
lea rdx, [rbx + 0xb]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 0xb]
mov word [rax + 0x16], dx
lea rdx, [rbx + 0xc]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 0xc]
mov word [rax + 0x18], dx
lea rdx, [rbx + 0xd]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 0xd]
mov word [rax + 0x1a], dx
lea rdx, [rbx + 0xe]
cmp rdi, rdx
je 0x1400029b8
movsx dx, byte [rbx + 0xe]
mov word [rax + 0x1c], dx
nop dword [rax]
xor eax, eax
mov qword [rsp + 0x78], rsi
xor r9d, r9d
xor r8d, r8d
mov word [rcx + rsi*2], ax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
cmp rcx, rbp
je 0x140002a20
mov rax, qword [rsp + 0x80]
lea rdx, [rax + rax + 2]
call fcn.1400bf650
test ebx, ebx
je 0x140002a60
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
mov rax, qword [rsp + 0x50]
mov qword [0x1400f1048], rax
mov rax, qword [rsp + 0x58]
mov qword [0x1400f1040], rax
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor edx, edx
mov ecx, 3
call fcn.140004e70
jmp 0x140002a39
movabs rax, 0x3fffffffffffffff
cmp rsi, rax
ja 0x140002ad4
lea rcx, [rsi + 1]
movabs rax, 0x4000000000000000
cmp rcx, rax
je 0x140002acf
add rcx, rcx
call fcn.1400bf690
mov qword [rsp + 0x80], rsi
mov rcx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000280a
xor eax, eax
nop word [rax + rax]
movsx dx, byte [rbx + rax]
mov word [rcx + rax*2], dx
add rax, 1
cmp rsi, rax
jne 0x140002ab8
jmp 0x1400029b8
call fcn.1400c0570
lea rcx, [0x1400c40e0]
call fcn.1400c0760
mov rcx, qword [rsp + 0x70]
mov r12, rax
cmp rcx, rbp
je 0x140002b01
mov rax, qword [rsp + 0x80]
lea rdx, [rax + 1]
add rdx, rdx
call fcn.1400bf650
mov rcx, r12
call fcn.14001b780
nop
nop word [rax + rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
pxor xmm0, xmm0
xor r9d, r9d
mov r12, qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rbp, [rcx + 0x20]
movups xmmword [rcx], xmm0
mov rbx, rcx
mov rsi, rdx
movups xmmword [rcx + 0x10], xmm0
lea rdx, [rcx + 0x18]
mov r8, rbp
mov dword [rcx + 0x20], 0x18
lea rcx, [rcx + 0x10]
mov dword [rcx + 0x20], 1
mov qword [rcx + 0x18], 0
call r12
test eax, eax
je 0x140002cc8
xor r8d, r8d
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov rdi, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rdi
test eax, eax
je 0x140002cb0
xor r9d, r9d
mov r8, rbp
mov rcx, rbx
lea rdx, [rbx + 8]
call r12
test eax, eax
je 0x140002c98
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov edx, 1
call rdi
test eax, eax
je 0x140002c80
mov r12, qword [rsi]
lea rdi, [rsp + 0x30]
mov rsi, qword [rsi + 8]
mov qword [rsp + 0x20], rdi
mov rax, r12
add rax, rsi
je 0x140002bd2
test r12, r12
je 0x140002cd9
cmp rsi, 0xf
ja 0x140002c40
cmp rsi, 1
je 0x140002c30
test rsi, rsi
mov rax, rdi
jne 0x140002cf0
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov byte [rax + rsi], 0
call fcn.140002770
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x140002c18
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov qword [0x1400f1058], rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, byte [r12]
mov byte [rsp + 0x30], al
mov rax, rdi
jmp 0x140002bea
test rsi, rsi
js 0x140002cf8
mov rcx, rsi
add rcx, 1
js 0x140002ce8
call fcn.1400bf690
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x20]
jmp 0x140002bea
xor edx, edx
mov ecx, 3
call fcn.140004e70
jmp 0x140002bb0
xor edx, edx
mov ecx, 3
call fcn.140004e70
jmp 0x140002b9a
xor edx, edx
mov ecx, 3
call fcn.140004e70
jmp 0x140002b82
xor edx, edx
mov ecx, 3
call fcn.140004e70
jmp 0x140002b65
lea rcx, [0x1400c40f8]
call fcn.1400c0670
nop dword [rax]
call fcn.1400c0570
nop dword [rax]
mov rcx, rdi
jmp 0x140002c68
lea rcx, [0x1400c40e0]
call fcn.1400c0760
mov rcx, qword [rsp + 0x20]
mov r12, rax
cmp rcx, rdi
je 0x140002d1f
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, r12
call fcn.14001b780
nop
nop dword [rax + rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
cmp byte [0x1400f1050], 0
mov r14, rcx
mov r13, rdx
je 0x140003060
mov rbp, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 0
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], rax
lea r12, [rsp + 0x48]
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x60], 0
mov rcx, qword [r13 + 0x10]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], 0
xor edx, edx
call rbp
mov ecx, 0x32
call r15
mov ebx, dword [rsp + 0x48]
test ebx, ebx
je 0x140002e50
jle 0x140002f6a
lea rax, [rsp + 0x50]
lea r15, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x70]
nop word cs:[rax + rax]
mov rcx, qword [r13 + 0x10]
mov r9, r15
mov r8d, 0x7f
mov rdx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
mov byte [rsp + 0xef], 0
call sub.msvcrt.dll_strlen
mov r10, qword [rsp + 0x58]
movabs rdx, 0x7fffffffffffffff
sub rdx, r10
cmp rax, rdx
ja 0x1400030b3
mov rdx, qword [rsp + 0x50]
lea r12, [rax + r10]
mov ecx, 0xf
cmp rdx, qword [rsp + 0x30]
cmovne rcx, qword [rsp + 0x60]
cmp r12, rcx
mov r8, rdx
ja 0x140002fb0
test rax, rax
je 0x140002f3d
add rdx, r10
cmp rax, 1
je 0x140002fd8
cmp eax, 8
jae 0x140002ff0
test al, 4
jne 0x14000309a
test eax, eax
jne 0x140003020
mov rdx, r8
mov qword [rsp + 0x58], r12
mov ecx, 0x10
mov eax, 0
mov rdi, rbp
mov byte [rdx + r12], 0
sub ebx, dword [rsp + 0x4c]
rep stosq qword [rdi], rax
mov edx, ebx
xor ebx, ebx
test edx, edx
cmovns ebx, edx
jg 0x140002ea0
lea rax, [r14 + 0x10]
mov qword [r14], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x30]
je 0x140003050
mov qword [r14], rax
mov rax, qword [rsp + 0x60]
mov qword [r14 + 0x10], rax
mov rax, qword [rsp + 0x58]
mov qword [r14 + 8], rax
mov rax, r14
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbp
xor r8d, r8d
mov rdx, r10
call fcn.1400acba0
mov rdx, qword [rsp + 0x50]
jmp 0x140002f3d
movzx eax, byte [rsp + 0x70]
mov byte [rdx], al
mov rdx, qword [rsp + 0x50]
jmp 0x140002f3d
mov ecx, eax
mov rdi, rdx
mov rsi, rbp
mov r8, qword [rbp + rcx - 8]
mov qword [rdx + rcx - 8], r8
lea ecx, [rax - 1]
mov eax, ecx
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
mov r8, qword [rsp + 0x50]
jmp 0x140002f3a
movzx ecx, byte [rbp]
test al, 2
mov byte [rdx], cl
mov r8, qword [rsp + 0x50]
je 0x140002f3a
mov eax, eax
movzx ecx, word [rbp + rax - 2]
mov word [rdx + rax - 2], cx
mov r8, qword [rsp + 0x50]
jmp 0x140002f3a
movdqa xmm0, xmmword [rsp + 0x60]
movups xmmword [r14 + 0x10], xmm0
jmp 0x140002f8d
lea rax, [rcx + 0x10]
mov dword [rcx + 0x18], 0x6f20746f
movabs rdi, 0x6e20736920444d43
mov qword [rcx], rax
mov eax, 0x6570
mov qword [rcx + 0x10], rdi
mov word [rcx + 0x1c], ax
mov byte [rcx + 0x1e], 0x6e
mov qword [rcx + 8], 0xf
mov byte [rcx + 0x1f], 0
jmp 0x140002f96
mov ecx, dword [rbp]
mov eax, eax
mov dword [rdx], ecx
mov ecx, dword [rbp + rax - 4]
mov dword [rdx + rax - 4], ecx
mov r8, qword [rsp + 0x50]
jmp 0x140002f3a
lea rcx, [0x1400c4122]
call fcn.1400c0760
mov rcx, qword [rsp + 0x50]
mov r12, rax
cmp rcx, qword [rsp + 0x30]
je 0x1400030dc
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, r12
call fcn.14001b780
nop
nop
nop word cs:[rax + rax]
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rsi, [rsp + 0x30]
test rcx, rcx
mov r12, rcx
mov qword [rsp + 0x20], rsi
je 0x140003258
call sub.msvcrt.dll_strlen
cmp rax, 0xf
mov rbx, rax
ja 0x140003228
cmp rax, 1
je 0x1400031f0
test rbx, rbx
mov rax, rsi
jne 0x140003253
mov qword [rsp + 0x28], rbx
lea rdi, [rsp + 0x40]
mov byte [rax + rbx], 0
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call 0x140002b10
mov rcx, qword [rsp + 0x20]
cmp rcx, rsi
je 0x140003173
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x1400f1050], 1
mov rbp, qword [0x1400c93d0]
nop dword [rax + rax]
mov ecx, 0x64
call r13
mov r12, qword [rbp]
mov rdx, rdi
mov rcx, rbx
call 0x140002d30
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.14000f2d0
mov rcx, qword [rsp + 0x20]
cmp rcx, rsi
je 0x140003208
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
cmp byte [0x1400f1050], 0
jne 0x140003190
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movzx eax, byte [r12]
mov byte [rsp + 0x30], al
mov rax, rsi
jmp 0x14000313d
cmp byte [0x1400f1050], 0
jne 0x140003190
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [rax + 1]
call fcn.1400bf690
mov qword [rsp + 0x30], rbx
mov rcx, rax
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x20]
jmp 0x14000313d
mov rcx, rsi
jmp 0x14000323e
lea rcx, [0x1400c40f8]
call fcn.1400c0670
mov rcx, qword [rsp + 0x20]
mov r12, rax
cmp rcx, rsi
je 0x14000327f
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, r12
call fcn.14001b780
jmp 0x140003264