Function at 0x14006cf90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r15, qword [rcx + 8]
mov r11, rcx
mov r10, qword [rcx + 0x70]
mov ebp, edx
mov rbx, qword [rcx + 0x38]
sub ebp, r15d
mov r13, rdx
mov qword [rsp + 0x58], rdx
mov edx, 1
mov qword [rsp + 0x68], r8
mov r8d, dword [rcx + 0x34]
mov eax, ebp
mov ecx, dword [rcx + 0x100]
movabs r12, 0xcf1bbcdcbf9b0000
sub eax, dword [r11 + 0x1c]
shl edx, cl
mov ecx, ebp
sub ecx, edx
mov qword [rsp + 0x70], r9
cmp eax, edx
mov qword [rsp + 0x40], r10
mov eax, dword [r11 + 0x10c]
cmovbe ecx, dword [r11 + 0x1c]
xor edi, edi
cmp dword [r11 + 0x28], edi
mov rdx, qword [r11 + 0x60]
cmovne ecx, dword [r11 + 0x1c]
mov dword [rsp + 0x30], ecx
lea r14d, [rdi + 3]
lea ecx, [rdi + 6]
mov qword [rsp + 0x60], rbx
cmp eax, ecx
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x38], r15
cmovb ecx, eax
mov dword [rsp + 0x28], ebp
lea eax, [rdi + 1]
mov qword [rsp + 0x78], rdx
shl eax, cl
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x48], r14
cmp dword [r11 + 0x12c], edi
jne 0x14006d310
mov ebx, dword [r11 + 0x2c]
lea esi, [rdi + 0x38]
mov eax, ebp
sub eax, ebx
cmp eax, 0x180
jbe 0x14006d1ed
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x14006d140
mov rbp, qword [rsp + 0x60]
mov r13d, esi
lea rsi, [r15 + 8]
sub r13d, r8d
add rsi, rbx
mov r14d, ebx
mov r15d, eax
mov rdi, r10
mov rdx, qword [rsi]
mov ecx, r13d
imul rdx, r12
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
mov rax, r14
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 2
and r9d, 0x3fffffc0
lea r8, [r9 + rbp]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc rsi
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rdi + rax*4], ebx
inc ebx
cmp ebx, r15d
jb 0x14006d0a2
mov ebp, dword [rsp + 0x28]
xor edi, edi
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x38]
lea esi, [rdi + 0x38]
mov rcx, qword [r11 + 0x70]
lea ebx, [rbp - 0x20]
mov rdx, qword [r11 + 0x38]
lea r10, [rbx + r15]
lea rax, [r13 + 1]
mov qword [rsp + 0x28], rcx
mov r9d, ebx
cmp r10, rax
jbe 0x14006d164
mov eax, edi
jmp 0x14006d174
sub eax, r15d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x14006d176
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x14006d1e8
mov r13, qword [rsp + 0x28]
mov r8d, esi
sub r8d, dword [r11 + 0x34]
mov r15, rdx
mov r14d, ecx
mov rdx, qword [r10]
mov ecx, r8d
imul rdx, r12
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
mov rax, r9
inc r10
and eax, 7
inc r9
mov dword [r11 + rax*4 + 0x40], edx
sub r14, 1
jne 0x14006d18f
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov rax, qword [r11 + 0x70]
mov rcx, qword [r11 + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [r11 + 8]
cmp ebx, ebp
jae 0x14006d2bd
mov rdi, qword [rsp + 0x28]
lea r14, [rax + 8]
mov r15d, esi
mov r13d, ebx
sub r15d, dword [r11 + 0x34]
mov rsi, rcx
add r14, r13
mov rdx, qword [r14]
mov ecx, r15d
imul rdx, r12
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rsi]
prefetcht0 byte [rax + rsi + 0x20]
mov rax, r13
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 2
and r9d, 0x3fffffc0
lea r8, [r9 + rsi]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
not ecx
inc r14
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rdi + rax*4], ebx
inc ebx
cmp ebx, ebp
jb 0x14006d21f
mov r14, qword [rsp + 0x48]
xor edi, edi
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
lea esi, [rdi + 0x38]
sub esi, dword [rsp + 0x50]
mov r8d, ebp
mov cl, sil
mov dword [r11 + 0x2c], ebp
mov rdx, qword [r8 + r15 + 8]
imul rdx, r12
xor rdx, qword [rsp + 0x78]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [r10 + rax*4 + 0x40]
mov rbx, qword [rsp + 0x60]
prefetcht0 byte [rax + rbx]
prefetcht0 byte [rax + rbx + 0x20]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x14006d32a
mov r9, qword [r13]
mov ecx, 0x38
imul r9, r12
sub ecx, r8d
mov dword [r11 + 0x2c], ebp
xor r9, rdx
shr r9, cl
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov rcx, rdi
movups xmmword [rsp + 0x78], xmm0
lea rsi, [rax + rbx]
mov rbx, rdi
movzx r15d, byte [rsi]
lea r12, [r10 + rax*4]
movsx eax, r9b
mov rdx, rsi
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rsp + rcx*4 + 0x78], eax
inc rcx
cmp rcx, 4
jl 0x14006d36c
movsxd rax, dword [rsp + 0x80]
mov edx, r15d
movsxd r8, dword [rsp + 0x84]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rsp + 0x7c]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rsp + 0x78]
shl r8, 0x10
or r8, rax
mov r10, r8
shl r10, cl
mov ecx, edx
shr r8, cl
or r10, r8
je 0x14006d421
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x54]
mov r14d, dword [rsp + 0x30]
test r8d, r8d
je 0x14006d41c
bsf rcx, r10
add ecx, r15d
and ecx, 0x3f
je 0x14006d413
mov ecx, dword [r12 + rcx*4]
cmp ecx, r14d
jb 0x14006d41c
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbx*4 + 0x90], ecx
inc rbx
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x14006d3e8
mov r14, qword [rsp + 0x48]
lea edx, [r15 - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [rsi], dl
mov byte [rdx + rsi], r9b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov dword [r12 + rdx*4], ecx
test rbx, rbx
je 0x14006d4a1
mov r8, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
mov edx, dword [rsp + rdi*4 + 0x90]
add rdx, qword [rsp + 0x38]
mov eax, dword [r14 + r13 - 3]
cmp dword [rdx + r14 - 3], eax
jne 0x14006d499
mov rcx, r13
call fcn.14009ec70
cmp rax, r14
jbe 0x14006d499
mov ecx, ebp
mov r14, rax
sub ecx, dword [rsp + rdi*4 + 0x90]
add ecx, 3
mov qword [r11], rcx
lea rcx, [rax + r13]
cmp rcx, r8
je 0x14006d4a1
inc rdi
cmp rdi, rbx
jb 0x14006d459
mov rax, r14
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret