Function at 0x14006f6a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r10, rdx
mov r9, rcx
movzx eax, byte [r8 + 0x17]
mov edi, eax
and edi, 0x7f
test al, al
mov rbx, qword [r8]
cmovns rbx, r8
cmovs rdi, qword [r8 + 8]
cmp rdi, 0x20
jbe 0x14006f7d6
mov qword [rsp + 0x30], r10
cmp rdi, 0x40
ja 0x14006faa2
mov rcx, qword [rbx + 0x10]
mov r10, qword [rbx + 0x18]
mov rsi, qword [rbx + rdi - 0x10]
lea rdx, [rsi + rdi]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [rbx]
lea r8, [rdx + r10]
rol r8, 0xc
mov r15, rdx
rol r15, 0x1b
add rdx, qword [rbx + 8]
mov r11, rdx
rol r11, 0x39
add rdx, rcx
add rcx, qword [rbx + rdi - 0x20]
mov r14, qword [rbx + rdi - 8]
add r14, r10
lea r12, [r14 + rcx]
rol r12, 0xc
mov r13, rcx
rol r13, 0x1b
add rcx, qword [rbx + rdi - 0x18]
add r11, r15
mov r15, rcx
rol r15, 0x39
add rcx, rsi
add r14, rcx
rol rcx, 0x21
add r13, r10
add r13, r15
add r13, r12
add r13, rcx
add r13, rdx
rol rdx, 0x21
add r11, r8
add rdx, r11
movabs rcx, 0x9ae16a3b2f90404f
imul r13, rcx
add r14, rdx
imul r14, rax
add r14, r13
mov r8, r14
shr r8, 0x2f
xor r8, r14
imul r8, rax
add r8, rdx
mov r14, r8
shr r14, 0x2f
xor r14, r8
imul r14, rcx
mov r10, qword [rsp + 0x30]
mov r12, qword [r9 + 8]
test r12, r12
jne 0x14006f875
xor esi, esi
mov qword [r10], rsi
mov rax, r10
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rdi, 0x10
jbe 0x14006f94c
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [rbx]
mov rdx, qword [rbx + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [rbx + rdi - 8]
movabs r8, 0xc3a5c85c97cb3127
imul r8, qword [rbx + rdi - 0x10]
mov rsi, r10
movabs r10, 0xc949d7c7509e6557
xor r10, rdx
rol r10, 0x2c
add r10, rcx
add r10, rdi
sub rcx, rdx
rol rcx, 0x15
sub r10, rax
rol rax, 0x22
add rax, r8
add rax, rcx
xor rax, r10
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r10, rax
shr rax, 0x2f
xor rax, r10
mov r10, rsi
imul rax, rcx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rcx
jmp 0x14006f7b0
mov rax, r12
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r12
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r13, 0x101010101010101
imul r13, rax
shr r13, 0x38
cmp r13, 1
jbe 0x14006fd09
mov r15, r14
cmp r14, r12
jb 0x14006f8ee
mov rax, r14
xor edx, edx
div r12
mov r15, rdx
mov rax, qword [r9]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x14006f7bd
mov rbp, qword [rax]
test rbp, rbp
je 0x14006f7bd
lea r8, [r12 - 1]
xor esi, esi
mov rax, qword [rbp + 8]
cmp r14, rax
je 0x14006fa32
cmp r13d, 1
jbe 0x14006fd01
cmp rax, r12
jb 0x14006f935
xor edx, edx
div r12
mov rax, rdx
cmp rax, r15
jne 0x14006f7bf
mov rbp, qword [rbp]
test rbp, rbp
jne 0x14006f911
jmp 0x14006f7bf
cmp rdi, 9
jb 0x14006f998
mov rax, qword [rbx + rdi - 8]
lea rdx, [rax + rdi]
mov ecx, edi
ror rdx, cl
mov rcx, qword [rbx]
xor rcx, rdx
movabs r8, 0x9ddfea08eb382d69
imul rcx, r8
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r8
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, r8
xor r14, rax
jmp 0x14006f7b0
cmp rdi, 4
jb 0x14006f9da
mov eax, dword [rbx]
mov ecx, dword [rbx + rdi - 4]
lea rax, [rdi + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rdx
jmp 0x14006f7b0
movabs r14, 0x9ae16a3b2f90404f
test rdi, rdi
je 0x14006f7b0
movzx eax, byte [rbx]
mov rcx, rdi
shr rcx, 1
movzx ecx, byte [rbx + rcx]
movzx edx, byte [rdi + rbx - 1]
shl rcx, 8
or rcx, rax
lea rax, [rdi + rdx*4]
imul rcx, r14
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r14, rax
jmp 0x14006f7b0
movzx ecx, byte [rbp + 0x27]
mov eax, ecx
and eax, 0x7f
mov rdx, rax
test cl, cl
jns 0x14006fa46
mov rdx, qword [rbp + 0x18]
cmp rdx, rdi
jne 0x14006f93e
test cl, cl
js 0x14006fa76
test al, al
je 0x14006fa6e
xor ecx, ecx
mov dl, byte [rbp + rcx + 0x10]
cmp dl, byte [rbx + rcx]
jne 0x14006f93e
inc rcx
cmp rax, rcx
jne 0x14006fa59
mov rsi, rbp
jmp 0x14006f7bf
mov rcx, qword [rbp + 0x10]
mov rdx, rbx
mov qword [rsp + 0x28], r8
mov r8, rdi
mov qword [rsp + 0x30], r10
call fcn.14007f160
mov r8, qword [rsp + 0x28]
mov r10, qword [rsp + 0x30]
test eax, eax
je 0x14006fa6e
jmp 0x14006f93e
movabs rbp, 0xb492b66fbe98f273
movabs r15, 0x9ddfea08eb382d69
mov r14, qword [rbx + rdi - 0x28]
mov rax, qword [rbx + rdi - 0x10]
mov rcx, qword [rbx + rdi - 0x38]
mov r8, qword [rbx + rdi - 0x30]
lea rdx, [rcx + rax]
mov r11, qword [rbx + rdi - 0x18]
lea rsi, [r8 + rdi]
xor rsi, r11
imul rsi, r15
mov r10, r11
xor r10, rsi
shr rsi, 0x2f
xor rsi, r10
imul rsi, r15
mov r10, rsi
shr r10, 0x2f
xor r10, rsi
imul r10, r15
mov rsi, qword [rbx + rdi - 0x40]
add rsi, rdi
lea r12, [rsi + r14]
mov qword [rsp + 0x28], r10
add r12, r10
rol r12, 0x2b
add r8, rcx
add r8, rsi
mov r15, r8
rol r15, 0x14
add r15, rsi
add r15, r12
add r8, r14
mov rcx, qword [rbx + rdi - 0x20]
add rcx, rdx
mov rsi, qword [rbx + rdi - 8]
add rcx, rbp
lea r13, [rsi + r14]
add r13, rcx
rol r13, 0x2b
add r11, rax
add r11, rcx
mov r12, r11
rol r12, 0x14
add r12, rcx
add r12, r13
imul r14, rbp
add r14, qword [rbx]
add r11, rsi
lea rax, [rdi - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rcx, qword [rsp + 0x28]
add r14, r8
add r14, rdx
mov rax, qword [rbx + rbp + 8]
mov rsi, qword [rbx + rbp + 0x10]
add r14, rax
rol r14, 0x1b
add rdx, r15
mov r10, qword [rbx + rbp + 0x30]
mov qword [rsp + 0x40], r10
add rdx, r10
rol rdx, 0x16
movabs r13, 0xb492b66fbe98f273
imul r14, r13
mov r10, rdx
imul r10, r13
xor r14, r12
mov r13, qword [rbx + rbp + 0x28]
add r8, r13
mov rdx, r8
add rdx, r10
add rcx, r11
movabs r8, 0xb492b66fbe98f273
imul r15, r8
mov r10, qword [rbx + rbp + 0x18]
add r15, qword [rbx + rbp]
add r11, r10
add r11, r15
mov qword [rsp + 0x28], r14
add r11, r14
rol r11, 0x2b
add rax, rsi
add rax, r15
mov r8, rax
rol r8, 0x14
add r15, r8
add r15, r11
rol rcx, 0x1f
mov r8, rax
mov r14, rcx
movabs rax, 0xb492b66fbe98f273
imul r14, rax
add r8, r10
add r12, r14
mov rax, qword [rbx + rbp + 0x38]
add r12, qword [rbx + rbp + 0x20]
add rsi, rax
add rsi, rdx
add rsi, r12
add r13, qword [rsp + 0x40]
add r13, r12
mov rcx, r13
rol rcx, 0x14
add r12, rcx
rol rsi, 0x2b
add r12, rsi
mov r11, r13
add r11, rax
add rbp, 0x40
cmp qword [rsp + 0x38], rbp
jne 0x14006fb72
xor r15, r12
movabs r10, 0x9ddfea08eb382d69
imul r15, r10
xor r12, r15
shr r15, 0x2f
xor r15, r12
imul r15, r10
mov rax, r15
shr rax, 0x2f
xor rax, r15
imul rax, r10
add rax, r14
xor r8, r11
imul r8, r10
xor r11, r8
shr r8, 0x2f
xor r8, r11
imul r8, r10
mov rcx, r8
shr rcx, 0x2f
xor rcx, r8
imul rcx, r10
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
movabs rdx, 0xb492b66fbe98f273
imul r8, rdx
add r8, qword [rsp + 0x28]
add r8, rcx
xor r8, rax
imul r8, r10
xor rax, r8
shr r8, 0x2f
xor r8, rax
imul r8, r10
mov r14, r8
shr r14, 0x2f
xor r14, r8
imul r14, r10
jmp 0x14006f7ab
and rax, r8
jmp 0x14006f935
lea r15, [r12 - 1]
and r15, r14
jmp 0x14006f8ee