Function at 0x14006b6b0
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 rax, qword [rcx + 0x70]
mov r11, rcx
mov r13, qword [rcx + 8]
mov ebp, edx
sub ebp, r13d
mov qword [rsp + 0x68], rax
mov rax, qword [rcx + 0x38]
mov r12, rdx
mov qword [rsp + 0x20], rax
movabs r15, 0xcf1bbcdcbb000000
mov qword [rsp + 0x58], rdx
mov eax, ebp
sub eax, dword [r11 + 0x1c]
mov edx, 1
mov qword [rsp + 0x78], r8
mov r8d, dword [rcx + 0x34]
mov ecx, dword [rcx + 0x100]
shl edx, cl
mov ecx, ebp
sub ecx, edx
mov qword [rsp + 0x80], r9
cmp eax, edx
mov dword [rsp + 0x4c], r8d
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 + 4]
mov qword [rsp + 0x60], r13
cmp eax, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x70], rdx
cmovb ecx, eax
mov qword [rsp + 0x40], r14
lea eax, [rdi + 1]
shl eax, cl
mov dword [rsp + 0x50], eax
cmp dword [r11 + 0x12c], edi
jne 0x14006ba06
mov ebx, dword [r11 + 0x2c]
lea esi, [rdi + 0x38]
mov eax, ebp
sub eax, ebx
cmp eax, 0x180
jbe 0x14006b8fa
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x14006b857
mov rdi, qword [rsp + 0x68]
mov r14d, esi
mov rbp, qword [rsp + 0x20]
lea rsi, [r13 + 8]
sub r14d, r8d
mov r13d, ebx
add rsi, rbx
mov r12d, eax
mov rdx, qword [rsi]
mov ecx, r14d
imul rdx, r15
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rax + rbp]
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, 4
and r9d, 0xffffff0
lea r8, [r9 + rbp]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
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 [rdi + rax*4], ebx
inc ebx
cmp ebx, r12d
jb 0x14006b7c7
mov ebp, dword [rsp + 0x28]
xor edi, edi
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
lea esi, [rdi + 0x38]
mov rcx, qword [r11 + 0x70]
lea ebx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea r10, [rbx + r13]
mov rcx, qword [r11 + 0x38]
lea rax, [r12 + 1]
mov qword [rsp + 0x28], rcx
mov r9d, ebx
cmp r10, rax
jbe 0x14006b881
mov eax, edi
jmp 0x14006b891
sub eax, r13d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x14006b893
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x14006b8fa
mov r12, qword [rsp + 0x38]
mov r8d, esi
sub r8d, dword [r11 + 0x34]
mov r13, qword [rsp + 0x28]
mov r14d, ecx
mov rdx, qword [r10]
mov ecx, r8d
imul rdx, r15
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 + r13]
mov rax, r9
inc r10
and eax, 7
inc r9
mov dword [r11 + rax*4 + 0x40], edx
sub r14, 1
jne 0x14006b8ae
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rax, qword [r11 + 0x70]
mov rcx, qword [r11 + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [r11 + 8]
cmp ebx, ebp
jae 0x14006b9b9
mov r12, qword [rsp + 0x38]
lea rdi, [rax + 8]
mov r13d, esi
mov r14d, ebx
sub r13d, dword [r11 + 0x34]
mov rsi, rcx
add rdi, r14
mov rdx, qword [rdi]
mov ecx, r13d
imul rdx, r15
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 + rsi]
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 + rsi]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
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 [r12 + rax*4], ebx
inc ebx
cmp ebx, ebp
jb 0x14006b92c
mov r14, qword [rsp + 0x40]
xor edi, edi
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
lea esi, [rdi + 0x38]
sub esi, dword [rsp + 0x4c]
mov cl, sil
mov r8d, ebp
mov dword [r11 + 0x2c], ebp
mov rdx, qword [r8 + r13 + 8]
imul rdx, r15
xor rdx, qword [rsp + 0x70]
shr rdx, cl
mov rcx, qword [rsp + 0x68]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r10, qword [rsp + 0x20]
prefetcht0 byte [rax + r10]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x14006ba2a
mov r9, qword [r12]
mov ecx, 0x38
mov r10, qword [rsp + 0x20]
sub ecx, r8d
imul r9, r15
mov dword [r11 + 0x2c], ebp
xor r9, rdx
shr r9, cl
mov rcx, qword [rsp + 0x68]
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 4
mov rbx, rdi
and eax, 0xffffff0
lea rcx, [rcx + rax*4]
lea rsi, [rax + r10]
mov qword [rsp + 0x20], rcx
movdqu xmm0, xmmword [rsi]
movzx r15d, byte [rsi]
mov r8, qword [rsp + 0x20]
and r15d, 0xf
movsx eax, r9b
mov ecx, r15d
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
mov cl, r15b
movzx r10d, ax
movzx eax, dx
shr rax, cl
or r10, rax
jbe 0x14006bad9
mov edx, dword [rsp + 0x50]
mov r14d, dword [rsp + 0x30]
test edx, edx
je 0x14006bad4
bsf rcx, r10
add ecx, r15d
and ecx, 0xf
je 0x14006bacb
mov ecx, dword [r8 + rcx*4]
cmp ecx, r14d
jb 0x14006bad4
prefetcht0 byte [rcx + r13]
mov dword [rsp + rbx*4 + 0x90], ecx
inc rbx
dec edx
lea rax, [r10 - 1]
and r10, rax
ja 0x14006baa1
mov r14, qword [rsp + 0x40]
movzx edx, byte [rsi]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [rsi], dl
mov byte [rsi + rdx], r9b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov dword [r8 + rdx*4], ecx
test rbx, rbx
je 0x14006bb5b
mov r8, qword [rsp + 0x78]
mov r11, qword [rsp + 0x80]
mov edx, dword [rsp + rdi*4 + 0x90]
mov eax, dword [r14 + r12 - 3]
add rdx, r13
cmp dword [rdx + r14 - 3], eax
jne 0x14006bb53
mov rcx, r12
call fcn.14009ec70
cmp rax, r14
jbe 0x14006bb53
mov ecx, ebp
mov r14, rax
sub ecx, dword [rsp + rdi*4 + 0x90]
add ecx, 3
mov qword [r11], rcx
lea rcx, [rax + r12]
cmp rcx, r8
je 0x14006bb5b
inc rdi
cmp rdi, rbx
jb 0x14006bb15
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