Function at 0x1800fcf00
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.1802b3d30
test eax, eax
je 0x1800fd1f0
mov qword [rsp + 0x128], rbx
xor edx, edx
mov qword [rsp + 0x130], rsi
mov r8d, 0x280
mov qword [rsp + 0x138], r12
lea r12, [rdi + 0x40]
mov qword [rsp + 0x100], r13
mov rcx, r12
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xf0], r15
call fcn.1802c7550
mov edx, dword [rsp + 0x40]
lea rcx, [rbp - 0x60]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea r15d, [rax + 1]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
call fcn.1800fda80
xor r13d, r13d
lea r14, [rsp + 0x50]
mov esi, r13d
lea rbx, [rdi + 0x60]
mov edx, r15d
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [r14], rax
test rax, rax
je 0x1800fd051
lea rdx, [rbp - 0x60]
mov qword [rbx - 8], rax
mov rcx, rdi
call fcn.1800fd4e0
mov qword [rbx], rax
test rax, rax
je 0x1800fd057
mov ecx, esi
lea r8, [rdi + 0x40]
lea rdx, [rcx + rcx*4]
mov rcx, rdi
shl rdx, 4
add r8, rdx
mov rdx, rax
call fcn.1800fd450
test eax, eax
mov dword [rbx + 0x2c], eax
mov ecx, r13d
sete cl
inc esi
mov dword [rbx + 0x28], ecx
add r14, 8
add rbx, 0x50
cmp esi, 8
jb 0x1800fcfe5
jmp 0x1800fd05a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, r13d
mov rcx, qword [rdi + 0x30]
mov dword [rdi + 0x2c0], r15d
mov r15, qword [rsp + 0xf0]
test rcx, rcx
je 0x1800fd078
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rdi + 0x2c0]
mov r14d, 9
test eax, eax
je 0x1800fd15b
xor r9d, r9d
lea edx, [r14 - 8]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
or r9d, 0xffffffff
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov qword [rdi + 0x38], rax
mov ecx, r14d
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x38]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800fd15b
cmp ebx, 7
ja 0x1800fd15b
mov eax, ebx
lea rbx, [rdi + 0x40]
lea rcx, [rax + rax*4]
shl rcx, 4
add rbx, rcx
cmp dword [rbx + 0x4c], r13d
je 0x1800fd27c
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov dword [rbx + 0x4c], r13d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [rbx + 0x48]
test edx, edx
je 0x1800fd266
sub edx, 1
je 0x1800fd206
cmp edx, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1800fd760
or r9d, 0xffffffff
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x38]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1800fd0d1
mov rsi, qword [rsp + 0x130]
mov ebx, 8
mov dword [rdi + 0x2c0], r13d
add rdi, 0x70
mov r13, qword [rsp + 0x100]
nop dword [rax + rax]
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x1800fd18f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800fd19c
call fcn.1802b8d50
add rdi, 0x50
sub rbx, 1
jne 0x1800fd180
lea rbx, [rsp + 0x50]
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800fd1be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
sub r14, 1
jne 0x1800fd1b0
xor edx, edx
mov r8d, 0x280
mov rcx, r12
call fcn.1802c7550
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1802b85a0
add rsp, 0x108
pop rdi
pop rbp
ret
test eax, eax
jne 0x1800fd255
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1800fd125
mov rcx, qword [rbx + 0x20]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
xor edx, edx
mov dword [rsp + 0x3c], r13d
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1800fd26a
cmp dword [rsp + 0x3c], r13d
jbe 0x1800fd26a
mov eax, dword [rsp + 0x38]
add dword [rbx + 0x38], eax
jmp 0x1800fd27c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1800fd125
add dword [rbx + 0x38], eax
jmp 0x1800fd27c
test eax, eax
jne 0x1800fd275
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800fd125
mov dword [rbx + 0x48], 1
mov ecx, dword [rbx + 0x48]
sub ecx, 1
je 0x1800fd2da
cmp ecx, 1
jne 0x1800fd125
mov r8d, dword [rbx + 0x3c]
lea r9, [rsp + 0x38]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x1800fd2c7
mov ecx, dword [rbx + 0x3c]
cmp dword [rsp + 0x38], ecx
jne 0x1800fd2c7
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1800fd125
call qword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x1800fd125
jmp 0x1800fd3a9
mov rcx, qword [rbx + 0x20]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
xor edx, edx
mov dword [rsp + 0x30], r13d
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
jne 0x1800fd31f
cmp dword [rbx + 0x38], r13d
jne 0x1800fd3fa
mov r8d, 0x800
mov dword [rsp + 0x30], r8d
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + r8]
cmp eax, dword [rbx + 0x28]
jbe 0x1800fd379
mov rsi, qword [rbx + 0x30]
mov ecx, eax
call fcn.1802b8484
mov r8d, dword [rbx + 0x38]
xor edx, edx
add r8d, dword [rsp + 0x30]
mov rcx, rax
mov qword [rbx + 0x30], rax
call fcn.1802c7550
test rsi, rsi
je 0x1800fd36a
mov r8d, dword [rbx + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x30]
call fcn.1802c7100
mov rcx, rsi
call fcn.1802b8d50
mov ecx, dword [rbx + 0x38]
mov r8d, dword [rsp + 0x30]
lea eax, [rcx + r8]
mov dword [rbx + 0x28], eax
mov edx, ecx
lea r9, [rsp + 0x34]
add rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800fd3f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1800fd3c0
cmp eax, 0x3e5
jne 0x1800fd125
mov dword [rbx + 0x4c], 1
jmp 0x1800fd130
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x34]
xor r9d, r9d
mov dword [rsp + 0x34], r13d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, dword [rsp + 0x30]
cmovne ecx, eax
add dword [rbx + 0x38], ecx
mov dword [rsp + 0x34], ecx
jmp 0x1800fd130
mov eax, dword [rsp + 0x34]
add dword [rbx + 0x38], eax
mov eax, dword [rbx + 0x38]
cmp eax, 5
jb 0x1800fd125
mov rdx, qword [rbx + 0x30]
mov rcx, rdi
cmp dword [rdx], eax
jne 0x1800fd128
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], r13
call fcn.1800fdf70
test eax, eax
je 0x1800fd125
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800fd125
mov eax, dword [rcx]
mov dword [rbx + 0x3c], eax
mov qword [rbx + 0x40], rcx
mov dword [rbx + 0x48], 2
jmp 0x1800fd130