Function at 0x14000aa3c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rax, qword [rbp + 0x830]
mov r13, rcx
mov esi, dword [rbp + 0x840]
mov r12, qword [rbp + 0x838]
mov r15, qword [rbp + 0x848]
mov r14, qword [rbp + 0x850]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov byte [rsp + 0x40], dl
cmp esi, 0x18
jbe 0x14000aad8
test r15, r15
je 0x14000aabc
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 0x20]
call fcn.14002b250
test r14, r14
je 0x14000ace7
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 8]
call fcn.14002b250
jmp 0x14000ace7
xor edi, edi
lea rbx, [rcx + 0x148]
mov rdx, r8
mov rcx, rbx
call fcn.140018578
test al, al
je 0x14000ab0d
lea rcx, [rbx + 0x20]
cmp dword [rcx + 0x30], esi
jne 0x14000ab0d
mov rdx, qword [rsp + 0x48]
mov r8d, 0x10
call fcn.14002b5f0
test eax, eax
je 0x14000ab22
inc edi
add rbx, 0x98
cmp edi, 4
jae 0x14000ab6f
mov r8, qword [rsp + 0x50]
jmp 0x14000aae1
mov esi, 0x20
lea rdx, [rbx + 0x30]
mov r8d, esi
lea rcx, [rsp + 0x60]
call fcn.14002aba0
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov edx, esi
call fcn.140018600
lea rdx, [rbx + 0x54]
mov r8d, esi
lea rcx, [rbp - 0x80]
call fcn.14002aba0
lea rdx, [rbx + 0x74]
mov r8d, esi
lea rcx, [rbp - 0x60]
call fcn.14002aba0
jmp 0x14000ac60
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x40]
call fcn.14001c3c4
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x40]
call fcn.14002f910
mov r8, qword [rsp + 0x48]
lea rcx, [rbp - 0x40]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.14000a830
mov edx, 0x800
lea rcx, [rbp - 0x40]
call fcn.140018458
mov ecx, dword [r13 + 0x3a8]
mov eax, ecx
mov rdx, qword [rsp + 0x50]
and eax, 3
imul rdi, rax, 0x98
lea eax, [rcx + 1]
mov dword [r13 + 0x3a8], eax
add rdi, 0x148
add rdi, r13
mov rcx, rdi
mov dword [rdi + 0x50], esi
call fcn.14000b2f0
mov rdx, qword [rsp + 0x48]
lea rcx, [rdi + 0x20]
mov r8d, 0x10
call fcn.14002aba0
mov esi, 0x20
lea rdx, [rsp + 0x60]
mov r8d, esi
lea rcx, [rdi + 0x30]
call fcn.14002aba0
lea rcx, [rdi + 0x54]
mov r8d, esi
lea rdx, [rbp - 0x80]
call fcn.14002aba0
lea rcx, [rdi + 0x74]
mov r8d, esi
lea rdx, [rbp - 0x60]
call fcn.14002aba0
xor r9d, r9d
lea rcx, [rdi + 0x30]
mov r8b, 1
mov edx, esi
call fcn.140018600
test r15, r15
je 0x14000ac74
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.14002aba0
test r14, r14
je 0x14000acb5
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 8]
call fcn.14002b250
lea rdx, [rbp - 0x80]
xor r8d, r8d
mov r9, rsi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + r14], al
sub r9, 1
jne 0x14000ac91
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140018458
test r12, r12
je 0x14000acda
mov dl, byte [rsp + 0x40]
lea rcx, [r13 + 0x3b0]
mov r9d, 0x100
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x60]
call fcn.1400176e0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140018458
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.1400289c0
mov rbx, qword [rsp + 0x918]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret