Function at 0x14000a50c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rbx, rcx
call fcn.14000245c
lea rdi, [rbx + 0x10]
mov rcx, rdi
call fcn.14000245c
and qword [rbx + 0x20], 0
lea rcx, [rbp - 0x10]
call fcn.14000245c
mov edx, 1
lea rcx, [rbp - 0x10]
call fcn.14000a424
test eax, eax
je 0x14000a796
cmp dword [rbp - 0x10], 0
je 0x14000a796
mov rdx, qword [rbp - 8]
mov esi, 4
mov r8d, esi
mov rcx, rbx
call qword [0x140018780]
mov rdx, qword [rbp - 8]
mov r8d, esi
add rdx, rsi
mov rcx, rdi
call qword [0x140018780]
mov esi, dword [rbx]
test esi, esi
je 0x14000a78d
cmp dword [rdi], 0
je 0x14000a78d
call qword [0x140018750]
mov r8d, esi
mov esi, 8
mov edx, esi
mov rcx, rax
call qword [0x140018758]
mov qword [rbx + 8], rax
call qword [0x140018750]
mov r8d, dword [rdi]
mov edx, esi
mov rcx, rax
call qword [0x140018758]
mov rdx, qword [rbp - 8]
mov r8d, dword [rbx]
add rdx, rsi
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x18], rax
call qword [0x140018780]
mov ecx, dword [rbx]
mov rdx, qword [rbp - 8]
mov r8d, dword [rdi]
add rdx, rsi
add rdx, rcx
mov rcx, qword [rbx + 0x18]
call qword [0x140018780]
lea rcx, [rbp - 0x10]
call fcn.14000241c
mov r10d, dword [rbx]
xor r8d, r8d
mov r11d, dword [rdi]
movabs r15, 0x8080808080808081
mov rsi, qword [rbx + 0x18]
mov r9, qword [rbx + 8]
test r10, r10
je 0x14000a658
xor edx, edx
mov rax, r8
div r11
mov rax, r15
mov rcx, rdx
mul r8
mov al, byte [rcx + rsi]
shr rdx, 7
add al, dl
add al, r8b
xor byte [r8 + r9], al
inc r8
cmp r8, r10
jb 0x14000a62f
lea rcx, [rbp - 0x10]
call fcn.14000245c
mov edx, 3
lea rcx, [rbp - 0x10]
call fcn.14000a424
test eax, eax
je 0x14000a774
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x14000a774
mov r11d, dword [rdi]
xor r8d, r8d
mov rdi, qword [rbx + 0x18]
mov r9d, eax
mov r10, qword [rbp - 8]
test eax, eax
je 0x14000a6c0
xor edx, edx
mov rax, r8
div r11
mov rax, r15
mov rcx, rdx
mul r8
mov al, byte [rcx + rdi]
shr rdx, 7
add al, dl
add al, r8b
xor byte [r8 + r10], al
inc r8
cmp r8, r9
jb 0x14000a697
mov edx, 0x15
lea rcx, [0x140013d28]
lea r8d, [rdx + 0x47]
call fcn.140003998
lea rcx, [0x14001a060]
call fcn.14000da30
mov rcx, rax
mov rdi, rax
call fcn.1400048d8
mov qword [rbx + 0x20], rax
test rdi, rdi
je 0x14000a709
call qword [0x140018750]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [0x140018768]
mov edx, 0xb
lea rcx, [0x140013d18]
lea r8d, [rdx + 0x50]
call fcn.140003998
lea rcx, [0x14001a060]
call fcn.14000da30
mov rcx, qword [rbx + 0x20]
mov rdi, rax
call qword [0x140018858]
mov rcx, qword [rbx + 0x20]
mov r8d, 0x16
mov rdx, rdi
lea rcx, [rcx + rax*2]
call qword [0x140018780]
test rdi, rdi
je 0x14000a767
call qword [0x140018750]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [0x140018768]
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp - 0x10]
call fcn.140004e14
lea rcx, [rbp - 0x10]
call fcn.14000241c
lea rcx, [rbx + 0x30]
call fcn.1400046ec
mov eax, 1
jmp 0x14000a798
lea rcx, [rbp - 0x10]
call fcn.14000241c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret