Function at 0x1400695e4
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, qword [rcx + 0x70]
mov r11, rcx
mov r10d, dword [rcx + 0x34]
mov r15, rdx
mov qword [rsp + 0x60], rax
mov r13d, r15d
mov rax, qword [rcx + 0x38]
movabs rbp, 0xcf1bbcdcbf9b0000
mov qword [rsp + 0x68], rax
mov eax, dword [r11 + 0x18]
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x48], r8
mov r8, qword [rcx + 8]
mov rcx, qword [rcx + 0x10]
sub r13d, r8d
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x98], r9
lea rdx, [rax + r8]
mov dword [rsp + 0x50], r10d
add rax, rcx
mov qword [rsp + 0x90], rdx
mov ecx, dword [r11 + 0x100]
mov edx, 1
shl edx, cl
mov ecx, r13d
sub ecx, edx
mov qword [rsp + 0x80], rax
mov eax, r13d
mov qword [rsp + 0x40], r8
sub eax, dword [r11 + 0x1c]
cmp eax, edx
mov dword [rsp + 0x20], r13d
mov eax, dword [r11 + 0x10c]
cmovbe ecx, dword [r11 + 0x1c]
xor esi, esi
cmp dword [r11 + 0x28], esi
mov rdx, qword [r11 + 0x60]
cmovne ecx, dword [r11 + 0x1c]
mov dword [rsp + 0x30], ecx
lea r12d, [rsi + 3]
lea ecx, [rsi + 4]
mov qword [rsp + 0x88], rdx
cmp eax, ecx
mov qword [rsp + 0x38], r12
cmovb ecx, eax
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x54], eax
cmp dword [r11 + 0x12c], esi
jne 0x140069971
mov ebx, dword [r11 + 0x2c]
lea edi, [rsi + 0x38]
mov eax, r13d
sub eax, ebx
cmp eax, 0x180
jbe 0x14006985e
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x1400697c0
mov rsi, qword [rsp + 0x60]
mov r14d, edi
mov r13, qword [rsp + 0x68]
lea rdi, [r8 + 8]
sub r14d, r10d
mov r12d, ebx
add rdi, rbx
mov r15d, eax
mov rdx, qword [rdi]
mov ecx, r14d
imul rdx, rbp
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r12
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 4
and r9d, 0xffffff0
lea r8, [r9 + r13]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r12
not ecx
inc rdi
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rsi + rax*4], ebx
inc ebx
cmp ebx, r15d
jb 0x14006972c
mov r15, qword [rsp + 0x58]
mov edi, 0x38
mov r13d, dword [rsp + 0x20]
xor esi, esi
mov r12, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rcx, qword [r11 + 0x70]
lea ebx, [r13 - 0x20]
mov qword [rsp + 0x28], rcx
lea r10, [rbx + r8]
mov rcx, qword [r11 + 0x38]
lea rax, [r15 + 1]
mov qword [rsp + 0x70], rcx
mov r9d, ebx
cmp r10, rax
jbe 0x1400697ea
mov eax, esi
jmp 0x1400697fa
sub eax, r8d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x1400697fc
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x14006985e
mov r12, qword [rsp + 0x28]
mov r8d, edi
sub r8d, dword [r11 + 0x34]
mov r15, qword [rsp + 0x70]
mov r14d, ecx
mov rdx, qword [r10]
mov ecx, r8d
imul rdx, rbp
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + r15]
mov rax, r9
inc r10
and eax, 7
inc r9
mov dword [r11 + rax*4 + 0x40], edx
sub r14, 1
jne 0x140069817
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
mov rax, qword [r11 + 0x70]
mov rcx, qword [r11 + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [r11 + 8]
cmp ebx, r13d
jae 0x14006991c
mov r15, qword [rsp + 0x70]
lea rsi, [rax + 8]
mov r12d, edi
mov r14d, ebx
sub r12d, dword [r11 + 0x34]
mov rdi, rcx
add rsi, r14
mov rdx, qword [rsi]
mov ecx, r12d
imul rdx, rbp
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
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, 4
and r9d, 0xffffff0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc rsi
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r15 + rax*4], ebx
inc ebx
cmp ebx, r13d
jb 0x140069891
mov r15, qword [rsp + 0x58]
mov edi, 0x38
mov r12, qword [rsp + 0x38]
xor esi, esi
mov rax, qword [rsp + 0x40]
sub edi, dword [rsp + 0x50]
mov cl, dil
mov r8d, r13d
mov dword [r11 + 0x2c], r13d
mov rdx, qword [r8 + rax + 8]
imul rdx, rbp
xor rdx, qword [rsp + 0x88]
shr rdx, cl
mov rcx, qword [rsp + 0x60]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r10, qword [rsp + 0x68]
prefetcht0 byte [rax + r10]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x140069994
mov r9, qword [r15]
mov ecx, 0x38
sub ecx, r10d
mov dword [r11 + 0x2c], r13d
mov r10, qword [rsp + 0x68]
imul r9, rbp
xor r9, rdx
shr r9, cl
mov rcx, qword [rsp + 0x60]
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 4
mov rdi, rsi
and eax, 0xffffff0
lea r14, [rcx + rax*4]
lea rbx, [rax + r10]
movsx eax, r9b
movdqu xmm0, xmmword [rbx]
movzx ebp, byte [rbx]
and ebp, 0xf
movd xmm1, eax
mov ecx, ebp
punpcklbw xmm1, xmm1
neg ecx
and ecx, 0xf
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
mov cl, bpl
movzx r10d, ax
movzx eax, dx
shr rax, cl
or r10, rax
jbe 0x140069a53
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x54]
mov r12, qword [rsp + 0x78]
mov r13d, dword [rsp + 0x30]
test r8d, r8d
je 0x140069a49
bsf rcx, r10
add ecx, ebp
and ecx, 0xf
mov ecx, dword [r14 + rcx*4]
je 0x140069a40
cmp ecx, r13d
jb 0x140069a49
cmp ecx, dword [rsp + 0x24]
jb 0x140069a2e
prefetcht0 byte [rcx + rdx]
jmp 0x140069a33
prefetcht0 byte [rcx + r12]
mov dword [rsp + rdi*4 + 0xa0], ecx
inc rdi
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x140069a09
mov r13d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x38]
movzx edx, byte [rbx]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [rbx], dl
mov byte [rbx + rdx], r9b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov dword [r14 + rdx*4], ecx
test rdi, rdi
je 0x140069b5e
mov r8, qword [rsp + 0x48]
mov ebp, dword [rsp + rsi*4 + 0xa0]
mov ecx, ebp
cmp ebp, dword [rsp + 0x24]
jb 0x140069abc
mov rdx, qword [rsp + 0x40]
mov eax, dword [r12 + r15 - 3]
add rdx, rcx
cmp dword [rdx + r12 - 3], eax
jne 0x140069b52
mov rcx, r15
call fcn.14009ec70
jmp 0x140069b2e
mov rdx, qword [rsp + 0x78]
mov eax, dword [r15]
cmp dword [rbp + rdx], eax
jne 0x140069b52
mov r8, qword [rsp + 0x48]
lea r11, [rdx + 4]
add r11, rcx
lea r14, [r15 + 4]
mov rcx, qword [rsp + 0x80]
mov rax, r14
sub rax, r11
mov rdx, r11
add rcx, rax
cmp rcx, r8
cmovb r8, rcx
mov rcx, r14
call fcn.14009ec70
mov r8, qword [rsp + 0x48]
mov rbx, rax
add rax, r11
cmp rax, qword [rsp + 0x80]
jne 0x140069b2a
mov rdx, qword [rsp + 0x90]
lea rcx, [rbx + r14]
call fcn.14009ec70
add rbx, rax
lea rax, [rbx + 4]
cmp rax, r12
jbe 0x140069b52
mov rdx, qword [rsp + 0x98]
mov ecx, r13d
sub ecx, ebp
mov r12, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, r8
je 0x140069b5e
inc rsi
cmp rsi, rdi
jb 0x140069a8b
mov rax, r12
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret