Function at 0x140002900
Capabilities:
Encode data using xor
Execute command
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 - 0x248]
sub rsp, 0x320
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor esi, esi
lea rcx, str.COLOR_0B
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movsd xmm0, qword [str.j_RRIi2_B]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x1400f3018]
mov word [rsp + 0x48], ax
lea r12d, [rsi + 0xa]
cmp byte [0x1400f3019], sil
je 0x1400029a4
mov r8d, esi
lea r9, [rsp + 0x40]
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
inc r9
cmp r8d, r12d
jl 0x140002975
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], sil
jne 0x1400029bf
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140005174
nop
lea rcx, [rbp - 0x40]
mov r14d, 0xf
cmp qword [rbp - 0x28], r14
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140101330]
movdqu xmmword [rbp - 0x10], xmm1
mov byte [rbp - 0x20], sil
lea rdx, str.Enter_key:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a2c
lea rdi, [0x140004b9c]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rbp - 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140004bd4
lea rdx, str.Authenticating..
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.Authenticated_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400f1f08]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0xb]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r15d, 0x1000
xorps xmm0, xmm0
test eax, eax
js 0x140002b70
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140002add
mov r8, rbx
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call fcn.140004e94
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
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.1400046ec
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140002b69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002b64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
mov rcx, qword [rsp + 0x70]
jmp 0x140002b87
movups xmmword [rsp + 0x60], xmm0
mov rcx, rsi
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x60], sil
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, r12
jb 0x140003019
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
lea r13, [0x1400f1f10]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.14000560c
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], r14
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140005f68
nop
mov dword [rsp + 0x40], esi
lea rax, [0x1401130d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140002788
mov dil, al
cmp dword [rsp + 0x40], esi
jne 0x14000301f
lea rcx, [rbp - 0x60]
call fcn.140003b6c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140002c68
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140002c63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
test dil, dil
jne 0x140002d3a
mov rax, rbx
mov rcx, qword [rsp + 0x70]
sub rax, rcx
cmp rax, r12
jb 0x140003035
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
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.14000560c
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
cmova rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005f68
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
call fcn.1400d0468
shr rax, 0x20
test eax, eax
jne 0x14000303b
lea rcx, [rbp - 0x80]
call fcn.140003b6c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, r14
jbe 0x140002d3a
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002d35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
mov rax, rbx
mov rcx, qword [rsp + 0x70]
sub rax, rcx
mov r12d, 0x12
cmp rax, r12
jb 0x14000304e
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
lea r13, str.SaintWareconfigs
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.14000560c
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
cmova rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005f68
nop
mov dword [rsp + 0x40], esi
lea rax, [0x1401130d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140002788
mov dil, al
cmp dword [rsp + 0x40], esi
jne 0x140003054
lea rcx, [rbp - 0x80]
call fcn.140003b6c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, r14
jbe 0x140002e1c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002e17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
test dil, dil
jne 0x140002eeb
mov rax, qword [rsp + 0x70]
sub rbx, rax
cmp rbx, r12
jb 0x14000306a
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.14000560c
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], r14
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140005f68
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
call fcn.1400d0468
shr rax, 0x20
test eax, eax
jne 0x140003006
lea rcx, [rbp - 0x60]
call fcn.140003b6c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140002eeb
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140002ee6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ee6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
call fcn.14000d2d4
lea rcx, str.press_enter_to_close_cheat.
call fcn.1400016fc
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]
lea rcx, [0x1400f1f54]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, r14
jbe 0x140002f52
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002f4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x60], sil
mov rdx, qword [rbp - 8]
cmp rdx, r14
jbe 0x140002f9b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r15
jb 0x140002f95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, r14
jbe 0x140002fd4
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002fcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fcf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cef24
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400ceec0
lea r11, [rsp + 0x320]
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.14000264c
nop
call fcn.140001908
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400026ac
nop
call fcn.140001908
nop
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.create_directory
call fcn.14000264c
nop
call fcn.140001908
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400026ac
nop
call fcn.140001908
int3