Function at 0x180017720
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push r15
lea rbp, [r11 - 0x118]
sub rsp, 0x208
movaps xmmword [r11 - 0x28], xmm6
movaps xmmword [r11 - 0x38], xmm7
movaps xmmword [r11 - 0x48], xmm8
mov rax, qword [0x1800a5010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movups xmm0, xmmword [0x180093d60]
xor r8d, r8d
cmp dword [0x1800a5018], 2
mov r15, rdx
movups xmm1, xmmword [0x180093d70]
movzx eax, word [0x180093df8]
movups xmmword [rbp], xmm0
movups xmm0, xmmword [0x180093d80]
movups xmmword [rbp + 0x10], xmm1
movups xmm1, xmmword [0x180093d90]
movups xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [0x180093da0]
movups xmmword [rbp + 0x30], xmm1
movups xmm1, xmmword [0x180093db0]
movups xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [0x180093dc0]
movups xmmword [rbp + 0x50], xmm1
movups xmm1, xmmword [0x180093dd0]
movups xmmword [rbp + 0x60], xmm0
movups xmm0, xmmword [0x180093de0]
movups xmmword [rbp + 0x70], xmm1
movsd xmm1, qword [0x180093df0]
movups xmmword [rbp + 0x80], xmm0
movsd qword [rbp + 0x90], xmm1
mov word [rbp + 0x98], ax
jl 0x18001792c
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rbp]
movdqa xmm4, xmmword [0x18009dd00]
mov eax, 4
movdqa xmm7, xmmword [0x18009d930]
movaps xmmword [r11 - 0x58], xmm9
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, eax
mov eax, 0x1f
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x48
jl 0x180017830
movaps xmm9, xmmword [rsp + 0x1c0]
cmp r8d, 0x4d
jge 0x180017975
movsxd rax, r8d
lea r9, [rbp]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x4d
jl 0x180017940
xor r9d, r9d
lea r8, [rbp]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
test rax, rax
je 0x180017b6f
mov rdx, qword [0x1800a7670]
lea rcx, [rbp + 0xa0]
xorps xmm0, xmm0
mov qword [rsp + 0x200], r14
mov r8, rax
movups xmmword [rbp + 0xa0], xmm0
call fcn.18005daa0
mov r14d, dword [rbp + 0xa8]
test r14d, r14d
js 0x180017b67
mov qword [rsp + 0x238], rdi
xor edi, edi
test r14d, r14d
jle 0x180017b5f
movss xmm6, dword [0x18009d63c]
xorps xmm8, xmm8
movss xmm7, dword [0x18009d640]
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x230], rsi
mov rsi, qword [rbp + 0xa0]
nop word [rax + rax]
mov rbx, qword [rsi]
test rbx, rbx
je 0x180017b4f
mov rdx, qword [rbx + 0xba0]
test rdx, rdx
je 0x180017b40
xorps xmm0, xmm0
lea rcx, [rbp + 0xa0]
movups xmmword [rbp + 0xa0], xmm0
call fcn.18005d180
cmp qword [rbp + 0xa0], 0
je 0x180017b40
mov rax, qword [0x1800a7ae0]
mov rcx, qword [rax + rbx]
test rcx, rcx
je 0x180017a67
add rcx, qword [0x1800a7af0]
movups xmm0, xmmword [rcx]
lea r8, [rbp - 0x20]
movsd xmm1, qword [rcx + 0x10]
lea rdx, [rsp + 0x70]
mov rcx, r15
movsd qword [rbp - 0x10], xmm1
movups xmmword [rbp - 0x20], xmm0
call fcn.180069e40
movups xmm0, xmmword [rsp + 0x70]
movzx eax, byte [0x1800a5a71]
xorps xmm1, xmm1
movups xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x18009da70]
movaps xmmword [rsp + 0x70], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x30], xmm1
test al, al
je 0x180017ac0
movaps xmm0, xmm6
jmp 0x180017ac3
movaps xmm0, xmm7
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
test al, al
je 0x180017ad3
movaps xmm0, xmm6
jmp 0x180017ad6
movaps xmm0, xmm7
mov rdx, qword [0x1800a7650]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
lea r9, [rbp - 0x60]
mov byte [rsp + 0x50], 1
lea rax, [rbp - 0x40]
mov byte [rsp + 0x48], 1
lea r8, [rbp + 0xa0]
mov qword [rsp + 0x40], rax
mov rcx, r15
lea rax, [rbp - 0x30]
movsd qword [rbp - 0x68], xmm1
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
cvtss2sd xmm0, xmm0
movss dword [rsp + 0x30], xmm8
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
movsd qword [rbp - 0x70], xmm0
call fcn.18006abb0
nop dword [rax]
inc edi
add rsi, 8
cmp edi, r14d
jl 0x180017a10
mov rsi, qword [rsp + 0x230]
mov rbx, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x238]
mov r14, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180079a30
lea r11, [rsp + 0x208]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
mov rsp, r11
pop r15
pop rbp
ret