Function at 0x18004f880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
movsd xmm0, qword [0x1800d5c20]
xor ebx, ebx
movsd xmm1, qword [0x1800c2b08]
comisd xmm0, xmm1
mov eax, dword [0x1800d5c28]
movaps xmmword [rsp + 0x100], xmm6
jb 0x18004fb09
cmp eax, 0x13
jge 0x18004fb09
cmp dword [0x1800d4018], 2
mov r8d, ebx
movups xmm0, xmmword [0x1800ba760]
movups xmm1, xmmword [0x1800ba770]
movzx eax, word [0x1800ba7f8]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1800ba780]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x1800ba7a0]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x1800ba7c0]
movups xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [0x1800ba790]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x1800ba7e0]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x1800ba7b0]
movups xmmword [rbp - 0x20], xmm0
movsd xmm0, qword [0x1800ba7f0]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x1800ba7d0]
mov word [rbp - 8], ax
movzx eax, byte [0x1800ba7fa]
movsd qword [rbp - 0x10], xmm0
movups xmmword [rbp - 0x30], xmm1
mov byte [rbp - 6], al
jl 0x18004fa9d
movdqa xmm0, xmmword [0x1800c2da0]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x1800c2cc0]
movdqa xmm4, xmmword [0x1800c2d80]
movdqa xmm6, xmmword [0x1800c2ce0]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 8
pmuldq xmm1, 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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x98
jl 0x18004f990
cmp r8d, 0x9b
jge 0x18004fae3
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0x9b
jl 0x18004fab0
lea rdx, [rsp + 0x60]
xor r8d, r8d
lea rcx, [rbp + 0x20]
call fcn.18001e960
mov rcx, qword [rax]
mov eax, dword [0x1800d5c28]
mov qword [0x1800d5e68], rcx
jmp 0x18004fd44
cmp eax, 0x10
jl 0x18004fdf0
comisd xmm1, xmm0
jbe 0x18004fd3d
cmp dword [0x1800d4018], 2
mov r8d, ebx
movups xmm0, xmmword [0x1800ba6c0]
movups xmm1, xmmword [0x1800ba6d0]
mov eax, dword [0x1800ba750]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1800ba6e0]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x1800ba700]
movups xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [0x1800ba6f0]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x1800ba720]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x1800ba710]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x1800ba740]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x1800ba730]
mov dword [rbp - 0x10], eax
movzx eax, word [0x1800ba754]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
mov word [rbp - 0xc], ax
jl 0x18004fced
movdqa xmm0, xmmword [0x1800c2da0]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x1800c2cc0]
movdqa xmm4, xmmword [0x1800c2d80]
movdqa xmm6, xmmword [0x1800c2ce0]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 8
pmuldq xmm1, 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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x90
jl 0x18004fbe0
cmp r8d, 0x96
jge 0x18004fd33
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0x96
jl 0x18004fd00
lea rdx, [rsp + 0x60]
jmp 0x18004fae8
mov rcx, qword [0x1800d5e68]
add eax, 0xfffffff0
cmp eax, 2
ja 0x18004fdf0
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
test rcx, rcx
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
jne 0x18004fdb0
mov r8d, 0x43
lea rdx, str.Couldnt_find_UnsafeEnv__Game_will_close_out_when_entering_In_Game_
call fcn.18001d5d0
movdqa xmm1, xmmword [0x1800c2ca0]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x40], bl
movdqu xmmword [rsp + 0x50], xmm1
call fcn.18001faf0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
xor al, al
jmp 0x18004fdf2
mov r8d, 0x10
lea rdx, str.Found_UnsafeEnv_
call fcn.18001d5d0
movdqa xmm1, xmmword [0x1800c2ca0]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x40], bl
movdqu xmmword [rsp + 0x50], xmm1
call fcn.18001faf0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
mov al, 1
mov rbx, qword [rsp + 0x128]
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbp
ret