Function at 0x14006ac80
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 r12, qword [rcx + 8]
mov r11, rcx
mov rax, qword [rcx + 0x38]
mov esi, edx
mov r10, qword [rcx + 0x70]
sub esi, r12d
mov qword [rsp + 0x50], rax
mov r13, rdx
mov qword [rsp + 0x48], rdx
mov eax, esi
sub eax, dword [r11 + 0x1c]
mov edx, 1
mov qword [rsp + 0x68], r8
mov r8d, dword [rcx + 0x34]
mov ecx, dword [rcx + 0x100]
shl edx, cl
mov ecx, esi
sub ecx, edx
mov qword [rsp + 0x70], r9
cmp eax, edx
mov qword [rsp + 0x60], 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 + 0x28], ecx
lea r15d, [rdi + 3]
lea ecx, [rdi + 5]
mov dword [rsp + 0x40], r8d
cmp eax, ecx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x78], rdx
cmovb ecx, eax
mov qword [rsp + 0x38], r15
lea eax, [rdi + 1]
shl eax, cl
mov dword [rsp + 0x44], eax
cmp dword [r11 + 0x12c], edi
jne 0x14006afe4
mov ebx, dword [r11 + 0x2c]
lea ebp, [rdi + 0x18]
mov eax, esi
sub eax, ebx
cmp eax, 0x180
jbe 0x14006aecd
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x14006ae27
mov rdi, qword [rsp + 0x50]
lea r13, [r12 + 8]
mov ecx, ebp
mov r14d, ebx
sub ecx, r8d
mov r15d, eax
mov qword [rsp + 0x30], rcx
add r13, rbx
mov r12d, ecx
mov rbp, r10
mov eax, dword [r11 + 0x60]
mov rcx, r12
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [rax + rdi]
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, 3
and r9d, 0x1fffffe0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc r13
and ecx, 0x1f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rbp + rax*4], ebx
inc ebx
cmp ebx, r15d
jb 0x14006ad8c
mov r15, qword [rsp + 0x38]
xor edi, edi
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
lea ebp, [rdi + 0x18]
mov rcx, qword [r11 + 0x70]
lea ebx, [rsi - 0x20]
mov qword [rsp + 0x30], rcx
lea r9, [rbx + r12]
mov rcx, qword [r11 + 0x38]
lea rax, [r13 + 1]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
cmp r9, rax
jbe 0x14006ae50
mov eax, edi
jmp 0x14006ae60
sub eax, r12d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x14006ae62
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x14006aecd
mov r15, qword [rsp + 0x30]
mov r14d, ebp
sub r14d, dword [r11 + 0x34]
mov r13, qword [rsp + 0x20]
mov r10d, ecx
mov eax, dword [r11 + 0x60]
mov rcx, r14
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
mov rax, r8
inc r9
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r10, 1
jne 0x14006ae7d
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
mov rcx, qword [r11 + 0x38]
mov rax, qword [r11 + 0x70]
mov qword [rsp + 0x20], rcx
mov rcx, qword [r11 + 8]
cmp ebx, esi
jae 0x14006af90
mov r13, qword [rsp + 0x20]
lea r15, [rcx + 8]
mov r12d, ebp
mov r14d, ebx
sub r12d, dword [r11 + 0x34]
mov rdi, rax
add r15, r14
mov eax, dword [r11 + 0x60]
mov rcx, r12
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
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, 3
and r9d, 0x1fffffe0
lea r8, [r9 + r13]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc r15
and ecx, 0x1f
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, esi
jb 0x14006aeff
mov r15, qword [rsp + 0x38]
xor edi, edi
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov eax, dword [rsp + 0x78]
mov ecx, ebp
sub ecx, dword [rsp + 0x40]
mov r10, qword [rsp + 0x60]
mov dword [r11 + 0x2c], esi
imul edx, dword [rsi + r12 + 8], 0x9e3779b1
mov r8d, esi
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [r10 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x50]
prefetcht0 byte [rax + rcx]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x14006b005
imul r9d, dword [r13], 0x9e3779b1
mov ecx, 0x18
sub ecx, r8d
mov eax, edx
mov dword [r11 + 0x2c], esi
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x50]
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 3
xorps xmm0, xmm0
and eax, 0x1fffffe0
mov rbx, rdi
movups xmmword [rsp + 0x78], xmm0
lea r14, [rax + rcx]
mov rcx, rdi
lea rbp, [r10 + rax*4]
mov rdx, r14
movzx r10d, byte [r14]
movsx eax, r9b
and r10d, 0x1f
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, 2
jl 0x14006b04b
mov edx, dword [rsp + 0x7c]
mov ecx, r10d
neg ecx
shl edx, 0x10
or edx, dword [rsp + 0x78]
and ecx, 0x1f
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r10d
shr rax, cl
or r8, rax
je 0x14006b0d3
mov edx, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x28]
test edx, edx
je 0x14006b0ce
bsf rcx, r8
add ecx, r10d
and ecx, 0x1f
je 0x14006b0c5
mov ecx, dword [rbp + rcx*4]
cmp ecx, r15d
jb 0x14006b0ce
prefetcht0 byte [rcx + r12]
mov dword [rsp + rbx*4 + 0x90], ecx
inc rbx
dec edx
lea rax, [r8 - 1]
and r8, rax
ja 0x14006b09b
mov r15, qword [rsp + 0x38]
movzx edx, byte [r14]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x1f
add edx, ecx
mov byte [r14], dl
mov byte [rdx + r14], r9b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov dword [rbp + rdx*4], ecx
test rbx, rbx
je 0x14006b154
mov r8, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
mov edx, dword [rsp + rdi*4 + 0x90]
mov eax, dword [r15 + r13 - 3]
add rdx, r12
cmp dword [rdx + r15 - 3], eax
jne 0x14006b14c
mov rcx, r13
call fcn.14009ec70
cmp rax, r15
jbe 0x14006b14c
mov ecx, esi
mov r15, rax
sub ecx, dword [rsp + rdi*4 + 0x90]
add ecx, 3
mov qword [r11], rcx
lea rcx, [rax + r13]
cmp rcx, r8
je 0x14006b154
inc rdi
cmp rdi, rbx
jb 0x14006b10e
mov rax, r15
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