Function at 0x140005630
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 - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14004c060]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400374a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140005a46
mov rdi, qword [rsp + 0x78]
mov rbx, 0xffffffffffffffff
mov r9, rbx
inc r9
cmp word [rdi + r9*2], 0
jne 0x140005695
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, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
mov r9, rbx
nop dword [rax]
inc r9
cmp word [rdi + r9*2], r14w
jne 0x1400056d0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rbp + rsi + 0xb0], r14b
lea rax, [rbp + 0xb0]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140005716
lea rdx, [rbp + 0xb0]
lea rdi, [0x14004d048]
mov rcx, rdi
call fcn.140007d70
movsxd r8, dword [0x14004effc]
lea rsi, [0x14004ef70]
mov r9, qword [rsi + r8*8]
inc r8d
mov rcx, r9
lea r10, [0x14004cd48]
sub r10, r9
mov edx, 0x11
nop dword [rax]
movzx eax, byte [r10 + rcx]
xor al, 0x7b
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140005760
mov byte [r9 + 0x11], r14b
cmp r8d, 0xf
cmovge r8d, r14d
mov dword [0x14004effc], r8d
inc rbx
cmp byte [r9 + rbx], r14b
jne 0x140005786
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.140007ed0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.140014ea0
cmp qword [0x14004d060], 0x10
cmovae rdi, qword [0x14004d048]
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140006e70
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
mov edx, 0xf
mov qword [rbp - 0x68], rdx
mov byte [rbp - 0x80], 0
cmp qword [rbp + 0x30], 0
je 0x14000599f
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x20]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.1400081b0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx ebx, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000586f
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14000586f
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
movzx r8d, bl
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140009390
movsxd r9, dword [0x14004effc]
mov r10, qword [rsi + r9*8]
inc r9d
mov rcx, r10
lea r8, [0x14004cc78]
sub r8, r10
mov ebx, 6
mov edx, ebx
movzx eax, byte [r8 + rcx]
xor al, 0x7b
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400058a2
mov byte [r10 + 6], dl
cmp r9d, 0xf
cmovge r9d, r14d
mov dword [0x14004effc], r9d
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
mov rdx, r10
call fcn.14001431c
mov edi, 2
test rax, rax
jne 0x140005947
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14004efe8], rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140005947
lea rcx, [rbp - 0x50]
call fcn.1400077b0
test rax, rax
jne 0x140005947
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x18], 0
cmovne eax, edi
or eax, dword [rbp + rcx - 0x50]
and eax, 0x17
mov dword [rbp + rcx - 0x50], eax
and eax, dword [rbp + rcx - 0x4c]
jne 0x140005a78
lea rcx, [rbp - 0x50]
call fcn.1400077b0
test rax, rax
jne 0x14000597b
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x18], 0
cmovne ebx, edi
or ebx, dword [rbp + rcx - 0x50]
and ebx, 0x17
mov dword [rbp + rcx - 0x50], ebx
and ebx, dword [rbp + rcx - 0x4c]
jne 0x140005ac3
mov dword [0x14004ef64], 1
mov dword [0x14004f074], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14004eff8], eax
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400059d6
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a72
call fcn.140012590
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.140006bc0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x64], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.140011798
nop
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140012570
lea r11, [rsp + 0x2d0]
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
call fcn.14001c708
nop
test al, 4
je 0x140005a85
lea rdx, str.ios_base::badbit_set
jmp 0x140005a9a
test dil, al
lea rdx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001360
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.1400021f0
lea rdx, [0x14004b0c8]
lea rcx, [rsp + 0x50]
call fcn.140014598
int3
test bl, 4
je 0x140005ad1
lea rdx, str.ios_base::badbit_set
jmp 0x140005ae6
test dil, bl
lea rdx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001360
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.1400021f0
lea rdx, [0x14004b0c8]
lea rcx, [rsp + 0x50]
call fcn.140014598
int3