Function at 0x1400d36a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
lea r10, [rcx + 7]
and r10, 0xfffffffffffffff8
mov r9, r10
sub r9, rcx
mov r8, rdx
sub r8, r9
jb 0x1400d36f9
cmp r8, 8
jae 0x1400d3715
test rdx, rdx
je 0x1400d370e
cmp rdx, 4
jae 0x1400d372b
xor eax, eax
xor r8d, r8d
jmp 0x1400d37c0
xor eax, eax
jmp 0x1400d3c98
mov eax, r8d
and eax, 7
cmp r10, rcx
jne 0x1400d37dc
xor edx, edx
jmp 0x1400d388d
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400f5f40]
movdqa xmm3, xmmword [0x1400e4850]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400d3750
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400d3c98
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400d37c0
jmp 0x1400d3c98
cmp r9, 4
jae 0x1400d37ec
xor edx, edx
xor r10d, r10d
jmp 0x1400d3876
mov r10d, r9d
and r10d, 4
pxor xmm0, xmm0
xor edx, edx
movdqa xmm2, xmmword [0x1400f5f40]
movdqa xmm3, xmmword [0x1400e4850]
pxor xmm1, xmm1
nop dword [rax]
movzx r11d, word [rcx + rdx]
movd xmm4, r11d
movzx r11d, word [rcx + rdx + 2]
movd xmm5, r11d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rdx, 4
cmp r10, rdx
jne 0x1400d3810
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rdx, xmm0
jmp 0x1400d3888
xor r11d, r11d
cmp byte [rcx + r10], 0xc0
setge r11b
add rdx, r11
inc r10
cmp r9, r10
jne 0x1400d3876
add rcx, r9
test rax, rax
je 0x1400d3928
mov r9, r8
and r9, 0xfffffffffffffff8
xor ebx, ebx
cmp byte [rcx + r9], 0xc0
setge bl
cmp eax, 1
je 0x1400d392a
xor r10d, r10d
cmp byte [rcx + r9 + 1], 0xc0
setge r10b
add rbx, r10
cmp eax, 2
je 0x1400d392a
xor r10d, r10d
cmp byte [rcx + r9 + 2], 0xc0
setge r10b
add rbx, r10
cmp eax, 3
je 0x1400d392a
xor r10d, r10d
cmp byte [rcx + r9 + 3], 0xc0
setge r10b
add rbx, r10
cmp eax, 4
je 0x1400d392a
xor r10d, r10d
cmp byte [rcx + r9 + 4], 0xc0
setge r10b
add rbx, r10
cmp eax, 5
je 0x1400d392a
xor r10d, r10d
cmp byte [rcx + r9 + 5], 0xc0
setge r10b
add rbx, r10
cmp eax, 6
je 0x1400d392a
xor eax, eax
cmp byte [rcx + r9 + 6], 0xc0
setge al
add rbx, rax
jmp 0x1400d392a
xor ebx, ebx
add rbx, rdx
shr r8, 3
movabs r9, 0xff00ff00ff00ff
movabs rdx, 0x1000100010001
movabs rdi, 0x7ffffffffffffff
pcmpeqd xmm0, xmm0
movdqa xmm1, xmmword [0x1400f5f50]
jmp 0x1400d3990
xor ebx, ebx
lea rcx, [r10 + rsi*8]
sub r8, rsi
and esi, 3
mov r14, rbx
and r14, r9
shr rbx, 8
and rbx, r9
add rbx, r14
imul rbx, rdx
shr rbx, 0x30
add rbx, rax
test rsi, rsi
jne 0x1400d3c12
mov rax, rbx
test r8, r8
je 0x1400d3c98
mov r10, rcx
cmp r8, 0xc0
mov esi, 0xc0
cmovb rsi, r8
mov r11, rsi
and r11, 0xfc
je 0x1400d3960
mov ecx, esi
shr ecx, 2
lea r15, [rcx - 1]
and r15, rdi
cmp r15, 3
jae 0x1400d39e0
xor ebx, ebx
mov r14, r10
jmp 0x1400d3ba5
inc r15
mov r12, r15
and r12, 0xfffffffffffffffc
mov r14, r12
shl r14, 5
add r14, r10
lea rbx, [r10 + 0x40]
pxor xmm5, xmm5
mov r13, r12
pxor xmm4, xmm4
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rbx - 0x40]
movdqu xmm6, xmmword [rbx - 0x20]
movdqa xmm3, xmm2
punpcklqdq xmm3, xmm6
movdqa xmm7, xmm3
pxor xmm7, xmm0
psrlq xmm7, 7
psrlq xmm3, 6
por xmm3, xmm7
pand xmm3, xmm1
paddq xmm3, xmm5
movdqu xmm5, xmmword [rbx - 0x30]
movdqu xmm10, xmmword [rbx - 0x10]
movdqu xmm11, xmmword [rbx + 0x30]
movdqu xmm7, xmmword [rbx + 0x20]
movdqu xmm9, xmmword [rbx]
movdqa xmm8, xmm9
punpcklqdq xmm8, xmm7
movdqa xmm12, xmm8
pxor xmm12, xmm0
psrlq xmm12, 7
psrlq xmm8, 6
por xmm8, xmm12
pand xmm8, xmm1
paddq xmm8, xmm4
movdqu xmm4, xmmword [rbx + 0x10]
punpckhqdq xmm2, xmm6
punpckhqdq xmm9, xmm7
movdqa xmm7, xmm5
punpcklqdq xmm7, xmm10
movdqa xmm6, xmm4
punpcklqdq xmm6, xmm11
punpckhqdq xmm5, xmm10
punpckhqdq xmm4, xmm11
movdqa xmm10, xmm2
pxor xmm10, xmm0
movdqa xmm11, xmm9
pxor xmm11, xmm0
psrlq xmm10, 7
psrlq xmm11, 7
psrlq xmm2, 6
por xmm2, xmm10
psrlq xmm9, 6
por xmm9, xmm11
pand xmm2, xmm1
pand xmm9, xmm1
movdqa xmm10, xmm7
pxor xmm10, xmm0
movdqa xmm11, xmm6
pxor xmm11, xmm0
psrlq xmm10, 7
psrlq xmm11, 7
psrlq xmm7, 6
por xmm7, xmm10
psrlq xmm6, 6
por xmm6, xmm11
pand xmm7, xmm1
paddq xmm7, xmm2
paddq xmm7, xmm3
pand xmm6, xmm1
paddq xmm6, xmm9
paddq xmm6, xmm8
movdqa xmm2, xmm5
pxor xmm2, xmm0
movdqa xmm3, xmm4
pxor xmm3, xmm0
psrlq xmm2, 7
psrlq xmm3, 7
psrlq xmm5, 6
por xmm5, xmm2
psrlq xmm4, 6
por xmm4, xmm3
pand xmm5, xmm1
paddq xmm5, xmm7
pand xmm4, xmm1
paddq xmm4, xmm6
sub rbx, 0xffffffffffffff80
add r13, 0xfffffffffffffffc
jne 0x1400d3a10
paddq xmm4, xmm5
pshufd xmm2, xmm4, 0xee
paddq xmm2, xmm4
movq rbx, xmm2
cmp r15, r12
je 0x1400d3962
shl rcx, 5
add rcx, r10
nop dword [rax]
movdqu xmm2, xmmword [r14]
movdqu xmm3, xmmword [r14 + 0x10]
movdqa xmm4, xmm2
pxor xmm4, xmm0
movdqa xmm5, xmm3
pxor xmm5, xmm0
psrlq xmm5, 7
psrlq xmm4, 7
psrlq xmm3, 6
por xmm3, xmm5
psrlq xmm2, 6
por xmm2, xmm4
pand xmm3, xmm1
pand xmm2, xmm1
paddq xmm2, xmm3
pshufd xmm3, xmm2, 0xee
paddq xmm3, xmm2
movq r15, xmm3
add rbx, r15
add r14, 0x20
cmp r14, rcx
jne 0x1400d3bb0
jmp 0x1400d3962
mov rcx, qword [r10 + r11*8]
mov rax, rcx
not rax
shr rax, 7
shr rcx, 6
or rcx, rax
movabs rax, 0x101010101010101
and rcx, rax
cmp esi, 1
je 0x1400d3c76
mov r8, qword [r10 + r11*8 + 8]
mov rdi, r8
not rdi
shr rdi, 7
shr r8, 6
or r8, rdi
and r8, rax
add rcx, r8
cmp esi, 2
je 0x1400d3c76
mov r8, qword [r10 + r11*8 + 0x10]
mov r10, r8
not r10
shr r10, 7
shr r8, 6
or r8, r10
and r8, rax
add rcx, r8
and r9, rcx
shr rcx, 8
movabs rax, 0x700ff00ff00ff
and rax, rcx
add rax, r9
imul rax, rdx
shr rax, 0x30
add rax, rbx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret