Function at 0x1800aa460
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
movsd xmm0, qword [0x18014adb8]
movsd xmm1, qword [0x18012ec78]
comisd xmm0, xmm1
jb 0x1800aa6db
cmp dword [0x18014adc0], 0x13
jge 0x1800aa6db
movups xmm0, xmmword [0x180126120]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180126130]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x180126140]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x180126150]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x180126160]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x180126170]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x180126180]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x180126190]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x1801261a0]
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [0x1801261b0]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x1801261b8]
mov word [rbp - 0x18], ax
movzx eax, byte [0x1801261ba]
mov byte [rbp - 0x16], al
xor r8d, r8d
cmp dword [0x180149018], 2
jl 0x1800aa67b
movdqa xmm5, xmmword [0x18012ef90]
movdqa xmm4, xmmword [0x18012f080]
movdqa xmm6, xmmword [0x18012efd0]
movdqa xmm0, xmmword [0x18012f090]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
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
psrad xmm1, 1
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 [0x18012f070]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 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
psrad xmm1, 1
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 [0x18012f070]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x98
jl 0x1800aa570
cmp r8d, 0x9b
jge 0x1800aa6c2
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x9b
jl 0x1800aa690
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.1800387f0
mov rcx, qword [rax]
jmp 0x1800aa9c8
cmp dword [0x18014adc0], 0x10
jl 0x1800aa91b
comisd xmm1, xmm0
jbe 0x1800aa91b
movups xmm0, xmmword [0x180126080]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180126090]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x1801260a0]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1801260b0]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x1801260c0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x1801260d0]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x1801260e0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x1801260f0]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x180126100]
movups xmmword [rbp - 0x30], xmm0
mov eax, dword [0x180126110]
mov dword [rbp - 0x20], eax
movzx eax, word [0x180126114]
mov word [rbp - 0x1c], ax
xor r8d, r8d
cmp dword [0x180149018], 2
jl 0x1800aa8bb
movdqa xmm5, xmmword [0x18012ef90]
movdqa xmm4, xmmword [0x18012f080]
movdqa xmm6, xmmword [0x18012efd0]
movdqa xmm0, xmmword [0x18012f090]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rsp + 0x30]
nop dword [rax + rax]
movd xmm2, r8d
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
psrad xmm1, 1
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 [0x18012f070]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 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
psrad xmm1, 1
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 [0x18012f070]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x90
jl 0x1800aa7b0
cmp r8d, 0x96
jge 0x1800aa902
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x96
jl 0x1800aa8d0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.1800387f0
mov rcx, qword [rax]
jmp 0x1800aa9c8
comisd xmm0, xmmword [0x18012ed70]
jb 0x1800aa9cf
lea rdx, [0x18014c870]
lea rcx, [rbp - 0x10]
call fcn.18002d010
mov r9b, 1
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1800ac000
mov rdi, rax
mov dword [rbp + 0x40], 0x24ffffff
mov word [rbp + 0x44], 0x55ff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov edx, 6
lea rcx, [rsp + 0x30]
call fcn.18000f200
mov rbx, qword [rsp + 0x30]
mov r8d, 6
lea rdx, [rbp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 6]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x58]
mov rcx, rdi
call fcn.1800acb60
mov rcx, qword [rax]
test rcx, rcx
je 0x1800aa9cf
mov qword [0x18014b730], rcx
mov eax, dword [0x18014adc0]
add eax, 0xfffffff0
cmp eax, 2
ja 0x1800aaaab
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
cmp qword [0x18014b730], 0
jne 0x1800aaa58
mov r8d, 0x43
lea rdx, str.Couldnt_find_UnsafeEnv__Game_will_close_out_when_entering_In_Game_
call fcn.180016150
nop
mov byte [rbp + 0x40], 0
mov dword [rbp + 0x48], 1
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18014bfd8]
mov qword [rsp + 0x20], rax
lea r9, [0x18014bfc8]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x48]
call fcn.180028480
nop
lea rcx, [rsp + 0x30]
call fcn.18002d3d0
xor al, al
jmp 0x1800aaaad
mov r8d, 0x10
lea rdx, str.Found_UnsafeEnv_
call fcn.180016150
nop
mov byte [rbp + 0x40], 0
mov dword [rbp + 0x48], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18014bfd8]
mov qword [rsp + 0x20], rax
lea r9, [0x18014bfc8]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x48]
call fcn.180028480
nop
lea rcx, [rsp + 0x30]
call fcn.18002d3d0
mov al, 1
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rdi
pop rbx
pop rbp
ret