Function at 0x140013a30
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor ebx, ebx
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140013e55
mov rcx, qword gs:[0x58]
mov eax, dword [0x14005fc10]
mov r9, qword [rcx + rax*8]
mov qword [rbp + 0x1f0], r9
mov ecx, 0x24
mov eax, dword [rcx + r9]
mov r8d, 0x10
test al, 1
jne 0x140013ba7
or eax, 1
mov dword [rcx + r9], eax
lea rcx, [r8 + r9]
movups xmm0, xmmword [0x140047940]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [0x140047950]
mov dword [rsp + 0x40], eax
mov qword [rcx], rbx
mov word [rcx + 8], bx
xor eax, eax
mov qword [rcx + 0xa], rax
mov word [rcx + 0x12], ax
mov edx, ebx
lea rax, [rcx + 0xb]
lea r10, [rsp + 0x3a]
sub r10, rcx
lea r11, [rsp + 0x30]
sub r11, rcx
lea rdi, [rsp + 0x31]
sub rdi, rcx
lea rsi, [rsp + 0x32]
sub rsi, rcx
lea r14, [rsp + 0x33]
sub r14, rcx
lea r15, [rsp + 0x34]
sub r15, rcx
lea r12, [rsp + 0x35]
sub r12, rcx
lea r13, [rsp + 0x36]
sub r13, rcx
lea r9, [rsp + 0x37]
sub r9, rcx
lea r8, [rsp + 0x38]
sub r8, rcx
nop word [rax + rax]
movzx ecx, byte [r10 + rax - 0xb]
mov byte [rax - 1], cl
movzx ecx, byte [r11 + rax]
mov byte [rax], cl
movzx ecx, byte [rdi + rax]
mov byte [rax + 1], cl
movzx ecx, byte [rsi + rax]
mov byte [rax + 2], cl
movzx ecx, byte [r14 + rax]
mov byte [rax + 3], cl
movzx ecx, byte [r15 + rax]
mov byte [rax + 4], cl
movzx ecx, byte [r12 + rax]
mov byte [rax + 5], cl
movzx ecx, byte [rax + r13]
mov byte [rax + 6], cl
movzx ecx, byte [rax + r9]
mov byte [rax + 7], cl
movzx ecx, byte [rax + r8]
mov byte [rax + 8], cl
add edx, 0xa
lea rax, [rax + 0xa]
cmp edx, 0xa
jb 0x140013b40
mov r8d, 0x10
mov r9, qword [rbp + 0x1f0]
lea rsi, [r8 + r9]
cmp byte [rsi + 9], bl
jne 0x140013bd1
mov edx, ebx
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx + 0x79]
xor byte [rcx + rsi + 0xa], al
inc edx
cmp edx, 0xa
jb 0x140013bc0
mov byte [rsi + 9], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0xb0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x140013bf7
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140001560
nop
inc rdi
cmp byte [rsi + rdi + 0xa], 0
jne 0x140013c12
mov r8, rdi
lea rdx, [rsi + 0xa]
lea rcx, [rsp + 0x30]
call fcn.140013280
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140013c9b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013e7c
call fcn.14001d7d0
movdqa xmm0, xmmword [0x140048390]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 1
mov edi, 2
lea r9d, [rdi + 0x3e]
mov r8d, edi
lea rcx, [rsp + 0x70]
call fcn.140002fe0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp - 8], 0
je 0x140013db7
lea rcx, [rbp + 0x1f0]
call fcn.140005ea0
cmp byte [rax + 9], 0
jne 0x140013d41
nop dword [rax]
nop word [rax + rax]
movsxd rdx, ebx
lea ecx, [rbx + 0x79]
xor byte [rdx + rax + 0xa], cl
inc ebx
cmp ebx, 0x10
jb 0x140013d30
mov byte [rax + 9], 1
lea rdx, [rax + 0xa]
lea rcx, [rsp + 0x70]
call fcn.140001240
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140018af0
movzx edx, al
mov rcx, rbx
call fcn.140017220
mov rcx, rbx
call fcn.1400152a0
lea rcx, [rsp + 0x78]
call fcn.140013920
test rax, rax
jne 0x140013db7
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edi
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x140013e82
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400040e0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.14001b5f4
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140013e55
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013e50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013e76
call fcn.14001d7d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400244cc
nop
call fcn.1400244cc
nop
test dl, 4
je 0x140013e90
lea rbx, str.ios_base::badbit_set
jmp 0x140013ea5
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140016e90
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140003de0
lea rdx, [0x14005c370]
lea rcx, [rbp + 0x80]
call fcn.14001e8b0
int3