Function at 0x140002980
Capabilities:
Encode data using xor
Get common file path
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov rax, qword [0x140131040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r14d, r14d
mov eax, dword [str.tSHYOG_]
mov dword [rsp + 0x40], eax
movzx eax, word [0x14010d1a4]
mov word [rsp + 0x44], ax
mov al, byte [0x14010d1a6]
mov byte [rsp + 0x46], al
mov r8d, r14d
lea r9, [rsp + 0x40]
lea r12d, [r14 + 7]
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
mov al, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
inc r9
cmp r8d, r12d
jl 0x1400029e6
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140002a30
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140004c60
nop
lea rcx, [rbp - 0x40]
mov esi, 0xf
cmp qword [rbp - 0x28], rsi
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0xb]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r15d, 0x1000
xorps xmm0, xmm0
test eax, eax
js 0x140002b2f
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x20]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140002a9d
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.140004980
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], r12
cmova rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140004600
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, r12
jbe 0x140002b28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002b23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
mov rcx, qword [rsp + 0x70]
jmp 0x140002b46
movups xmmword [rsp + 0x60], xmm0
mov rcx, r14
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x60], r14b
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, r12
jb 0x140002fb9
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
lea r13, [0x14010bfa0]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.1400050f8
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], rsi
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140005a68
nop
mov dword [rsp + 0x40], r14d
lea rax, [0x1401310d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140002808
mov dil, al
cmp dword [rsp + 0x40], r14d
jne 0x140002fbf
lea rcx, [rbp - 0x60]
call fcn.140003b0c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, rsi
jbe 0x140002c34
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140002c2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
test dil, dil
jne 0x140002d10
mov rax, rbx
mov rcx, qword [rsp + 0x70]
sub rax, rcx
cmp rax, r12
jb 0x140002fd5
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.1400050f8
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005a68
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], r12
cmova rcx, qword [rbp - 0x80]
call fcn.1400e9328
shr rax, 0x20
test eax, eax
jne 0x140002fdb
lea rcx, [rbp - 0x80]
call fcn.140003b0c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, rsi
jbe 0x140002d10
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002d0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
mov rax, rbx
mov rcx, qword [rsp + 0x70]
sub rax, rcx
cmp rax, rsi
jb 0x140002fee
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], rsi
lea r13, str.Miseryconfigs
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.1400050f8
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005a68
nop
mov dword [rsp + 0x40], r14d
lea rax, [0x1401310d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140002808
mov dil, al
cmp dword [rsp + 0x40], r14d
jne 0x140002ff4
lea rcx, [rbp - 0x80]
call fcn.140003b0c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, rsi
jbe 0x140002df9
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002df4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002df4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
test dil, dil
jne 0x140002ed2
mov rax, qword [rsp + 0x70]
sub rbx, rax
cmp rbx, rsi
jb 0x14000300a
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.1400050f8
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], rsi
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140005a68
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], r12
cmova rcx, qword [rbp - 0x60]
call fcn.1400e9328
shr rax, 0x20
test eax, eax
jne 0x140002fa6
lea rcx, [rbp - 0x60]
call fcn.140003b0c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, rsi
jbe 0x140002ed2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140002ecd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ecd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
call fcn.14000d25c
lea rcx, str.Misery___Press_enter_to_close_cheat
call fcn.14000176c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, rsi
jbe 0x140002f2c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002f27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x60], r14b
mov rdx, qword [rbp - 0x28]
cmp rdx, rsi
jbe 0x140002f74
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002f6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7de4
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400e7d80
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.1400026d4
nop
call fcn.140001978
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.140002734
nop
call fcn.140001978
nop
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.create_directory
call fcn.1400026d4
nop
call fcn.140001978
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.140002734
nop
call fcn.140001978
int3