Function at 0x1400663a4
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, qword [rcx + 8]
mov r11, rcx
mov rax, qword [rcx + 0x38]
mov r13, rdx
mov r10, qword [rcx + 0x70]
mov r15d, edx
mov qword [rsp + 0x20], rax
sub r15d, r14d
mov eax, dword [rcx + 0x18]
mov rdi, qword [r11 + 0x60]
mov dword [rsp + 0x4c], eax
add rax, r14
mov qword [rbp - 0x68], rax
mov eax, r15d
sub eax, dword [r11 + 0x1c]
mov qword [rsp + 0x30], rdx
mov edx, 1
mov qword [rbp - 0x78], r9
mov r9, qword [r13]
mov qword [rsp + 0x70], r8
mov r8d, dword [rcx + 0x34]
mov ecx, dword [rcx + 0x100]
shl edx, cl
mov ecx, r15d
sub ecx, edx
mov qword [rsp + 0x60], r10
cmp eax, edx
mov dword [rsp + 0x78], r8d
mov eax, dword [r11 + 0x10c]
cmovbe ecx, dword [r11 + 0x1c]
xor ebx, ebx
cmp dword [r11 + 0x28], ebx
mov rdx, qword [r11 + 0xf8]
cmovne ecx, dword [r11 + 0x1c]
mov dword [rsp + 0x48], ecx
lea esi, [rbx + 0x38]
lea ecx, [rbx + 5]
mov qword [rsp + 0x58], rdx
cmp eax, ecx
mov qword [rsp + 0x50], r14
lea r12d, [rbx + 3]
mov dword [rsp + 0x2c], r15d
cmovb ecx, eax
mov qword [rbp - 0x60], rdi
lea eax, [rbx + 1]
mov qword [rsp + 0x68], r12
shl eax, cl
mov ecx, esi
sub ecx, dword [rdx + 0x34]
mov rdx, qword [rdx + 0x38]
mov dword [rsp + 0x28], eax
movabs rax, 0xcf1bbcdcbf9b0000
imul r9, rax
mov rax, r9
mov qword [rbp - 0x80], r9
shr rax, cl
mov ecx, eax
mov qword [rbp - 0x80], rax
mov rax, qword [rsp + 0x58]
shr rcx, 3
and ecx, 0x1fffffe0
add rdx, rcx
mov rax, qword [rax + 0x70]
mov qword [rbp - 0x50], rdx
lea rax, [rax + rcx*4]
mov qword [rbp - 0x70], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rdx]
cmp dword [r11 + 0x12c], ebx
jne 0x1400667be
mov edi, dword [r11 + 0x2c]
mov eax, r15d
sub eax, edi
cmp eax, 0x180
jbe 0x140066690
lea eax, [rdi + 0x60]
mov dword [rsp + 0x40], eax
cmp edi, eax
jae 0x1400665d2
mov ebx, dword [rsp + 0x40]
lea r12, [r14 + 8]
mov r15, qword [rsp + 0x20]
mov eax, esi
sub eax, r8d
mov r13d, edi
add r12, rdi
mov r14d, eax
mov rsi, r10
mov rdx, qword [r12]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov ecx, r14d
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov ecx, 0x1fffffe0
mov eax, edx
shr rax, 3
and rax, rcx
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
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, 3
and r9, rcx
lea r8, [r9 + r15]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
not ecx
inc r12
and ecx, 0x1f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rsi + rax*4], edi
inc edi
cmp edi, ebx
jb 0x14006652e
mov r15d, dword [rsp + 0x2c]
xor ebx, ebx
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
lea esi, [rbx + 0x38]
mov rcx, qword [r11 + 0x70]
lea edi, [r15 - 0x20]
mov qword [rsp + 0x40], rcx
lea r10, [rdi + r14]
mov rcx, qword [r11 + 0x38]
lea rax, [r13 + 1]
mov qword [rsp + 0x38], rcx
mov r9d, edi
cmp r10, rax
jbe 0x1400665fc
mov eax, ebx
jmp 0x14006660c
sub eax, r14d
mov ecx, 8
sub eax, edi
inc eax
cmp eax, ecx
ja 0x14006660e
mov ecx, eax
lea eax, [rcx + rdi]
cmp edi, eax
jae 0x14006668b
mov r13, qword [rsp + 0x40]
mov r8d, esi
sub r8d, dword [r11 + 0x34]
movabs r15, 0xcf1bbcdcbf9b0000
mov r14, qword [rsp + 0x38]
mov r12d, ecx
mov rdx, qword [r10]
mov ecx, r8d
imul rdx, r15
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [r14 + rax]
mov rax, r9
inc r10
and eax, 7
inc r9
mov dword [r11 + rax*4 + 0x40], edx
sub r12, 1
jne 0x140066633
mov r15d, dword [rsp + 0x2c]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
mov r10, qword [rsp + 0x60]
mov rax, qword [r11 + 0x70]
mov rcx, qword [r11 + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [r11 + 8]
cmp edi, r15d
jae 0x140066767
mov rbx, qword [rsp + 0x40]
lea r12, [rax + 8]
mov r13d, esi
mov r14d, edi
sub r13d, dword [r11 + 0x34]
mov rsi, rcx
add r12, r14
mov rdx, qword [r12]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov ecx, r13d
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov ecx, 0x1fffffe0
mov eax, edx
shr rax, 3
and rax, rcx
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [rsi + rax]
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 r9, rcx
lea r8, [r9 + rsi]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc r12
and ecx, 0x1f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rbx + rax*4], edi
inc edi
cmp edi, r15d
jb 0x1400666c3
mov r12, qword [rsp + 0x68]
xor ebx, ebx
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
mov r10, qword [rsp + 0x60]
lea esi, [rbx + 0x38]
sub esi, dword [rsp + 0x78]
movabs rax, 0xcf1bbcdcbf9b0000
mov r8d, r15d
mov cl, sil
mov dword [r11 + 0x2c], r15d
mov rdx, qword [r8 + r14 + 8]
imul rdx, rax
xor rdx, qword [rbp - 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [r10 + rax*4 + 0x40]
mov rdi, qword [rsp + 0x20]
prefetcht0 byte [rax + rdi]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1400667d3
sub esi, r8d
mov dword [r11 + 0x2c], r15d
xor r9, rdi
mov cl, sil
mov rdi, qword [rsp + 0x20]
shr r9, cl
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 3
xorps xmm0, xmm0
and eax, 0x1fffffe0
mov rsi, rbx
movups xmmword [rbp - 0x60], xmm0
lea rcx, [r10 + rax*4]
lea r14, [rax + rdi]
mov qword [rsp + 0x20], rcx
movzx r10d, byte [r14]
mov rdi, rbx
movsx eax, r9b
and r10d, 0x1f
mov rcx, rbx
mov rdx, r14
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp + rcx*4 - 0x60], eax
inc rcx
cmp rcx, 2
jl 0x140066820
mov edx, dword [rbp - 0x5c]
mov ecx, r10d
neg ecx
shl edx, 0x10
or edx, dword [rbp - 0x60]
and ecx, 0x1f
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r10d
shr rax, cl
or r8, rax
je 0x1400668b3
mov edx, dword [rsp + 0x28]
mov r13, qword [rsp + 0x20]
mov r12d, dword [rsp + 0x48]
test edx, edx
je 0x1400668a5
bsf rcx, r8
add ecx, r10d
and ecx, 0x1f
je 0x14006689c
mov ecx, dword [r13 + rcx*4]
cmp ecx, r12d
jb 0x1400668a5
mov eax, ecx
add rax, qword [rsp + 0x50]
prefetcht0 byte [rax]
mov dword [rbp + rdi*4 - 0x40], ecx
inc rdi
dec edx
lea rax, [r8 - 1]
and r8, rax
ja 0x14006686f
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
mov dword [rsp + 0x28], edx
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 rax, qword [rsp + 0x20]
mov dword [rax + rdx*4], ecx
test rdi, rdi
je 0x14006693f
mov r11, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rbp - 0x78]
mov edx, dword [rbp + rsi*4 - 0x40]
mov eax, dword [r12 + r13 - 3]
add rdx, rbx
cmp dword [rdx + r12 - 3], eax
jne 0x140066935
mov r8, r11
mov rcx, r13
call fcn.14009ec70
mov r8, rax
cmp rax, r12
jbe 0x140066935
mov r12, rax
mov eax, r15d
sub eax, dword [rbp + rsi*4 - 0x40]
add eax, 3
mov qword [r14], rax
lea rax, [r12 + r13]
cmp rax, r11
je 0x14006693d
inc rsi
cmp rsi, rdi
jb 0x1400668f6
xor ebx, ebx
mov r11, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rcx, qword [rbp - 0x80]
mov rsi, rbx
mov rdx, qword [rbp - 0x50]
movsx eax, cl
mov rcx, rbx
mov r10, qword [r11 + 8]
mov rdi, qword [r11]
mov r14d, r10d
movzx r9d, byte [rdx]
sub r14d, edi
add r14d, dword [rsp + 0x4c]
movd xmm2, eax
and r9d, 0x1f
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x20], rdi
movups xmmword [rbp - 0x50], xmm0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp + rcx*4 - 0x50], eax
inc rcx
cmp rcx, 2
jl 0x140066991
mov edx, dword [rbp - 0x4c]
mov ecx, r9d
neg ecx
shl edx, 0x10
or edx, dword [rbp - 0x50]
and ecx, 0x1f
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r9d
shr rax, cl
or r8, rax
je 0x140066ac7
mov edx, dword [rsp + 0x28]
mov r15, qword [rbp - 0x70]
test edx, edx
je 0x140066a13
bsf rcx, r8
add ecx, r9d
and ecx, 0x1f
je 0x140066a0a
mov ecx, dword [r15 + rcx*4]
cmp ecx, dword [r11 + 0x18]
jb 0x140066a13
prefetcht0 byte [rcx + r10]
mov dword [rbp + rsi*4 - 0x40], ecx
inc rsi
dec edx
lea rax, [r8 - 1]
and r8, rax
ja 0x1400669e2
mov r15d, dword [rsp + 0x2c]
test rsi, rsi
je 0x140066ac7
mov r11d, dword [rbp + rbx*4 - 0x40]
mov eax, dword [r13]
add r11, r10
cmp dword [r11], eax
jne 0x140066abb
mov r8, qword [rsp + 0x70]
add r13, 4
add r11, 4
mov rcx, r13
sub rcx, r11
mov rdx, r11
add rcx, rdi
cmp rcx, r8
cmovb r8, rcx
mov rcx, r13
call fcn.14009ec70
mov rdi, rax
add rax, r11
mov r11, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x20]
jne 0x140066a83
mov rdx, qword [rbp - 0x68]
lea rcx, [rdi + r13]
mov r8, r11
call fcn.14009ec70
add rdi, rax
mov r13, qword [rsp + 0x30]
add rdi, 4
cmp rdi, r12
jbe 0x140066ab1
mov rax, qword [rbp - 0x78]
mov ecx, r15d
sub ecx, dword [rbp + rbx*4 - 0x40]
mov r12, rdi
sub ecx, r14d
add ecx, 3
mov qword [rax], rcx
lea rcx, [rdi + r13]
cmp rcx, r11
je 0x140066ac7
mov rdi, qword [rsp + 0x20]
mov r10, qword [rsp + 0x58]
inc rbx
cmp rbx, rsi
jb 0x140066a21
mov rax, r12
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret