Function at 0x14008af40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, dword [0x1400bd090]
xor r9d, r9d
mov rbx, r8
movdqa xmm3, xmmword [0x1400ac2d0]
mov rdi, rdx
movdqa xmm4, xmmword [0x1400ac7a0]
mov r11, rcx
movdqa xmm5, xmmword [0x1400ac1e0]
movaps xmmword [rsp + 0x20], xmm6
movdqa xmm6, xmmword [0x1400ac280]
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm7, xmmword [0x1400ac210]
cmp byte [rdx + 0xe], r9b
je 0x14008b0a5
mov r8d, r9d
cmp esi, 2
jl 0x14008b06b
movdqa xmm2, xmmword [0x1400ac200]
movdqa xmm1, xmm5
punpckldq xmm1, xmm5
movdqa xmm0, xmm5
pmuldq xmm1, xmm4
mov r8d, 8
punpckhdq xmm0, xmm5
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm5
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm5
pmulld xmm0, xmm7
psubd xmm1, xmm0
movd xmm0, dword [rdx]
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm3
xorps xmm1, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movd dword [rdx], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, dword [rdx + 4]
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm3
xorps xmm2, xmm0
movd dword [rdx + 4], xmm2
movsxd r10, r8d
add r10, rdi
mov eax, 0x92492493
lea r10, [r10 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r10 - 1], al
cmp r8d, 0xf
jl 0x14008b071
mov qword [r11], rdi
cmp byte [rbx + 0x1e], r9b
je 0x14008b204
cmp esi, 2
jl 0x14008b1c1
movdqa xmmword [rsp], xmm3
mov rcx, rbx
mov edx, dword [rsp]
nop word [rax + rax]
movd xmm2, r9d
lea eax, [r9 + 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
paddd xmm3, xmm5
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
add r9d, 8
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
pmulld xmm0, xmm7
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
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm3, xmm0
movd dword [rcx - 4], xmm3
cmp r9d, 0x18
jl 0x14008b0d0
cmp r9d, 0x1f
jge 0x14008b204
movsxd r8, r9d
add r8, rbx
nop word [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul r9d
add edx, r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r9b
inc r9d
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp r9d, 0x1f
jl 0x14008b1d0
mov rsi, qword [rsp + 0x48]
mov rax, r11
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x10]
mov qword [r11 + 8], rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret