Function at 0x140018778
Capabilities:
Encode data using xor
Get common file path
Get program files directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov rax, qword [0x14006f9b8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor esi, esi
lea r9, [rsp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
lea rcx, [0x140059740]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [0x140070a38], eax
lea edi, [rsi + 7]
lea r14d, [rsi + 0xf]
mov r15d, 0x1000
test eax, eax
js 0x140018892
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x50], si
call fcn.140037540
mov r8, rax
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.14000e08c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14002df78
mov rdx, rax
lea rcx, [0x14006f518]
call fcn.140005ff4
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018845
mov rcx, qword [rsp + 0x30]
inc rdx
call fcn.140003894
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x30], sil
cmp rdx, 8
jb 0x140018892
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r15
jb 0x14001888d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018b83
call fcn.140030aa4
lea rcx, [rsp + 0x70]
call fcn.140017324
mov rdx, rax
lea rcx, [0x14006f538]
call fcn.140005ff4
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400188c2
mov rcx, qword [rsp + 0x70]
inc rdx
call fcn.140003894
lea rcx, [rsp + 0x20]
call fcn.140007d2c
cmp byte [rax + 4], sil
je 0x1400188e7
mov rcx, rax
mov r8d, 5
xor byte [rcx], 0x4d
inc rcx
sub r8, 1
jne 0x1400188db
mov rdx, rax
mov qword [rbp - 0x60], rsi
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x70], sil
call fcn.14000e010
lea r8, [0x140058ce8]
lea rdx, [0x14006f538]
lea rcx, [rsp + 0x70]
call fcn.1400035d0
mov rdx, rax
lea r8, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003430
mov rdx, rax
lea rcx, [0x14006f558]
call fcn.140005ff4
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001894f
mov rcx, qword [rsp + 0x30]
inc rdx
call fcn.140003894
mov rdx, qword [rbp - 0x78]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x30], sil
cmp rdx, 0x10
jb 0x140018975
mov rcx, qword [rsp + 0x70]
inc rdx
call fcn.140003894
xor r9d, r9d
lea rdx, [rbp - 0x50]
xor ecx, ecx
lea r8d, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140018aee
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x30], si
call fcn.140037540
mov r8, rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e08c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14002df78
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140018a06
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r15
jb 0x140018a01
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018b89
call fcn.140030aa4
lea rdx, [rsp + 0x70]
lea rcx, [0x14006f598]
call fcn.140006060
lea rcx, [rsp + 0x20]
call fcn.1400088a0
cmp byte [rax + 6], sil
je 0x140018a36
mov rcx, rax
xor byte [rcx], 0x4d
inc rcx
sub rdi, 1
jne 0x140018a2a
mov rdx, rax
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x50], sil
call fcn.14000e010
lea r8, [rsp + 0x50]
lea rdx, [0x14006f598]
lea rcx, [rsp + 0x30]
call fcn.14000356c
mov rdx, rax
lea rcx, [0x14006f5b8]
call fcn.140005ff4
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018a8f
mov rcx, qword [rsp + 0x30]
inc rdx
call fcn.140003894
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140018ac8
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, r15
jb 0x140018ac3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018b8f
call fcn.140030aa4
mov rdx, qword [rbp - 0x78]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x50], sil
cmp rdx, 0x10
jb 0x140018aee
mov rcx, qword [rsp + 0x70]
inc rdx
call fcn.140003894
lea rcx, [rsp + 0x70]
call fcn.14001b6cc
mov rdx, rax
lea rcx, [0x14006f578]
call fcn.140005ff4
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140018b1e
mov rcx, qword [rsp + 0x70]
inc rdx
call fcn.140003894
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140018b51
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, r15
jb 0x140018b4c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018b7d
call fcn.140030aa4
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140031310
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140036e5c
int3
call fcn.140036e5c
int3
call fcn.140036e5c
int3
call fcn.140036e5c
int3