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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x18], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor r12d, r12d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov r14, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400012b0
mov r14, qword [rcx]
mov rsi, qword [rcx + 0x10]
movabs rbx, 0x7fffffffffffffff
cmp rsi, rbx
ja 0x14000156b
cmp rsi, 0x10
jae 0x1400012e7
mov qword [rbp - 0x30], rsi
mov eax, 0xf
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x40], xmm0
jmp 0x140001384
mov qword [rbp - 0x28], 0xf
mov rax, rsi
or rax, 0xf
cmp rax, rbx
jbe 0x14000132b
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001910
mov rcx, rax
test rax, rax
je 0x1400013f6
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001365
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001356
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001571
jmp 0x140001309
test rcx, rcx
je 0x140001362
call fcn.140001910
jmp 0x140001365
mov rax, r12
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rbx
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x40]
cmp rax, 0x10
cmovae rcx, qword [rbp - 0x40]
lea rdx, [0x1400033b0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140001402
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000194c
mov dword [rbp - 0x20], esi
mov edx, esi
lea rcx, str._i__n
call fcn.140001010
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001420
mov rcx, qword [rdi]
lea rdx, [0x1400033bc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
movsxd rcx, dword [rbp - 0x20]
test ecx, ecx
jle 0x1400014fa
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
movsxd r8, dword [rbp - 0x20]
mov r9, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8d, r12d
cmp dword [rbp - 0x20], r12d
jle 0x140001497
mov rdx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [rax + r15]
mov byte [rdx], cl
inc r8d
lea rdx, [rdx + 1]
cmp r8d, dword [rbp - 0x20]
jl 0x140001480
lea rdx, [0x1400033c0]
lea rcx, str.data0.dat
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
mov r9, rax
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
movsxd r8, dword [rbp - 0x20]
mov r9, rbx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, rbx
mov edx, 1
mov r8d, 0x100
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001530
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000152b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001564
mov rcx, r8
call fcn.14000194c
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001210
nop
call fcn.140001170
int3