Function at 0x180017ba0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
movups xmm0, xmmword [0x180093d20]
mov edi, dword [0x1800a5018]
xor ebx, ebx
movaps xmmword [rax - 0x28], xmm6
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm7
mov r14, rcx
movaps xmmword [rax - 0x48], xmm8
mov r8d, ebx
movaps xmmword [rax - 0x58], xmm9
lea r15d, [rbx + 4]
mov eax, dword [0x180093d58]
lea r12d, [rbx + 0x1f]
mov dword [rbp - 0x30], eax
movups xmm1, xmmword [0x180093d30]
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [0x180093d40]
movups xmmword [rbp - 0x58], xmm1
movsd xmm1, qword [0x180093d50]
movsd qword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x48], xmm0
cmp edi, 2
jl 0x180017d53
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rbp - 0x68]
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, r15d
movd xmm8, r12d
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, 0x18
jl 0x180017c60
cmp r8d, 0x1e
jge 0x180017d95
movsxd rax, r8d
lea r9, [rbp - 0x68]
lea r9, [r9 + rax*2]
nop
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, 0x1e
jl 0x180017d60
xor r9d, r9d
lea r8, [rbp - 0x68]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
test rax, rax
je 0x18001813f
mov rcx, rax
call fcn.18000f510
mov qword [0x1800a7688], rax
test rax, rax
je 0x18001813f
mov rcx, qword [0x1800a7ae0]
mov rdx, qword [rcx + rax]
test rdx, rdx
je 0x180017de3
mov rcx, qword [0x1800a7af0]
add rcx, rdx
jmp 0x180017de6
mov rcx, rbx
movups xmm0, xmmword [rcx]
lea r8, [rbp - 0x80]
movsd xmm1, qword [rcx + 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rsi
movsd qword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x80], xmm0
call fcn.180069e40
movups xmm0, xmmword [rbp - 0x20]
lea rdx, [rbp - 0x80]
mov rcx, rsi
movups xmmword [rbp + 0x10], xmm0
call fcn.180069900
test al, al
je 0x1800180b0
mov eax, dword [0x180093d18]
mov r8d, ebx
mov dword [rbp - 0x48], eax
movups xmm0, xmmword [str.v__B]
movups xmm1, xmmword [0x180093d08]
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm1
cmp edi, 2
jl 0x180017f73
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rbp - 0x68]
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, r15d
movd xmm8, r12d
nop dword [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, 0x10
jl 0x180017e80
cmp r8d, 0x12
jge 0x180017fb5
movsxd rax, r8d
lea r9, [rbp - 0x68]
lea r9, [r9 + rax*2]
nop
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, 0x12
jl 0x180017f80
mov qword [rsp + 0x70], rbx
cmp word [rbp - 0x68], bx
je 0x180017ff5
lea rax, [rbp - 0x68]
mov ecx, ebx
nop word [rax + rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x180017fd0
add ecx, 1
lea rax, [rbp - 0x68]
mov dword [rsp + 0x78], ecx
cmove rax, rbx
mov dword [rsp + 0x7c], ecx
mov qword [rsp + 0x70], rax
jmp 0x180017ffa
mov qword [rsp + 0x78], rbx
call fcn.180069440
movaps xmm0, xmmword [0x18009db30]
xorps xmm1, xmm1
movzx ecx, byte [0x1800a5a71]
movss xmm2, dword [0x18009d640]
movaps xmmword [rbp - 0x20], xmm0
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movss xmm0, dword [0x18009d63c]
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x40], xmm1
test cl, cl
je 0x18001803c
movaps xmm1, xmm0
jmp 0x18001803f
movaps xmm1, xmm2
cvtps2pd xmm3, xmm1
test cl, cl
jne 0x180018049
movaps xmm0, xmm2
cvtps2pd xmm0, xmm0
lea rcx, [rbp + 0x20]
mov rdx, rax
lea r9, [rbp + 0x10]
mov qword [rsp + 0x60], rcx
lea rcx, [rbp + 0x30]
mov byte [rsp + 0x50], 1
lea r8, [rsp + 0x70]
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x40]
movsd qword [rbp + 8], xmm3
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x20]
movsd qword [rbp], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
mov qword [rsp + 0x28], rcx
lea rcx, [rbp]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.18006abb0
nop word [rax + rax]
lea rdx, [0x1800a5b54]
mov rcx, r14
call fcn.18006f350
test al, 1
je 0x180018138
mov rcx, qword [0x1800a7688]
movsd xmm2, qword [rbp - 0x70]
movsd qword [0x1800a5a48], xmm2
mov qword [0x1800a77d0], rcx
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [0x1800a5a38], xmm0
test rcx, rcx
je 0x1800180fa
mov rdx, qword [0x1800a7ae0]
add rdx, rcx
jmp 0x1800180fd
mov rdx, rbx
mov rcx, qword [rdx]
test rcx, rcx
je 0x18001810f
mov rbx, qword [0x1800a7ae8]
add rbx, rcx
movups xmm0, xmmword [rbx]
addsd xmm2, qword [0x18009d6d8]
movups xmmword [0x1800a5a50], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [0x1800a5a60], xmm1
movsd qword [0x1800a5a48], xmm2
jmp 0x18001813f
mov qword [0x1800a7688], rbx
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rbp
ret