Function at 0x1401507c0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov byte [rsp + 0x20], dl
mov rbx, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdi, [rbx + 0x28]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140150819
mov rdx, qword [rdi]
lea r8, [0x1402a2984]
lea rcx, [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
cmp qword [rsp + 0x28], 0
je 0x140150a3b
add rbx, 8
mov r15, qword [rbx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x10
jb 0x140150a6b
mov r13, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140150865
mov r13, qword [rbx]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea r12, [r15 + 0x10]
mov esi, SafeArrayGetLBound
lea r14, [rsp + 0x60]
cmp r12, rsi
jbe 0x1401508b7
mov rsi, r12
or rsi, 0xf
cmp rsi, rcx
jbe 0x14015089a
mov rsi, rcx
jmp 0x1401508a6
mov eax, SafeArrayPutElement
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
call fcn.1400d1570
mov r14, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rsi
movups xmm0, xmmword [str._encryptDBFast_]
movups xmmword [r14], xmm0
lea rcx, [r14 + 0x10]
mov r8, r15
mov rdx, r13
call fcn.14021bb20
mov byte [r14 + r12], 0
mov r8d, 6
lea rdx, str._exist
lea rcx, [rsp + 0x60]
call fcn.1400e7f00
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], cl
lea rcx, [rsp + 0x38]
call fcn.14017eab0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14015096f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015096a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140150a65
call fcn.1401e3784
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14015097c
mov r8, qword [rdi]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
lea r8, str..temp
mov edx, 0x104
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
lea r8, [0x1402a29b4]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
cmp eax, 0xffffffff
je 0x1401509ed
movzx esi, byte [rsp + 0x20]
nop dword [rax + rax]
mov ecx, esi
xor ecx, eax
mov rdx, qword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
cmp eax, 0xffffffff
jne 0x1401509d0
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
cmp qword [rdi + 0x18], 0x10
jb 0x140150a0b
mov rdi, qword [rdi]
mov rcx, rdi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140150a20
mov rcx, qword [rbx]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
cmp qword [rbx + 0x18], 0x10
jb 0x140150a2f
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1401e3ce0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call fcn.1400e7e40
int3