Function at 0x14004b970
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
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x400
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14017d080]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor r14d, r14d
mov qword [0x1401ca3c8], r14
mov dword [0x1401ca3d0], r14d
mov word [0x1401ca3d4], r14w
mov qword [0x1401ca118], r14
mov word [0x1401ca120], r14w
mov byte [0x1401ca122], r14b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1401ca3e0], xmm0
movups xmmword [0x1401ca3f0], xmm0
movups xmmword [0x1401ca400], xmm0
movups xmmword [0x1401ca410], xmm0
mov byte [0x1401ca420], al
mov dword [0x1401ca110], eax
movups xmmword [0x1401ca128], xmm0
mov qword [0x1401ca138], rax
mov dword [0x1401ca140], eax
mov byte [0x1401ca144], al
mov eax, dword [str.WE_MSX_]
mov dword [rsp + 0x40], eax
movzx ecx, word [0x14015337c]
mov word [rsp + 0x44], cx
movzx eax, byte [reloc.WLDAP32.dll_Ordinal_60]
mov byte [rsp + 0x40], 0x61
xor byte [rsp + 0x41], 0x37
xor byte [rsp + 0x42], 0x38
xor byte [rsp + 0x43], 0x39
xor cl, 0x3a
mov byte [rsp + 0x44], cl
xor byte [rsp + 0x45], 0x3b
xor al, 0x3c
mov byte [rsp + 0x46], al
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r14b
jne 0x14004ba85
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xb0]
call fcn.140002960
nop
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0xf
cmova rcx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x1401ca150]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x14004bb46
call fcn.140132200
lea r15, str.arctic.json
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], ntohs
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140049990
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x10]
call fcn.14004a0c0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x10], ecx
lea r12, [0x14017d2d0]
mov qword [rbp + 0x18], r12
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp + 0x10], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004bd39
cmp eax, 1
setne bl
lea rcx, [rsp + 0x60]
call fcn.14004f8c0
xorps xmm0, xmm0
test bl, bl
jmp 0x14004c265
xor bl, bl
test ecx, ecx
jne 0x14004cc42
jmp 0x14004bbb6
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x90], 0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x14015f1c0]
movdqu xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], 0
movups xmm0, xmmword [0x140153250]
movups xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [0x140153260]
movsd qword [rbp + 0x20], xmm0
movzx eax, byte [0x140153268]
mov byte [rbp + 0x28], al
mov ecx, r14d
mov esi, dword [reloc.WS2_32.dll_accept]
cmp esi, 2
jl 0x14004c41b
movdqa xmm5, xmmword [0x14015f210]
movdqa xmm4, xmmword [0x14015f940]
movdqa xmm6, xmmword [0x14015f240]
movdqa xmm0, xmmword [0x14015f390]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp + 0x14]
mov r8d, dword [rsp + 0x50]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14015f2d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14015f2d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x14004c311
cmp ecx, 0x19
jge 0x14004c45e
movsxd rax, ecx
lea r8, [rbp + 0x10]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x19
jl 0x14004c430
lea rdx, [rbp + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [0x1401ca360], 0
jmp 0x14004c518
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140148b28]
lea rcx, [rbp - 0x78]
call fcn.140002960
nop
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov qword [rbp + 8], r14
xor r8d, r8d
lea rdx, [0x140148b28]
lea rcx, [rbp - 0x10]
call fcn.140002960
nop
lea rax, [rbp - 0x38]
mov qword [rbp + 0x70], rax
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.140005dc0
mov rbx, rax
lea rax, [rbp - 0x58]
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov r8d, 7
lea rdx, str.license
lea rcx, [rbp - 0x58]
call fcn.140002960
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov r8d, ntohs
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140002960
nop
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.14004b3e0
movups xmm0, xmmword [str.WE_MSX]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [0x1401535a0]
movups xmmword [rbp - 0x28], xmm1
mov eax, dword [0x1401535b0]
mov dword [rbp - 0x18], eax
movzx eax, word [0x1401535b4]
mov word [rbp - 0x14], ax
mov ecx, r14d
cmp esi, 2
jl 0x14004c77a
movdqa xmm5, xmmword [0x14015f210]
movdqa xmm4, xmmword [0x14015f940]
movdqa xmm6, xmmword [0x14015f240]
movdqa xmm0, xmmword [0x14015f390]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp - 0x34]
mov r8d, dword [rsp + 0x50]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14015f2d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14015f2d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x20
jl 0x14004c670
cmp ecx, 0x26
jge 0x14004c7be
movsxd rax, ecx
lea r8, [rbp - 0x38]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x26
jl 0x14004c790
lea rdx, [rbp - 0x38]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140050640
nop
lea rcx, [rbp + 0x30]
call fcn.1400061f0
nop
lea rcx, [rbp + 0x90]
call fcn.1400061f0
nop
lea rcx, [rbp + 0x50]
call fcn.1400061f0
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x14004c882
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
lea rax, [rbp + 0xd0]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004c830
mov r8, rdi
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x30]
call fcn.140050df0
nop
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x30]
cmova rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.140050190
nop
lea rcx, [rbp + 0x30]
call fcn.14004f8c0
jmp 0x14004c8a2
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov qword [rbp + 8], r14
xor r8d, r8d
lea rdx, [0x140148b28]
lea rcx, [rbp - 0x10]
call fcn.140002960
nop
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov rcx, qword [rbp]
sub rax, rcx
cmp rax, 7
jb 0x14004cc82
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x30], 7
lea r14, str._arctic
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.1400527c0
nop
mov rdi, qword [rsp + 0x70]
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
call fcn.140132200
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0x50]
call fcn.140049990
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14004a0c0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x70], ecx
mov qword [rbp + 0x78], r12
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x70], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004cc17
cmp eax, 1
sete bl
lea rcx, [rbp + 0x50]
call fcn.14004f8c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400061f0
test bl, bl
je 0x14004ca2d
mov rax, rsi
mov rcx, qword [rbp]
sub rax, rcx
cmp rax, 7
jb 0x14004cc88
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x30], 7
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.1400527c0
nop
mov rdi, qword [rsp + 0x70]
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
call fcn.140132200
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140049990
nop
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rcx, qword [rbp + 0x10]
call fcn.140132460
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004cc8e
lea rcx, [rbp + 0x10]
call fcn.14004f8c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400061f0
mov rax, rsi
mov rcx, qword [rbp]
sub rax, rcx
cmp rax, 0xf
jb 0x14004cca3
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x30], reloc.WS2_32.dll_ntohs
lea r14, str._arcticconfigs
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.1400527c0
nop
mov rdi, qword [rsp + 0x70]
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
call fcn.140132200
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0x50]
call fcn.140049990
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14004a0c0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x70], ecx
mov qword [rbp + 0x78], r12
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x70], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004cc22
cmp eax, 1
sete bl
lea rcx, [rbp + 0x50]
call fcn.14004f8c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400061f0
test bl, bl
je 0x14004cbab
mov rax, qword [rbp]
sub rsi, rax
cmp rsi, 0xf
jb 0x14004cca9
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x30], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.1400527c0
nop
mov rdi, qword [rsp + 0x70]
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
call fcn.140132200
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140049990
nop
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rcx, qword [rbp + 0x10]
call fcn.140132460
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004cc2d
lea rcx, [rbp + 0x10]
call fcn.14004f8c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400061f0
call fcn.140063070
lea rcx, str.arctic___press_enter_to_close_console__closes_cheat_
call fcn.140049160
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
lea rcx, [rbp - 0x10]
call fcn.1400061f0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400061f0
xor eax, eax
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140132d80
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov bl, 1
test ecx, ecx
jne 0x14004cc58
jmp 0x14004c965
mov bl, 1
test ecx, ecx
jne 0x14004cc6d
jmp 0x14004cae6
shr rdx, 0x20
lea r8, [rbp + 0x10]
lea rcx, str.create_directory
call fcn.140049ff0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x10]
lea rcx, str.exists
call fcn.14004a060
nop
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x70]
lea rcx, str.exists
call fcn.14004a060
nop
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x70]
lea rcx, str.exists
call fcn.14004a060
nop
call fcn.1400028e0
int3
call fcn.1400028e0
nop
shr rdx, 0x20
lea r8, [rbp + 0x10]
lea rcx, str.create_directory
call fcn.140049ff0
nop
call fcn.1400028e0
int3
call fcn.1400028e0
int3