Function at 0x1400523a0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push rbx
push rsi
sub rsp, 0x2b8
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x20a
xor esi, esi
call fcn.140083800
lea rdx, [rsp + 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14005245c
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, r8
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140052400
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14005242c
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1400528ce
mov word [rsp + rax + 0x60], si
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
nop
inc r8
cmp word [rax + r8*2], si
jne 0x140052440
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400308f0
jmp 0x1400528b1
cmp byte [0x140090857], sil
mov rax, qword [0x140090850]
mov qword [rsp + 0x2d8], rbp
mov qword [rsp + 0x2e0], rdi
mov edi, dword [0x1401798c0]
mov qword [rsp + 0x2e8], r14
mov r14d, 5
mov qword [rsp + 0x2b0], r15
movaps xmmword [rsp + 0x2a0], xmm6
movaps xmmword [rsp + 0x290], xmm7
lea r15d, [r14 + 0x1a]
movaps xmmword [rsp + 0x280], xmm8
mov qword [rsp + 0x20], rax
je 0x140052614
cmp edi, 2
jl 0x1400525cf
movdqa xmm2, xmmword [0x1400b0940]
movdqa xmm3, xmmword [0x1400b0950]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1400908a0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r14d
movd xmm5, r15d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x20]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
movd dword [rsp + 0x24], xmm2
jmp 0x140052614
lea r9, [rsp + 0x20]
mov r8d, esi
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x1400525e0
mov r9d, 0x40
lea rbp, str.h_a_v_
lea rdx, [rsp + 0x20]
mov rcx, rbp
lea r8d, [r9 - 0x36]
call fcn.140048930
xor r8d, r8d
lea rcx, [0x1400b7008]
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pubsetbuf_char____ptr64__long_long___int64_____ptr64]
cmp byte [0x140090873], sil
movups xmm0, xmmword [0x140090858]
mov eax, dword [0x140090870]
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x38], xmm0
movsd xmm0, qword [0x140090868]
movsd qword [rsp + 0x48], xmm0
je 0x14005280f
mov ecx, esi
cmp edi, 2
jl 0x1400527ce
movdqa xmm0, xmmword [str.5555555555555555YYP]
lea rdx, [rsp + 0x3c]
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400908a0]
movdqa xmm7, xmmword [str.9999]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movd xmm6, r14d
movd xmm8, r15d
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x1400526c0
cmp ecx, 0x1c
jge 0x14005280f
movsxd rax, ecx
lea r8, [rsp + 0x38]
add r8, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
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
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x1c
jl 0x1400527e0
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.140020d00
lea rdx, [0x140020ed0]
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 rcx, [0x1400b7008]
call fcn.1400207b0
movaps xmm8, xmmword [rsp + 0x280]
movaps xmm7, xmmword [rsp + 0x290]
movaps xmm6, xmmword [rsp + 0x2a0]
mov r15, qword [rsp + 0x2b0]
mov r14, qword [rsp + 0x2e8]
mov rdi, qword [rsp + 0x2e0]
test rax, rax
jne 0x140052889
mov rax, qword [str.h_a_v_]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
add rcx, rbp
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
lea rdx, [0x14008e038]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], rsi
mov rcx, rbx
mov qword [rbx + 0x18], rsi
call fcn.1400308f0
mov rbp, qword [rsp + 0x2d8]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140082c20
add rsp, 0x2b8
pop rsi
pop rbx
ret
call fcn.140082ef4
int3