Function at 0x140001230
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140005020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movsd xmm0, qword [str.LIO]
movsd qword [rbp - 9], xmm0
movzx eax, byte [0x1400033a8]
mov byte [rbp - 9], 0x74
xor byte [rbp - 8], 0x39
xor byte [rbp - 7], 0x3a
xor byte [rbp - 6], 0x3b
xor byte [rbp - 5], 0x3c
xor byte [rbp - 4], 0x3d
xor byte [rbp - 3], 0x3e
xor byte [rbp - 2], 0x3f
xor al, 0x40
mov byte [rbp - 1], al
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xor edi, edi
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
lea rax, [rbp - 9]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1400012b0
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.1400014f0
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000132b
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x47]
mov r8d, 7
lea rdx, str.fsafsaf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140001369
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001364
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001364
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400017d8
lea rax, [rbp + 0x27]
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x3f], rdi
mov r8d, 7
lea rdx, str.xxx.txt
lea rcx, [rbp + 0x27]
call fcn.1400014f0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
mov r8d, 8
lea rdx, str.test.txt
lea rcx, [rbp + 7]
call fcn.1400014f0
nop
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rdx, qword [rbp + 0x27]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140001416
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001411
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001458
call fcn.1400017d8
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x140001464
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000145f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000145f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400017d8
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001600
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret