Function at 0x1800394a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
movsd xmm0, qword [0x18007f6d8]
xor ebx, ebx
movsd xmm1, qword [0x180072a30]
comisd xmm0, xmm1
mov eax, dword [0x18007f6e0]
movaps xmmword [rsp + 0xe0], xmm6
jb 0x180039725
cmp eax, 0x13
jge 0x180039725
cmp dword [0x18007e018], 2
mov r8d, ebx
movups xmm0, xmmword [0x180071730]
movups xmm1, xmmword [0x180071740]
movzx eax, word [0x1800717c8]
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [0x180071750]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [0x180071770]
movups xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [0x180071790]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x180071760]
movups xmmword [rbp + 7], xmm0
movups xmm0, xmmword [0x1800717b0]
movups xmmword [rbp - 0x29], xmm1
movups xmm1, xmmword [0x180071780]
movups xmmword [rbp + 0x27], xmm0
movsd xmm0, qword [0x1800717c0]
movups xmmword [rbp - 9], xmm1
movups xmm1, xmmword [0x1800717a0]
mov word [rbp + 0x3f], ax
movzx eax, byte [0x1800717ca]
movsd qword [rbp + 0x37], xmm0
movups xmmword [rbp + 0x17], xmm1
mov byte [rbp + 0x41], al
jl 0x1800396bd
movdqa xmm0, xmmword [0x180072b80]
lea rcx, [rbp - 0x55]
movdqa xmm5, xmmword [0x180072ab0]
movdqa xmm4, xmmword [0x180072b70]
movdqa xmm6, xmmword [0x180072ae0]
movdqa xmmword [rbp - 0x79], xmm0
mov edx, dword [rbp - 0x79]
nop word [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 [0x180072b60]
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 [0x180072b60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x98
jl 0x1800395b0
cmp r8d, 0x9b
jge 0x180039703
movsxd rax, r8d
lea r9, [rbp - 0x59]
add r9, rax
nop word [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 0x1800396d0
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x67]
call fcn.180017090
mov rcx, qword [rax]
mov eax, dword [0x18007f6e0]
mov qword [0x18007f848], rcx
jmp 0x180039953
cmp eax, 0x10
jl 0x180039a1b
comisd xmm1, xmm0
jbe 0x18003994c
cmp dword [0x18007e018], 2
mov r8d, ebx
movups xmm0, xmmword [0x180071690]
movups xmm1, xmmword [0x1800716a0]
mov eax, dword [0x180071720]
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [0x1800716b0]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [0x1800716d0]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x1800716c0]
movups xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [0x1800716f0]
movups xmmword [rbp - 0x29], xmm1
movups xmm1, xmmword [0x1800716e0]
movups xmmword [rbp + 7], xmm0
movups xmm0, xmmword [0x180071710]
movups xmmword [rbp - 9], xmm1
movups xmm1, xmmword [0x180071700]
mov dword [rbp + 0x37], eax
movzx eax, word [0x180071724]
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x17], xmm1
mov word [rbp + 0x3b], ax
jl 0x1800398fd
movdqa xmm0, xmmword [0x180072b80]
lea rcx, [rbp - 0x55]
movdqa xmm5, xmmword [0x180072ab0]
movdqa xmm4, xmmword [0x180072b70]
movdqa xmm6, xmmword [0x180072ae0]
movdqa xmmword [rbp - 0x79], xmm0
mov edx, dword [rbp - 0x79]
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 [0x180072b60]
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 [0x180072b60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x90
jl 0x1800397f0
cmp r8d, 0x96
jge 0x180039943
movsxd rax, r8d
lea r9, [rbp - 0x59]
add r9, rax
nop word [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 0x180039910
lea rdx, [rbp - 0x59]
jmp 0x180039707
mov rcx, qword [0x18007f848]
add eax, 0xfffffff0
cmp eax, 2
ja 0x180039a1b
xorps xmm0, xmm0
mov qword [rbp - 0x69], rbx
test rcx, rcx
mov qword [rbp - 0x61], rbx
movups xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x79]
jne 0x1800399cb
mov r8d, 0x43
lea rdx, str.Couldnt_find_UnsafeEnv__Game_will_close_out_when_entering_In_Game_
call fcn.180015df0
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x1800399c7
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800399c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800399c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
xor al, al
jmp 0x180039a1d
mov r8d, 0x10
lea rdx, str.Found_UnsafeEnv_
call fcn.180015df0
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x180039a1b
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039a16
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180039a16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
mov al, 1
mov rbx, qword [rsp + 0x108]
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbp
ret