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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
adc byte [rax], al
invalid
call fcn.140031e00
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
call fcn.140040d60
xorps xmm6, xmm6
lea r14, [rbp + 0xffc]
lea rbx, [0x14001b8c0]
lea r15, [rbp + 0xfb0]
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x14004e0dc]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0xff0], r12
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 r9, r15
call rax
test eax, eax
je 0x1400252c0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140025270
movsxd rax, dword [rbp + 0x1000]
test rax, rax
je 0x140025300
outsd dx, dword [rsi]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
adc byte [rax], dl
add byte [rax], al
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
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
add byte [rax], al
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 case.0x140019ecd.95
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 0x1400255ec
mov r12, qword [rbp + 0xfd8]
test r12, r12
je 0x1400255b8
test byte [rdx], ch
add al, byte [rax]
invalid
cmp r12, 0x1000
ja 0x14002561c
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 0x14002558c
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je case.0x140019f46.84
invalid
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x140025592
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
invalid
je case.0x14001b552.72
jbe 0x1400253b0
jmp 0x140025608
mov r12, qword [rbp + 0xff0]
mov r13, rsi
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x14004e0dc]
jmp case.0x140019775.213
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.140011b70
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.140011b70
jmp 0x1400255b8
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140041590
jmp 0x140025630
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140041310
ud2