Function at 0x140016ac0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rbp, r9
mov r14, rdx
mov r15, rcx
call fcn.14001de50
xor ebx, ebx
mov esi, ebx
cmp word [rbp + 2], bx
je 0x140016b43
mov rdi, qword [rsp + 0xd0]
lea r12, [0x140030120]
add rdi, 0x10
nop dword [rax]
cmp dword [rdi], ebx
je 0x140016b35
call fcn.14001de50
mov r8d, dword [rdi + 4]
mov rcx, r15
mov edx, dword [rdi - 4]
add r8, r12
mov r9d, dword [rdi]
add rdx, r14
call fcn.1400169f0
test eax, eax
je 0x140016b6c
movzx eax, word [rbp + 2]
inc esi
add rdi, 0x28
cmp esi, eax
jne 0x140016b10
call fcn.14001de50
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.14001de50
cmp byte [0x140463c54], bl
jne 0x140016b8e
movzx eax, word [0x14002ab60]
mov r9d, dword [0x140463c78]
mov word [rsp + 0x70], ax
jmp 0x140016ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, word [0x14002ab60]
mov r9d, eax
mov word [rsp + 0x70], cx
cmp dword [0x140030088], 2
movups xmm0, xmmword [0x14002ab30]
movups xmm1, xmmword [0x14002ab40]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x14002ab50]
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
jl 0x140016d22
movdqa xmm0, xmmword [0x14002b0d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x14002b000]
movdqa xmm4, xmmword [0x14002b130]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x14002b050]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 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 ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x14002b0b0]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x14002b0b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x30
jl 0x140016c10
movaps xmm6, xmmword [rsp + 0x80]
cmp ebx, 0x32
jge 0x140016d5f
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0x32
jl 0x140016d30
mov edx, r9d
lea rcx, [rsp + 0x40]
call fcn.140002630
mov rdx, r14
mov rcx, r15
call fcn.140016840
xor al, al
jmp 0x140016b4a