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

Disassembly:
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
lea r9, [rbp + 0x190]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400105b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14000c2b6
mov rcx, qword [rbp + 0x190]
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], rdi
mov qword [rsp + 0x278], r14
mov qword [rsp + 0x270], r15
call fcn.14000f130
mov rdi, 0xffffffffffffffff
lea rax, [rbp + 0x60]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x14000bfb3
lea rsi, [0x1400154e0]
mov rcx, rsi
lea rdx, [rbp + 0x60]
call fcn.140002dc0
movsxd r10, dword [0x140015ba0]
lea r15, [0x140015b10]
lea r8, [0x140015210]
mov edx, 0x12
mov r9, qword [r15 + r10*8]
inc r10d
sub r8, r9
mov rcx, r9
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
lea rcx, [rcx + 1]
xor al, 0x48
mov byte [rcx - 1], al
sub rdx, 1
jne 0x14000c000
xor r14d, r14d
mov byte [r9 + 0x12], dl
cmp r10d, 0xf
cmovge r10d, r14d
mov dword [0x140015ba0], r10d
nop word [rax + rax]
inc rdi
cmp byte [r9 + rdi], r14b
jne 0x14000c030
mov rdx, qword [0x1400154f8]
mov rcx, qword [0x1400154f0]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14000c093
mov qword [rsp + 0x298], rbx
lea rax, [rcx + rdi]
cmp rdx, 0x10
mov qword [0x1400154f0], rax
mov rbx, rsi
mov r8, rdi
cmovae rbx, qword [0x1400154e0]
mov rdx, r9
add rbx, rcx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], r14b
mov rbx, qword [rsp + 0x298]
jmp 0x14000c0a0
mov rdx, rdi
mov qword [rsp + 0x20], rdi
call fcn.140003990
cmp qword [0x1400154f8], 0x10
lea rcx, [rsp + 0x50]
cmovae rsi, qword [0x1400154e0]
mov rdx, rsi
call fcn.140002330
mov rax, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2a0]
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]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
cmp qword [rbp - 0x20], r14
je 0x14000c289
mov rax, qword [rsp + 0x50]
mov dl, 0xa
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
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 + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140003db0
movsxd r9, dword [0x140015ba0]
lea r8, [0x140015074]
mov edx, 6
mov r10, qword [r15 + r9*8]
inc r9d
sub r8, r10
mov rcx, r10
nop
movzx eax, byte [r8 + rcx]
lea rcx, [rcx + 1]
xor al, 0x48
mov byte [rcx - 1], al
sub rdx, 1
jne 0x14000c160
cmp r9d, 0xf
mov byte [r10 + 6], r14b
lea rcx, [rsp + 0x30]
mov rdx, r10
cmovge r9d, r14d
cmp qword [rsp + 0x48], 0x10
mov dword [0x140015ba0], r9d
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14000c1fc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, rax
mov qword [0x140015b08], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000c1fc
lea rcx, [rsp + 0x60]
call fcn.140002a60
test rax, rax
jne 0x14000c1fc
mov rax, qword [rsp + 0x50]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rsp + 0x60]
call fcn.140002a60
test rax, rax
jne 0x14000c229
mov rax, qword [rsp + 0x50]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [0x140015af8], 1
mov dword [0x140015bd0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x48]
mov dword [0x140015afc], eax
cmp rdx, 0x10
jb 0x14000c289
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c284
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c284
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b3f0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r14b
call fcn.1400015c0
mov r14, qword [rsp + 0x278]
mov r15, qword [rsp + 0x270]
add rsp, 0x280
pop rbp
ret