Function at 0x14008ec80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0x68
mov qword [rax + 8], rbx
mov rsi, rcx
mov ebx, dword [r8 + 4]
mov qword [rax + 0x10], rbp
mov ebp, dword [r8]
mov qword [rax + 0x18], rdi
mov ecx, ebp
mov qword [rax - 0x18], r12
mov rdi, rdx
mov qword [rax - 0x20], r13
mov r12, r8
mov r13d, dword [r8 + 8]
mov r14d, ebp
xor r8d, r8d
mov qword [rax - 0x28], r15
lea edx, [r8 + 2]
call fcn.1400a64d0
mov r8, qword [r12 + 0x18]
mov r9d, ebp
mov rdx, rdi
mov dword [rsp + 0x20], ebx
mov rcx, rax
mov r15, rax
call fcn.1400908c0
mov r9d, ebx
mov r8d, ebp
mov rdx, r15
mov rcx, r15
call fcn.140090140
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
test ebp, ebp
je 0x14008ed30
mov r8, r15
mov r9d, ebp
nop dword [rax]
movzx edx, word [r8]
lea r8, [r8 + 2]
shr dx, 0xf
movzx eax, dx
add ax, ax
add dx, ax
add word [r8 - 2], dx
sub r9, 1
jne 0x14008ed10
mov r8, qword [r12 + 0x20]
mov r9d, ebp
mov rdx, r15
mov dword [rsp + 0x20], 3
mov rcx, rsi
call fcn.1400908c0
lea rdx, [rbp*2]
mov rcx, r15
call fcn.1400abcc0
mov rcx, r15
call fcn.1400a62e0
mov r15, qword [rsp + 0x50]
xor r8d, r8d
mov r12, qword [rsp + 0x60]
mov ecx, r8d
test ebp, ebp
je 0x14008ee5b
cmp r14, 8
jb 0x14008ee40
movdqa xmm4, xmmword [0x1400dca30]
mov edx, 0x10
movaps xmmword [rsp + 0x40], xmm6
mov rax, r14
movdqa xmm6, xmmword [0x1400dca20]
and rax, 0xfffffffffffffff8
movaps xmmword [rsp + 0x30], xmm7
xorps xmm3, xmm3
movdqa xmm7, xmmword [0x1400b36b0]
xorps xmm2, xmm2
movd xmm5, edx
nop dword [rax]
movq xmm1, qword [rsi + rcx*2]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
paddd xmm1, xmm4
psrad xmm1, xmm5
pandn xmm1, xmm7
pand xmm1, xmm6
psubd xmm3, xmm1
movq xmm1, qword [rsi + rcx*2 + 8]
punpcklwd xmm1, xmm0
add rcx, 8
paddd xmm1, xmm4
psrad xmm1, xmm5
pandn xmm1, xmm7
pand xmm1, xmm6
psubd xmm2, xmm1
cmp rcx, rax
jb 0x14008edc0
movaps xmm7, xmmword [rsp + 0x30]
paddd xmm2, xmm3
movaps xmm6, xmmword [rsp + 0x40]
movdqa xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd eax, xmm2
add ebp, eax
cmp rcx, r14
jae 0x14008ee5b
nop word [rax + rax]
movzx eax, word [rsi + rcx*2]
inc rcx
add eax, 0xffff
shr eax, 0x10
not eax
and eax, 1
sub ebp, eax
cmp rcx, r14
jb 0x14008ee40
mov eax, r13d
xor eax, ebp
mov rbp, qword [rsp + 0x88]
movzx r9d, ax
mov rax, r13
mov r13, qword [rsp + 0x58]
add r9d, 0xffff
shr r9d, 0x10
not r9d
and r9d, 1
dec r9d
test rax, rax
je 0x14008ef5a
cmp rax, 0x20
jb 0x14008ef40
movdqa xmm3, xmmword [0x1400dca40]
mov rdx, rax
movsx ecx, r9w
and rdx, 0xffffffffffffffe0
movd xmm2, ecx
lea rcx, [rsi + 0x20]
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
add r8, 0x20
movdqa xmm1, xmm3
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x60], xmm1
movdqa xmm1, xmm3
movdqu xmm0, xmmword [rcx - 0x50]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x50], xmm1
movdqa xmm1, xmm3
movdqu xmm0, xmmword [rcx - 0x40]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqa xmm1, xmm3
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
cmp r8, rdx
jb 0x14008eec0
cmp r8, rax
jae 0x14008ef5a
nop word [rax + rax]
movzx edx, word [rsi + r8*2]
xor dx, 1
and dx, r9w
xor word [rsi + r8*2], dx
inc r8
cmp r8, rax
jb 0x14008ef40
cmp rax, r14
jae 0x14008ef70
not r9w
and word [rsi + rax*2], r9w
inc rax
cmp rax, r14
jb 0x14008ef63
add rsp, 0x68
pop r14
pop rsi
ret