Function at 0x1400029a0
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 - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14004c060]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400374a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x1400029f8
mov al, 1
jmp 0x140002f8c
mov rbx, qword [rbp - 0x78]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rbx + r9*2], 0
jne 0x140002a03
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
nop
inc r9
cmp word [rbx + r9*2], r14w
jne 0x140002a40
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0xc0]
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 + 0xc0], r14b
movsxd r10, dword [0x14004effc]
lea r15, [0x14004ef70]
mov rdx, qword [r15 + r10*8]
inc r10d
mov rcx, rdx
lea r9, str._b_
sub r9, rdx
mov r8d, 0x11
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, 0x7b
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140002ab0
mov byte [rdx + 0x11], r14b
cmp r10d, 0xf
cmovge r10d, r14d
mov dword [0x14004effc], r10d
lea r8, [rbp + 0xc0]
lea rcx, [rbp + 0xc0]
call fcn.1400082f0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x50]
call fcn.140014ea0
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x50]
call fcn.140006e70
nop
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov edx, 0xf
mov qword [rbp - 0x58], rdx
mov byte [rbp - 0x70], 0
cmp qword [rbp + 0x40], 0
je 0x140002ed5
mov sil, 1
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x10]
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 0x140002b8d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140002b8d
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
movzx r8d, bl
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140009390
movsxd r9, dword [0x14004effc]
mov r10, qword [r15 + r9*8]
inc r9d
mov rcx, r10
lea r8, [0x14004cc80]
sub r8, r10
mov edi, 8
mov edx, edi
movzx eax, byte [r8 + rcx]
xor al, 0x7b
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140002bc0
mov byte [r10 + 8], dl
cmp r9d, 0xf
cmovge r9d, r14d
mov dword [0x14004effc], r9d
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rcx, qword [rbp - 0x70]
mov rdx, r10
call fcn.14001431c
test rax, rax
cmove esi, r14d
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
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
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140007a50
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], rdi
cmovae rcx, qword [rsp + 0x40]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
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, [0x14004d008]
call fcn.140007200
mov rdx, qword [rsp + 0x58]
cmp rdx, rdi
jb 0x140002cdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fbe
call fcn.140012590
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x10]
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 0x140002d3c
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x140002d3c
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
movzx r8d, bl
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140009390
movsxd r8, dword [0x14004effc]
mov r9, qword [r15 + r8*8]
inc r8d
mov rcx, r9
lea rdx, [0x14004cf28]
sub rdx, r9
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor al, 0x7b
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x140002d70
mov byte [r9 + 8], dil
cmp r8d, 0xf
cmovge r8d, r14d
mov dword [0x14004effc], r8d
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rcx, qword [rbp - 0x70]
mov rdx, r9
call fcn.14001431c
movzx edi, sil
test rax, rax
cmove edi, r14d
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
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
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140007a50
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
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, [0x14004cfc8]
call fcn.140007200
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140002e91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fc4
call fcn.140012590
lea rcx, [rbp - 0x40]
call fcn.1400077b0
test rax, rax
jne 0x140002ecf
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 8], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x40]
and eax, 0x17
mov dword [rbp + rcx - 0x40], eax
and eax, dword [rbp + rcx - 0x3c]
jne 0x140002fca
mov rdx, qword [rbp - 0x58]
jmp 0x140002ed8
xor dil, dil
cmp rdx, 0x10
jb 0x140002f0f
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fb8
call fcn.140012590
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.140006bc0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx - 0x54], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
call fcn.140011798
nop
movzx eax, dil
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140012570
lea r11, [rsp + 0x2e0]
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
call fcn.14001c708
int3
call fcn.14001c708
int3
test al, 4
je 0x140002fd7
lea rdx, str.ios_base::badbit_set
jmp 0x140002feb
test dl, 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 + 0x60]
call fcn.1400021f0
lea rdx, [0x14004b0c8]
lea rcx, [rsp + 0x60]
call fcn.140014598
int3