Function at 0x1400135f0
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 0x140013a15
mov rcx, qword gs:[0x58]
mov eax, dword [0x140062c10]
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 0x140013767
or eax, 1
mov dword [rcx + r9], eax
lea rcx, [r8 + r9]
movups xmm0, xmmword [0x14004acc8]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [0x14004acd8]
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 0x140013700
mov r8d, 0x10
mov r9, qword [rbp + 0x1f0]
lea rsi, [r8 + r9]
cmp byte [rsi + 9], bl
jne 0x140013791
mov edx, ebx
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx + 0x77]
xor byte [rcx + rsi + 0xa], al
inc edx
cmp edx, 0xa
jb 0x140013780
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 0x1400137b7
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140001560
nop
inc rdi
cmp byte [rsi + rdi + 0xa], 0
jne 0x1400137d2
mov r8, rdi
lea rdx, [rsi + 0xa]
lea rcx, [rsp + 0x30]
call fcn.140012e40
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 0x14001385b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013856
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013a3c
call fcn.14001d3f0
movdqa xmm0, xmmword [0x14004b650]
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 0x140013977
lea rcx, [rbp + 0x1f0]
call fcn.140005f60
cmp byte [rax + 9], 0
jne 0x140013901
nop dword [rax]
nop word [rax + rax]
movsxd rdx, ebx
lea ecx, [rbx + 0x77]
xor byte [rdx + rax + 0xa], cl
inc ebx
cmp ebx, 0x10
jb 0x1400138f0
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.140018710
movzx edx, al
mov rcx, rbx
call fcn.140016e40
mov rcx, rbx
call fcn.140014e60
lea rcx, [rsp + 0x78]
call fcn.1400134e0
test rax, rax
jne 0x140013977
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 0x140013a42
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.140003ea0
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.14001b214
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140013a15
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013a36
call fcn.14001d3f0
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.1400240ec
nop
call fcn.1400240ec
nop
test dl, 4
je 0x140013a50
lea rbx, str.ios_base::badbit_set
jmp 0x140013a65
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.140016ab0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140003ba0
lea rdx, [0x14005f5c8]
lea rcx, [rbp + 0x80]
call fcn.14001e4d0
int3