Function at 0x1400a9b98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor edi, edi
mov r15, r8
mov r9, rdx
mov rbx, rcx
cmp byte [rcx + 8], dil
je 0x1400a9ecc
mov eax, dword [rcx + 0x3d0]
cmp eax, 0x10
jne 0x1400a9bdb
call fcn.1400a974c
jmp 0x1400a9eb4
cdq
lea r11, [rbx + 0x458]
and edx, 3
mov rcx, rdi
add eax, edx
mov r8, r11
sar eax, 2
movsxd rbp, eax
lea rax, [0x140000000]
cmp ebp, 6
mov rsi, rbp
setne cl
inc rcx
cmp ebp, 4
cmove rcx, rdi
shl rcx, 5
mov r14d, dword [rcx + rax + 0xbf8fc]
mov r13d, dword [rcx + rax + 0xbf904]
mov ecx, dword [rcx + rax + 0xbf90c]
mov dword [rsp + 0xa0], ecx
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x28], r13d
test ebp, ebp
jle 0x1400a9c97
lea r10, [rbx + 0x1ec]
mov r12, rbp
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
mov dword [r8], eax
movzx edx, byte [r9 - 3]
shl edx, 0x10
or edx, eax
mov dword [r8], edx
movzx ecx, byte [r9 - 2]
shl ecx, 8
or ecx, edx
mov rdx, r8
mov dword [r8], ecx
movzx eax, byte [r9 - 1]
or eax, ecx
mov dword [r8], eax
add r8, 4
xor eax, dword [r10]
lea r10, [r10 + 4]
mov dword [rdx], eax
sub r12, 1
jne 0x1400a9c48
mov ecx, dword [rsp + 0xa0]
mov r12d, 1
cmp dword [rbx + 0x3d4], r12d
jle 0x1400a9de5
lea eax, [rbp*4]
mov r10, 0xfffffffffffffdb4
cdqe
lea rdx, [rbx + 0x438]
mov qword [rsp + 0x38], rax
lea r15, [rbx + 0x458]
mov qword [rsp + 0x30], r10
test rsi, rsi
jle 0x1400a9d9a
mov r11d, r13d
mov dword [rsp + 0x20], r14d
mov r13d, dword [rsp + 0x20]
sub r11d, r14d
sub ecx, r14d
mov rdi, r15
mov r14, rsi
lea r15, [0x140000000]
mov esi, ecx
lea eax, [r11 + r13]
cdq
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [rsi + r13]
cdq
sar rcx, 8
idiv ebp
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [r15 + r8*4 + 0xc0d70]
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, r13d
cdq
inc r13d
idiv ebp
xor r9d, dword [r15 + rcx*4 + 0xc0970]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r15 + rax*4 + 0xc1170]
movzx eax, byte [rdi + 3]
xor r9d, dword [r15 + rax*4 + 0xc1570]
xor r9d, dword [r10 + rdi]
mov dword [rdi - 0x20], r9d
lea rdi, [rdi + 4]
sub r14, 1
jne 0x1400a9cfd
mov r14d, dword [rsp + 0x24]
lea r15, [rbx + 0x458]
mov r13d, dword [rsp + 0x28]
lea rdx, [rbx + 0x438]
mov rax, qword [rsp + 0x38]
xor edi, edi
mov rsi, rbp
mov r8, rax
mov rcx, r15
call fcn.140076960
mov r10, qword [rsp + 0x30]
lea rdx, [rbx + 0x438]
mov ecx, dword [rsp + 0xa0]
add r10, 0x20
mov rax, qword [rsp + 0x38]
inc r12d
mov qword [rsp + 0x30], r10
cmp r12d, dword [rbx + 0x3d4]
jl 0x1400a9cd2
mov r15, qword [rsp + 0xb0]
lea r11, [rbx + 0x458]
test rsi, rsi
jle 0x1400a9eb4
mov r9d, dword [rsp + 0xa0]
lea r10, [0x140000000]
sub r14d, r13d
sub r9d, r13d
movsxd rax, dword [rbx + 0x3d4]
lea r11, [r11 + 4]
lea rcx, [rdi + rax*8]
inc rdi
mov r8d, dword [rbx + rcx*4 + 0x1ec]
mov eax, r8d
movzx ecx, byte [r11 - 1]
sar eax, 0x18
xor al, byte [rcx + r10 + 0xc2970]
mov byte [r15], al
lea eax, [r14 + r13]
cdq
lea r15, [r15 + 4]
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + r10 + 0xc2970]
mov byte [r15 - 3], al
mov eax, r13d
cdq
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + r10 + 0xc2970]
mov byte [r15 - 2], al
lea eax, [r9 + r13]
cdq
inc r13d
idiv ebp
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
xor r8b, byte [rcx + r10 + 0xc2970]
mov byte [r15 - 1], r8b
cmp rdi, rsi
jl 0x1400a9e03
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [0x1400d64b8]
lea rcx, [rsp + 0x40]
call fcn.14000fd14
lea rdx, [0x1400cc270]
lea rcx, [rsp + 0x40]
call fcn.1400778e8
int3