Function at 0x140002f0c
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0xe8]
mov edx, 0x2e
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_strrchr
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x140002f74
mov rax, qword [rbp + 0xb8]
lea rdx, str..enc
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140002f7e
mov eax, 0
jmp 0x14000326e
lea rax, [rbp - 0x60]
mov r8d, 0xff
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rbp + 0xb8]
sub rax, qword [rbp + 0xe8]
mov rcx, rax
mov rdx, qword [rbp + 0xe8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
test eax, eax
setne al
test al, al
je 0x140002fe2
mov eax, 0
jmp 0x14000326e
lea rax, [rbp - 0x60]
lea rdx, [0x14001e1c5]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbp + 0xb0], rax
jmp 0x1400030dd
mov ecx, 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0xa0], rax
mov ecx, 0x10000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdx, rax
mov rax, qword [rbp + 0xa0]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rdx, eax
mov rax, qword [rbp + 0xa0]
mov qword [rax], rdx
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0xb0]
mov r9, rdx
mov r8d, 0x10000
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rdx, qword [rbp + 0xa0]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp + 0xa0]
mov dword [rax + 0x18], 1
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400030bb
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 8]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400030dd
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x40]
mov rdx, qword [rbp + 0xa0]
mov rcx, rax
call fcn.14000366c
add qword [rbp + 0xc8], 1
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
sete al
test al, al
jne 0x140003001
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rax, [rbp - 0x60]
lea rdx, [0x14001e1da]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov dword [rbp + 0xc4], 0
jmp 0x14000322f
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x48]
mov rcx, rax
call fcn.140003796
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + 0x10]
add rax, rdx
mov rdx, qword [rbp + 0xc8]
sub rdx, 1
shl rdx, 0x10
cmp rdx, rax
jae 0x14000318e
mov rax, qword [rbp + 0xa8]
lea rdx, [rax + 0x10]
mov rax, qword [rbp + 0xa8]
add rax, 8
mov rcx, rax
call fcn.1400025f4
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov edx, eax
mov rax, qword [rbp + 0xb0]
mov r8d, 0
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0xb0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rdx, rax
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + 0x10]
cmp rdx, rax
setne al
test al, al
je 0x140003206
lea rax, str.fwrite
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + 8]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0xc4]
cdqe
cmp rax, qword [rbp + 0xc8]
jb 0x14000312a
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rax, [rbp - 0x60]
mov rdx, rax
lea rax, str._decrypted:__s_n
mov rcx, rax
call fcn.1400193a0
mov eax, 1
add rsp, 0x150
pop rbp
ret