Function at 0x140027cf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push rbp
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
invalid
adc byte [rax], al
invalid
call fcn.14002d5e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0xfe8], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
shr al, cl
invalid
invalid
add byte [rax], al
add byte [rdi], cl
push rdi
test byte [rbp + rcx*4 - 0x4b], 0xfc
mov ch, 0xfc
sldt word [rax]
lea rbx, [0x14001e500]
lea r15, [rbp + 0xfb0]
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x140037ab0]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0xff0], r12
movsd dword [rdi], dword [rsi]
invalid
sldt word [rax]
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, r12
mov rdx, r13
mov r8d, 0x1000
mov eax, 0x1000
mov r9, r15
call rax
test eax, eax
je 0x140027e10
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je case.0x14001c2df.152
movsxd rax, dword [rbp + 0x1000]
test rax, rax
je 0x140027e50
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
loope 0x140027e03
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
mov eax, dword [rbp + 0x1004]
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 0
jmp 0x140027ea4
mov rax, qword [rbp + 0x1008]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbp + 0x1010]
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd0], 0
jne 0x14002813c
mov r12, qword [rbp + 0xfd8]
test r12, r12
je 0x140028108
cmp r12, 0x1000
ja 0x14002816c
mov rsi, r13
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0xfe8]
mov r9, r15
call qword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x1400280dc
invalid
mov eax, dword [rcx]
add dword [rax], eax
invalid
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140027f60
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400280e2
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je case.0x14001e0b2.72
jbe 0x140027f00
jmp 0x140028158
mov r12, qword [rbp + 0xff0]
mov r13, rsi
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x140037ab0]
jmp 0x140027d75
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
lea rcx, [rbp + 0x1010]
call fcn.140013cb0
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0xff0]
call rsi
mov rcx, qword [rbp + 0xfe8]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfd8]
call fcn.140013cb0
jmp 0x140028108
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14002e3b0
jmp 0x140028180
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14002e130
ud2