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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400115c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x1400019f9
mov al, 1
jmp 0x140001f29
mov rbx, qword [rsp + 0x60]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rbx + r9*2], 0
jne 0x140001a05
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov r9, 0xffffffffffffffff
inc r9
cmp word [rbx + r9*2], r14w
jne 0x140001a41
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rbp + rdi + 0xa0], r14b
movsxd r10, dword [0x1400180b0]
lea r15, [0x140018020]
mov rdx, qword [r15 + r10*8]
inc r10d
mov rcx, rdx
lea r9, [0x140017090]
sub r9, rdx
mov r8d, 0x15
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, 0x48
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140001ab0
mov byte [rdx + 0x15], r14b
cmp r10d, 0xf
cmovge r10d, r14d
mov dword [0x1400180b0], r10d
lea r8, [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.140006780
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x70]
call fcn.1400057e0
nop
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov edx, 0xf
mov qword [rbp - 0x80], rdx
mov byte [rsp + 0x68], 0
cmp qword [rbp + 0x20], 0
je 0x140001e48
mov bl, 1
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140007680
movsxd r9, dword [0x1400180b0]
mov r10, qword [r15 + r9*8]
inc r9d
mov rcx, r10
lea r8, str.___8_rgg
sub r8, r10
mov edi, 8
mov edx, edi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor al, 0x48
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140001b80
mov byte [r10 + 8], dl
cmp r9d, 0xf
cmovge r9d, r14d
mov dword [0x1400180b0], r9d
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov rdx, r10
call qword [sym.imp.VCRUNTIME140.dll_strstr]
movzx esi, bl
test rax, rax
cmove esi, r14d
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006140
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], rdi
cmovae rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x40]
lea rcx, [0x140017448]
call fcn.140005c10
mov rdx, qword [rsp + 0x58]
cmp rdx, rdi
jb 0x140001ca6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ca1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ca1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec5c
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140007680
movsxd r8, dword [0x1400180b0]
mov r9, qword [r15 + r8*8]
inc r8d
mov rcx, r9
lea rdx, [0x1400170d0]
sub rdx, r9
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor al, 0x48
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x140001cf0
mov byte [r9 + 8], dil
cmp r8d, 0xf
cmovge r8d, r14d
mov dword [0x1400180b0], r8d
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov rdx, r9
call qword [sym.imp.VCRUNTIME140.dll_strstr]
movzx edi, sil
test rax, rax
cmove edi, r14d
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006140
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x40]
lea rcx, [0x140017408]
call fcn.140005c10
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140001e18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec5c
lea rcx, [rbp - 0x60]
call fcn.140006090
test rax, rax
jne 0x140001e42
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, qword [rbp - 0x80]
jmp 0x140001e4b
xor dil, dil
cmp rdx, 0x10
jb 0x140001e86
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec5c
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x60], rax
cmp qword [rbp + 0x20], 0
je 0x140001ef7
mov rax, qword [rbp - 0x48]
lea rcx, [rbp + 0x10]
cmp qword [rax], rcx
jne 0x140001ef7
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x28]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x1c], 0
je 0x140001f06
lea rcx, [rbp - 0x60]
call fcn.140006090
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, dil
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14000e9b0
lea r11, [rsp + 0x2c0]
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