Function at 0x140001a40
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 [0x140019010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x140012c30]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140001a99
mov al, 1
jmp 0x140001fde
mov rbx, qword [rsp + 0x40]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rbx + r9*2], 0
jne 0x140001aa5
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 0x140001ae1
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 r9, dword [0x14001a3e0]
lea r15, [0x14001a3f0]
mov rdx, qword [r15 + r9*8]
inc r9d
mov rcx, rdx
lea r10, [0x140019448]
sub r10, rdx
mov r8d, 0x15
nop word [rax + rax]
movzx eax, byte [r10 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140001b50
mov byte [rdx + 0x15], r14b
cmp r9d, 0xf
cmovge r9d, r14d
mov dword [0x14001a3e0], r9d
lea r8, [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.140007020
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.1400060e0
nop
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x70], r14
mov edx, 0xf
mov qword [rbp + 0x78], rdx
mov byte [rbp + 0x60], 0
cmp qword [rbp - 0x20], 0
je 0x140001ef9
mov bl, 1
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140007ed0
movsxd r9, dword [0x14001a3e0]
mov r10, qword [r15 + r9*8]
inc r9d
mov rcx, r10
lea r8, [0x140019438]
sub r8, r10
mov edi, 8
mov edx, edi
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140001c10
mov byte [r10 + 8], dl
cmp r9d, 0xf
cmovge r9d, r14d
mov dword [0x14001a3e0], r9d
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rcx, qword [rbp + 0x60]
mov rdx, r10
call qword [sym.imp.VCRUNTIME140.dll_strstr]
movzx esi, bl
test rax, rax
cmove esi, r14d
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae r8, qword [rbp + 0x60]
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 [rbp + 0x80], r14
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], 7
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.1400069e0
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], rdi
cmovae rcx, qword [rbp + 0x80]
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae r8, qword [rbp + 0x60]
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, [rbp + 0x80]
lea rcx, [0x140019500]
call fcn.140006570
mov rdx, qword [rbp + 0x98]
cmp rdx, rdi
jb 0x140001d44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140007ed0
movsxd r8, dword [0x14001a3e0]
mov r9, qword [r15 + r8*8]
inc r8d
mov rcx, r9
lea rdx, [0x140019428]
sub rdx, r9
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x140001d90
mov byte [r9 + 8], dil
cmp r8d, 0xf
cmovge r8d, r14d
mov dword [0x14001a3e0], r8d
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rcx, qword [rbp + 0x60]
mov rdx, r9
call qword [sym.imp.VCRUNTIME140.dll_strstr]
movzx edi, sil
test rax, rax
cmove edi, r14d
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae r8, qword [rbp + 0x60]
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 [rbp + 0x80], r14
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], 7
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.1400069e0
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae r8, qword [rbp + 0x60]
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, [rbp + 0x80]
lea rcx, [0x1400194e0]
call fcn.140006570
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140001ec6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ec1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ec1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
lea rcx, [rsp + 0x60]
call fcn.140006930
test rax, rax
jne 0x140001ef3
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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 + 0x78]
jmp 0x140001efc
xor dil, dil
cmp rdx, 0x10
jb 0x140001f36
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x60], rax
cmp qword [rbp - 0x20], 0
je 0x140001fa9
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x30]
cmp qword [rax], rcx
jne 0x140001fa9
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov qword [rax], rcx
mov rax, qword [rbp - 0x68]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x50]
mov dword [rax], edx
cmp byte [rbp - 0x24], 0
je 0x140001fb9
lea rcx, [rsp + 0x60]
call fcn.140006930
lea rcx, [rsp + 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, [rsp + 0x68]
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]
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.14000fe60
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