Function at 0x14004aa30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rbx, r9
mov rdi, r8
mov rsi, rdx
call fcn.14001d8a0
mov r8, qword [rsp + 0xb0]
mov r15d, 8
lea rdx, [r8 + 0x20]
mov qword [rsp + 0x40], rdx
cmp rbx, 2
jb 0x14004ae20
mov rcx, rbx
mov qword [rsp + 0x70], r12
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x68], r13
add rbx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xc8], rbx
nop
mov r14, qword [rdx]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x30], 8
mov ebp, dword [r14 + 0x10]
lea r9, [r14 + 0x9c]
mov r12d, dword [r14 + 0x14]
mov r11d, ebp
mov r15d, dword [r14 + 0x18]
mov edi, r12d
mov r13d, dword [r14 + 0x1c]
mov ebx, r15d
xor r11d, dword [rsi]
mov eax, r13d
xor eax, dword [rsi + 0xc]
xor edi, dword [rsi + 4]
xor ebx, dword [rsi + 8]
xor ebp, dword [rsi + 0x10]
xor r12d, dword [rsi + 0x14]
xor r15d, dword [rsi + 0x18]
xor r13d, dword [rsi + 0x1c]
mov esi, eax
mov r14, qword [r8 + 8]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], r9
nop
mov r10d, dword [r9 - 4]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
movzx eax, al
mov r9d, dword [r9]
mov r8d, dword [r14 + rcx*4 + 0xc00]
ror ebx, 0x1f
xor r8d, dword [r14 + rax*4 + 0x800]
mov eax, edi
shr rax, 0x18
mov ecx, r11d
shr rcx, 0x18
ror r15d, 0x1f
xor r8d, dword [r14 + rax*4]
movzx eax, dil
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, r11d
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor ebx, eax
lea eax, [r9 + rdx]
add eax, r8d
xor eax, esi
mov esi, eax
shr eax, 1
shl esi, 0x1f
or esi, eax
mov eax, r12d
shr eax, 0x10
movzx ecx, al
mov eax, r12d
shr eax, 8
movzx eax, al
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov ecx, ebp
xor r8d, dword [r14 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r12d
shr rax, 0x18
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4]
movzx eax, r12b
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, ebp
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor r15d, eax
lea eax, [r9 + r8]
add eax, edx
xor eax, r13d
mov r13d, eax
shr eax, 1
shl r13d, 0x1f
or r13d, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov r9, qword [rsp + 0x28]
movzx eax, al
ror r11d, 0x1f
mov ecx, ebx
mov r10d, dword [r9 - 0xc]
xor r8d, dword [r14 + rax*4 + 0x800]
mov r9d, dword [r9 - 8]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
ror ebp, 0x1f
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4]
movzx eax, sil
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor r11d, eax
lea eax, [r9 + r8]
add eax, edx
xor eax, edi
mov edi, eax
shr eax, 1
shl edi, 0x1f
or edi, eax
mov eax, r13d
shr eax, 0x10
movzx ecx, al
mov eax, r13d
shr eax, 8
movzx eax, al
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov ecx, r15d
xor r8d, dword [r14 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r13d
shr rax, 0x18
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4]
movzx eax, r13b
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, r15d
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor ebp, eax
lea eax, [r9 + r8]
mov r9, qword [rsp + 0x28]
add eax, edx
xor eax, r12d
sub r9, 0x10
mov r12d, eax
mov qword [rsp + 0x28], r9
shl r12d, 0x1f
shr eax, 1
or r12d, eax
sub qword [rsp + 0x30], 1
jne 0x14004ab00
mov r14, qword [rsp + 0x50]
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x28], ebx
mov edx, dword [r14 + 4]
mov r8d, edx
mov r11d, dword [r14 + 0xc]
xor edx, esi
mov eax, dword [r14]
xor r8d, r13d
mov r9d, dword [r14 + 8]
mov ebx, r11d
mov rsi, qword [rsp + 0xb8]
xor r11d, edi
mov rdi, qword [rsp + 0xc0]
mov ecx, eax
xor eax, dword [rsp + 0x28]
mov r10d, r9d
xor r9d, dword [rsp + 0x20]
xor ecx, r15d
xor r10d, ebp
xor ebx, r12d
mov dword [rdi], eax
add rsi, 0x20
mov dword [rdi + 4], edx
mov rdx, qword [rsp + 0x40]
mov dword [rdi + 8], r9d
mov dword [rdi + 0xc], r11d
mov dword [rdi + 0x10], ecx
mov dword [rdi + 0x14], r8d
mov r8, qword [rsp + 0xb0]
mov dword [rdi + 0x18], r10d
mov dword [rdi + 0x1c], ebx
add rdi, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], rsi
jne 0x14004aaa0
mov r13, qword [rsp + 0x68]
mov r15d, 8
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
je 0x14004afad
mov r14, qword [rdx]
mov r11d, dword [rsi]
mov ebx, dword [rsi + 4]
mov r10d, dword [rsi + 8]
xor r11d, dword [r14 + 0x10]
lea rbp, [r14 + 0x9c]
xor ebx, dword [r14 + 0x14]
xor r10d, dword [r14 + 0x18]
mov esi, dword [rsi + 0xc]
xor esi, dword [r14 + 0x1c]
mov rax, qword [r8 + 8]
nop dword [rax]
nop dword [rax + rax]
mov ecx, ebx
ror r10d, 0x1f
shr ecx, 0x10
lea rbp, [rbp - 0x10]
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov r9d, dword [rax + rdx*4 + 0xc00]
mov edx, r11d
xor r9d, dword [rax + rcx*4 + 0x800]
shr rdx, 0x18
mov ecx, ebx
shr rcx, 0x18
mov r8d, dword [rax + rdx*4 + 0xc00]
xor r9d, dword [rax + rcx*4]
movzx ecx, bl
xor r9d, dword [rax + rcx*4 + 0x400]
mov ecx, r11d
shr ecx, 0x10
movzx ecx, cl
xor r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r11d
shr ecx, 8
movzx edx, cl
movzx ecx, r11b
ror r11d, 0x1f
xor r8d, dword [rax + rdx*4 + 0x400]
xor r8d, dword [rax + rcx*4]
mov ecx, dword [rbp + 0xc]
add r8d, r9d
add ecx, r8d
xor r10d, ecx
lea ecx, [r9 + r8]
add ecx, dword [rbp + 0x10]
xor ecx, esi
mov esi, ecx
shr ecx, 1
shl esi, 0x1f
or esi, ecx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, esi
shr ecx, 8
movzx ecx, cl
mov r9d, dword [rax + rdx*4 + 0xc00]
mov edx, r10d
xor r9d, dword [rax + rcx*4 + 0x800]
shr rdx, 0x18
mov ecx, esi
shr rcx, 0x18
mov r8d, dword [rax + rdx*4 + 0xc00]
xor r9d, dword [rax + rcx*4]
movzx ecx, sil
xor r9d, dword [rax + rcx*4 + 0x400]
mov ecx, r10d
shr ecx, 0x10
movzx ecx, cl
xor r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r10d
shr ecx, 8
movzx edx, cl
movzx ecx, r10b
xor r8d, dword [rax + rdx*4 + 0x400]
xor r8d, dword [rax + rcx*4]
mov ecx, dword [rbp + 4]
add r8d, r9d
add ecx, r8d
xor r11d, ecx
mov ecx, dword [rbp + 8]
add ecx, r9d
add ecx, r8d
xor ecx, ebx
mov ebx, ecx
shr ecx, 1
shl ebx, 0x1f
or ebx, ecx
sub r15, 1
jne 0x14004ae60
xor ebx, dword [r14 + 0xc]
xor r11d, dword [r14 + 8]
xor esi, dword [r14 + 4]
xor r10d, dword [r14]
mov dword [rdi], r10d
mov dword [rdi + 4], esi
mov dword [rdi + 8], r11d
mov dword [rdi + 0xc], ebx
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret