Function at 0x14002f490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140063d40]
mov rbx, r9
mov rax, qword [0x140063d40]
sub r9d, 1
movsxd rax, r9d
mov r10, r8
mov r14, rcx
js 0x14002f4e4
nop dword [rax]
cmp qword [r8 + rax*8], 0
jne 0x14002f5c1
dec r9d
sub rax, 1
jns 0x14002f4d0
xor r13d, r13d
mov eax, 0xfa
mov qword [rsp + 0x70], rbp
mov r15d, 0
lea r12, [r13 + 7]
shr r12, 3
mov ecx, 0x1e
cmp r12, 4
cmova eax, ecx
test r12b, 7
mov dword [rsp + 0x88], eax
mov rax, r12
setne r15b
shr rax, 3
add r15, rax
lea rdi, [r15*8]
mov rsi, rdi
sub rsi, r12
mov qword [rsp + 0x20], rsi
cmp rbx, r15
jb 0x14002f7f0
mov r8, rsi
xor edx, edx
mov rcx, r14
call fcn.1400326f0
mov r8, rbx
add rdi, r14
sub r8, r15
xor edx, edx
shl r8, 3
mov rcx, rdi
call fcn.1400326f0
mov rcx, qword [rsp + 0x98]
lea rdx, [rsi + r14]
mov r8, r12
call qword [rsp + 0x90]
mov ebp, eax
test eax, eax
jne 0x14002f5f5
test r15, r15
je 0x14002f5f5
lea rax, [rdi - 8]
mov r8, r14
cmp r14, rax
ja 0x14002f5f5
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rax]
mov rdx, qword [r8]
bswap rcx
mov qword [r8], rcx
add r8, 8
bswap rdx
mov qword [rax], rdx
sub rax, 8
cmp r8, rax
jbe 0x14002f5a0
jmp 0x14002f5fd
movsxd r8, r9d
movabs rcx, 0x8000000000000000
xor eax, eax
mov rdx, qword [r10 + r8*8]
test rcx, rdx
jne 0x14002f5e5
shr rcx, 1
inc rax
cmp rax, 0x40
jb 0x14002f5d4
lea r13, [r8 + 1]
shl r13, 6
sub r13, rax
jmp 0x14002f4e7
test ebp, ebp
jne 0x14002f7e5
lea rsi, [r12*8]
xor edi, edi
sub rsi, r13
mov rax, rsi
and esi, 0x3f
shr rax, 6
cmp rax, rbx
ja 0x14002f6c8
jne 0x14002f628
test rsi, rsi
jne 0x14002f6c8
test rax, rax
je 0x14002f67b
xor r9d, r9d
mov rdx, rbx
sub rdx, rax
je 0x14002f661
mov rcx, r14
lea r8, [rax*8]
mov r9, rdx
nop word [rax + rax]
mov rax, qword [r8 + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x14002f650
cmp r9, rbx
jae 0x14002f67b
mov r8, rbx
lea rcx, [r14 + r9*8]
sub r8, r9
xor edx, edx
shl r8, 3
call fcn.1400326f0
test rsi, rsi
je 0x14002f6da
mov r9, rbx
test rbx, rbx
je 0x14002f6da
mov r10d, 0x40
lea r8, [rbx - 1]
sub r10, rsi
lea r8, [r14 + r8*8]
nop dword [rax]
mov rdx, qword [r8]
lea r8, [r8 - 8]
mov rcx, rsi
mov rax, rdx
shr rax, cl
mov rcx, r10
or rax, rdi
mov rdi, rdx
shl rdi, cl
mov qword [r8 + 8], rax
sub r9, 1
jne 0x14002f6a0
jmp 0x14002f6da
lea r8, [rbx*8]
xor edx, edx
mov rcx, r14
call fcn.1400326f0
sub dword [rsp + 0x88], 1
je 0x14002f7e9
mov r9, qword [0x140063d40]
mov r8, qword [0x140063d40]
xor r8, qword [rsp + 0x78]
mov rax, qword [r14]
mov rcx, r8
xor r9, rax
mov rax, qword [0x140063d40]
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140063d40]
mov rdx, rcx
neg rcx
shr rdx, 1
neg rdx
or rdx, rcx
shr rdx, 0x3f
neg rdx
xor rax, rdx
and rdx, r8
not rax
and r9, rax
mov rax, qword [0x140063d40]
mov rdi, qword [0x140063d40]
or r9, rdx
shr r9, 0x3f
mov edx, 1
xor rax, r9
mov r8, rax
neg rax
shr r8, 1
neg r8
or r8, rax
shr r8, 0x3f
dec r8
cmp rdx, rbx
jae 0x14002f7af
nop dword [rax]
mov rax, qword [r14 + rdx*8]
inc rdx
mov rcx, qword [0x140063d40]
xor rcx, rax
mov rax, rcx
neg rcx
shr rax, 1
neg rax
or rax, rcx
shr rax, 0x3f
neg rax
or rdi, rax
cmp rdx, rbx
jb 0x14002f780
mov rdx, qword [rsp + 0x80]
or rdi, r8
mov r8, rbx
mov rcx, r14
call fcn.14002ec30
mov rcx, qword [0x140063d40]
and rax, rdi
mov rsi, qword [rsp + 0x20]
lea rdi, [r15*8]
cmp rax, rcx
je 0x14002f537
mov eax, ebp
jmp 0x14002f7f5
mov eax, 0xfffffff2
jmp 0x14002f7f5
mov eax, 0xfffffffc
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret