Function at 0x1400669e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x70]
mov ebx, edx
sub ebx, r13d
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x38]
mov r15d, edx
sub r15d, r13d
mov qword [rsp + 0x30], r8
mov rsi, r8
mov qword [rsp + 0x40], rax
mov r10, rdx
mov qword [rsp + 0x58], r9
mov r9d, dword [rcx + 0x34]
mov r14d, 1
mov ecx, dword [rcx + 0x100]
mov edx, r14d
shl edx, cl
mov eax, ebx
mov ecx, dword [rdi + 0x1c]
mov r8d, ebx
sub eax, ecx
mov dword [rsp + 4], r9d
sub r8d, edx
mov qword [rsp + 0x20], r13
cmp eax, edx
mov dword [rsp], r15d
mov eax, dword [rdi + 0x10c]
mov ebp, 3
mov rdx, qword [rdi + 0x60]
cmovbe r8d, ecx
cmp dword [rdi + 0x28], 0
mov dword [rsp + 0x10], ebx
cmovne r8d, ecx
mov qword [rsp + 0x50], rdx
mov ecx, 4
mov dword [rsp + 0x28], r8d
cmp eax, ecx
mov dword [rsp + 8], 0xf
cmovb ecx, eax
xor r11d, r11d
shl r14d, cl
mov dword [rsp + 0xc], r14d
cmp dword [rdi + 0x12c], r11d
jne 0x140066d67
mov ebx, dword [rdi + 0x2c]
mov eax, r15d
sub eax, ebx
cmp eax, 0x180
jbe 0x140066c3c
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x140066b94
mov rbp, qword [rsp + 0x40]
lea r12, [r13 + 8]
mov r13, qword [rsp + 0x38]
mov r14d, 0x18
sub r14d, r9d
mov r15d, ebx
add r12, rbx
mov esi, eax
nop dword [rax]
mov eax, dword [rdi + 0x60]
mov rcx, r14
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [r13 + rax*4], ebx
inc ebx
cmp ebx, esi
jb 0x140066b00
mov rsi, qword [rsp + 0x30]
mov ebp, 3
mov r14d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov rcx, qword [rdi + 0x70]
lea ebx, [r15 - 0x20]
mov qword [rsp + 0x18], rcx
lea rax, [r10 + 1]
mov rcx, qword [rdi + 0x38]
lea r9, [rbx + r13]
mov qword [rsp + 0x48], rcx
mov ecx, eax
sub ecx, r13d
mov r8d, ebx
sub ecx, ebx
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [rbx + rcx]
cmp ebx, eax
jae 0x140066c3c
mov rsi, qword [rsp + 0x18]
mov r12d, 0x18
sub r12d, dword [rdi + 0x34]
mov r13, qword [rsp + 0x48]
mov r15d, ecx
nop dword [rax]
mov eax, dword [rdi + 0x60]
mov rcx, r12
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rdi + rax*4 + 0x40], edx
sub r15, 1
jne 0x140066bf0
mov rsi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov rcx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rdi + 8]
cmp ebx, r15d
jae 0x140066d14
mov rsi, qword [rsp + 0x18]
lea r12, [rcx + 8]
mov ebp, dword [rsp]
mov r14d, 0x18
sub r14d, dword [rdi + 0x34]
mov r13, rax
mov r15d, ebx
add r12, r15
nop word [rax + rax]
mov eax, dword [rdi + 0x60]
mov rcx, r14
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [rsi + rax]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + rsi]
lea rdx, [r8 + rsi]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], ebx
inc ebx
cmp ebx, ebp
jb 0x140066c80
mov rsi, qword [rsp + 0x30]
mov ebp, 3
mov r14d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov eax, dword [rsp + 0x50]
mov ecx, 0x18
sub ecx, dword [rsp + 4]
mov r8d, dword [rsp + 0x10]
mov dword [rdi + 0x2c], r15d
imul edx, dword [r8 + r13 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x38]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rsp + 0x40]
prefetcht0 byte [rax + r9]
and r8d, 7
mov r15d, dword [rdi + r8*4 + 0x40]
mov dword [rdi + r8*4 + 0x40], edx
jmp 0x140066d8b
imul r15d, dword [r10], 0x9e3779b1
mov ecx, 0x18
sub ecx, r9d
mov eax, edx
mov r9, qword [rsp + 0x40]
mov dword [rdi + 0x2c], ebx
xor r15, rax
shr r15, cl
mov rcx, qword [rsp + 0x38]
add dword [rdi + 0x68], r15d
mov eax, r15d
shr rax, 4
mov rbx, r11
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r9]
lea r13, [rcx + rax*4]
lea rcx, [rax + r9]
movzx eax, byte [rax + r9]
mov r12d, eax
mov dword [rsp + 4], eax
mov qword [rsp + 0x50], rcx
and r12d, 0xf
movsx eax, r15b
mov ecx, r12d
neg ecx
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
movzx ecx, r12b
movzx r9d, ax
movzx eax, dx
shr rax, cl
or r9, rax
jbe 0x140066e42
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
nop dword [rax]
test r14d, r14d
je 0x140066e42
bsf rcx, r9
add ecx, r12d
and ecx, 0xf
je 0x140066e39
mov ecx, dword [r13 + rcx*4]
cmp ecx, r8d
jb 0x140066e42
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbx*4 + 0x60], ecx
inc rbx
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x140066e10
mov ecx, dword [rsp + 4]
mov eax, r11d
dec ecx
mov edx, 0xf
and ecx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x50]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [rdi + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [rdi + 0x2c]
test rbx, rbx
je 0x140066f58
mov rdi, qword [rsp + 0x58]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [r10 + rbp - 3]
mov edx, r9d
add rdx, qword [rsp + 0x20]
cmp dword [rdx + rbp - 3], eax
jne 0x140066f4c
lea r8, [rsi - 7]
mov rax, r10
cmp r10, r8
jae 0x140066ee9
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x140066eba
bsf rcx, rcx
shr rcx, 3
jmp 0x140066f2e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x140066ee9
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x140066f7f
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x140066ed0
lea rcx, [rsi - 3]
cmp rax, rcx
jae 0x140066f00
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x140066f00
add rax, 4
add rdx, 4
lea rcx, [rsi - 1]
cmp rax, rcx
jae 0x140066f19
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x140066f19
add rax, 2
add rdx, 2
cmp rax, rsi
jae 0x140066f28
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x140066f28
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rbp
jbe 0x140066f4c
mov eax, dword [rsp + 0x10]
mov rbp, rcx
sub eax, r9d
add eax, 3
mov qword [rdi], rax
lea rax, [rcx + r10]
cmp rax, rsi
je 0x140066f58
inc r11
cmp r11, rbx
jb 0x140066e80
mov rax, rbp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400890e0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x140066f2e