Function at 0x1800af710
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.18005fd70
cmp eax, 1
jbe 0x1800af72e
mov eax, 0xfffffff8
add rsp, 0x70
pop rbp
ret
mov rcx, qword [0x18020ac80]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
movaps xmmword [rsp + 0x60], xmm6
call fcn.18004a7a0
mov edi, dword [0x18010b090]
xor esi, esi
movdqa xmm6, xmmword [0x1800f7c10]
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1800af938
cmp byte [0x1800f7803], sil
movups xmm0, xmmword [0x1800f77f0]
mov eax, dword [0x1800f7800]
mov dword [rbp - 0x20], eax
movups xmmword [rbp - 0x30], xmm0
je 0x1800af901
mov r8d, esi
cmp edi, 2
jl 0x1800af8b9
movdqa xmm0, xmmword [0x1800f7c80]
lea rcx, [rbp - 0x2c]
movdqa xmm4, xmmword [0x1800f7ad0]
movdqa xmm3, xmmword [0x1800f7f70]
movdqa xmm5, xmmword [0x1800f7b20]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, dword [rbp - 0x50]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1800af7d0
cmp r8d, 0x14
jge 0x1800af901
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x1800af8d0
xorps xmm0, xmm0
mov qword [rbp - 0x40], rsi
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], rsi
lea rax, [rbp - 0x30]
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x1800af917
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180012e90
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.180027080
cmp byte [0x18020ac08], sil
je 0x1800af9c9
mov rcx, qword [0x18020ac80]
lea r8, [0x18020ac40]
lea rdx, [0x1800aeb90]
mov rcx, qword [rcx + 0x40]
call fcn.18005fe00
test eax, eax
jne 0x1800af9bf
mov rax, qword [0x18020ac80]
mov edx, 1
mov rcx, qword [rax + 0x40]
call fcn.180060300
test eax, eax
jne 0x1800af9bf
mov rcx, qword [0x18020ac80]
lea r8, [0x18020ac58]
lea rdx, [0x1800aee70]
mov rcx, qword [rcx + 0x68]
call fcn.18005fe00
test eax, eax
jne 0x1800af9bf
mov rax, qword [0x18020ac80]
mov edx, 1
mov rcx, qword [rax + 0x68]
call fcn.180060300
test eax, eax
je 0x1800afb84
mov eax, 0xfffffff9
jmp 0x1800afb84
cmp byte [0x1800f77ed], sil
mov eax, dword [0x1800f77e8]
movups xmm0, xmmword [str.jX_CxE]
mov dword [rbp - 0x20], eax
movzx eax, word [0x1800f77ec]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x1c], ax
je 0x1800afb4d
mov ecx, esi
cmp edi, 2
jl 0x1800afb16
movdqa xmm0, xmmword [0x1800f7c80]
lea rdx, [rbp - 0x2c]
movdqa xmm4, xmmword [0x1800f7ad0]
movdqa xmm3, xmmword [0x1800f7f70]
movdqa xmm5, xmmword [0x1800f7b20]
movdqa xmmword [rbp - 0x50], xmm0
mov r8d, dword [rbp - 0x50]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1800afa30
cmp ecx, 0x16
jge 0x1800afb4d
movsxd rax, ecx
lea r8, [rbp - 0x30]
add r8, rax
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x38
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800afb20
xorps xmm0, xmm0
mov qword [rbp - 0x40], rsi
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], rsi
lea rax, [rbp - 0x30]
inc rbx
cmp byte [rax + rbx], sil
jne 0x1800afb60
mov r8, rbx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180012e90
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.180027080
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbp
ret