Function at 0x1401c6f10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
lea rax, [rcx + 7]
and rax, 0xfffffffffffffff8
mov rbx, rax
sub rbx, rcx
cmp rbx, rdx
ja 0x1401c6f6a
cmp rbx, 8
ja 0x1401c6f6a
mov r8, rdx
sub r8, rbx
cmp r8, 8
jb 0x1401c6f6a
lea r11, [rcx + rbx]
mov r9d, r8d
and r9d, 7
cmp rax, rcx
jne 0x1401c710d
xor edx, edx
jmp 0x1401c7297
test rdx, rdx
je 0x1401c6f7f
cmp rdx, 4
jae 0x1401c6f86
xor eax, eax
mov r8, rcx
jmp 0x1401c70e2
xor eax, eax
jmp 0x1401c757e
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 - 4]
mov rdi, rax
shr rdi, 2
inc rdi
test rax, rax
je 0x1401c711a
mov rax, rdi
and rax, 0xfffffffffffffffe
pxor xmm0, xmm0
xor ebx, ebx
movdqa xmm2, xmmword [0x1402b7810]
movdqa xmm3, xmmword [0x1401f5700]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx esi, word [rcx + rbx]
movd xmm4, esi
movzx esi, word [rcx + rbx + 2]
movd xmm5, esi
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx esi, word [rcx + rbx + 4]
movd xmm0, esi
movzx esi, word [rcx + rbx + 6]
movd xmm1, esi
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add rbx, 8
add rax, 0xfffffffffffffffe
jne 0x1401c6fd0
test dil, 1
je 0x1401c70c4
movzx eax, word [rcx + rbx]
movd xmm2, eax
movzx eax, word [rcx + rbx + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x1402b7810]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x1401f5700]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rax, xmm1
cmp r8, rdx
je 0x1401c757e
add r8, rcx
add rcx, rdx
nop word cs:[rax + rax]
xor edx, edx
cmp byte [r8], 0xc0
lea rbx, [r8 + 1]
setge dl
add rax, rdx
mov r8, rbx
cmp rbx, rcx
jne 0x1401c70f0
jmp 0x1401c757e
cmp rbx, 4
jae 0x1401c7130
xor edx, edx
jmp 0x1401c7280
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
test dil, 1
jne 0x1401c706f
jmp 0x1401c70c4
mov r10, rbx
and r10, 0xfffffffffffffffc
lea rax, [r10 - 4]
mov rdx, rax
shr rdx, 2
inc rdx
test rax, rax
je 0x1401c7597
mov rdi, rdx
and rdi, 0xfffffffffffffffe
pxor xmm0, xmm0
xor esi, esi
movdqa xmm2, xmmword [0x1402b7810]
movdqa xmm3, xmmword [0x1401f5700]
pxor xmm1, xmm1
nop
movzx eax, word [rcx + rsi]
movd xmm4, eax
movzx eax, word [rcx + rsi + 2]
movd xmm5, eax
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx eax, word [rcx + rsi + 4]
movd xmm0, eax
movzx eax, word [rcx + rsi + 6]
movd xmm1, eax
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add rsi, 8
add rdi, 0xfffffffffffffffe
jne 0x1401c7170
test dl, 1
je 0x1401c7263
movzx eax, word [rcx + rsi]
movd xmm2, eax
movzx eax, word [rcx + rsi + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x1402b7810]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x1401f5700]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rdx, xmm1
cmp rbx, r10
je 0x1401c7297
add rcx, r10
nop dword [rax]
xor eax, eax
cmp byte [rcx], 0xc0
lea rbx, [rcx + 1]
setge al
add rdx, rax
mov rcx, rbx
cmp rbx, r11
jne 0x1401c7280
test r9, r9
je 0x1401c732b
mov rax, r8
and rax, 0xfffffffffffffff8
xor ecx, ecx
cmp byte [r11 + rax], 0xc0
setge cl
cmp r9d, 1
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 1], 0xc0
setge bl
add rcx, rbx
cmp r9d, 2
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 2], 0xc0
setge bl
add rcx, rbx
cmp r9d, 3
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 3], 0xc0
setge bl
add rcx, rbx
cmp r9d, 4
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 4], 0xc0
setge bl
add rcx, rbx
cmp r9d, 5
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 5], 0xc0
setge bl
add rcx, rbx
cmp r9d, 6
je 0x1401c732d
xor ebx, ebx
cmp byte [r11 + rax + 6], 0xc0
setge bl
add rcx, rbx
jmp 0x1401c732d
xor ecx, ecx
add rcx, rdx
shr r8, 3
movabs r10, 0xff00ff00ff00ff
movabs r9, 0x1000100010001
pcmpeqd xmm1, xmm1
movdqa xmm0, xmmword [0x1401f69d0]
jmp 0x1401c7390
xor ecx, ecx
lea r11, [r15 + rdx*8]
mov r8, r13
sub r8, rdx
mov rdx, rcx
and rdx, r10
shr rcx, 8
and rcx, r10
add rcx, rdx
imul rcx, r9
shr rcx, 0x30
add rcx, rax
test r14, r14
jne 0x1401c744a
mov rax, rcx
test r8, r8
je 0x1401c757e
mov r13, r8
mov r15, r11
cmp r8, 0xc0
mov edx, 0xc0
cmovb rdx, r8
mov r12d, edx
and r12d, 0xfc
mov r14d, edx
and r14d, 3
test r12, r12
je 0x1401c7360
mov rbx, r12
shr rbx, 2
shl rbx, 5
xor ecx, ecx
mov rsi, r15
nop dword [rax + rax]
test rsi, rsi
je 0x1401c7362
movdqu xmm2, xmmword [rsi]
movdqu xmm3, xmmword [rsi + 0x10]
add rsi, 0x20
movdqa xmm4, xmm2
pxor xmm4, xmm1
movdqa xmm5, xmm3
pxor xmm5, xmm1
psrlq xmm5, 7
psrlq xmm4, 7
psrlq xmm3, 6
por xmm3, xmm5
psrlq xmm2, 6
por xmm2, xmm4
pand xmm3, xmm0
pand xmm2, xmm0
paddq xmm2, xmm3
pshufd xmm3, xmm2, 0xee
paddq xmm3, xmm2
movq rdi, xmm3
add rcx, rdi
add rbx, 0xffffffffffffffe0
jne 0x1401c73e0
jmp 0x1401c7362
test r15, r15
je 0x1401c7474
lea r8, [r15 + r12*8]
lea rax, [r14 - 1]
movabs r11, 0x1fffffffffffffff
and r11, rax
cmp r11, 3
jae 0x1401c747b
xor eax, eax
mov rdx, r8
jmp 0x1401c7527
xor eax, eax
jmp 0x1401c7563
inc r11
mov rbx, r11
and rbx, 0xfffffffffffffffc
lea rdx, [r8 + rbx*8]
cmp r13, 0xc0
mov eax, 0xc0
cmovb rax, r13
and eax, 0xfc
lea rax, [r15 + rax*8]
add rax, 0x10
pxor xmm1, xmm1
xor esi, esi
pcmpeqd xmm3, xmm3
pxor xmm2, xmm2
nop word cs:[rax + rax]
movdqu xmm4, xmmword [rax + rsi*8 - 0x10]
movdqu xmm5, xmmword [rax + rsi*8]
movdqa xmm6, xmm4
pxor xmm6, xmm3
movdqa xmm7, xmm5
pxor xmm7, xmm3
psrlq xmm6, 7
psrlq xmm7, 7
psrlq xmm4, 6
por xmm4, xmm6
psrlq xmm5, 6
por xmm5, xmm7
pand xmm4, xmm0
paddq xmm1, xmm4
pand xmm5, xmm0
paddq xmm2, xmm5
add rsi, 4
cmp rbx, rsi
jne 0x1401c74c0
paddq xmm2, xmm1
pshufd xmm0, xmm2, 0xee
paddq xmm0, xmm2
movq rax, xmm0
cmp r11, rbx
je 0x1401c7563
lea rbx, [r8 + r14*8]
movabs r8, 0x101010101010101
nop word cs:[rax + rax]
mov rsi, qword [rdx]
add rdx, 8
mov rdi, rsi
not rdi
shr rdi, 7
shr rsi, 6
or rsi, rdi
and rsi, r8
add rax, rsi
cmp rdx, rbx
jne 0x1401c7540
mov rdx, rax
and rdx, r10
shr rax, 8
and rax, r10
add rax, rdx
imul rax, r9
shr rax, 0x30
add rax, rcx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
pxor xmm0, xmm0
xor esi, esi
pxor xmm1, xmm1
test dl, 1
jne 0x1401c720e
jmp 0x1401c7263