Function at 0x14004afc0
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 rdi, r9
mov rbx, r8
mov rsi, rdx
call fcn.14001d8a0
mov r8, qword [rsp + 0xb0]
lea rdx, [r8 + 0x20]
mov qword [rsp + 0x40], rdx
cmp rdi, 2
jb 0x14004b3aa
mov rcx, rdi
mov qword [rsp + 0x70], r12
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x68], r13
add rdi, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xc8], rdi
mov r14, qword [rdx]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x30], 8
mov r12d, dword [r14]
lea r10, [r14 + 0x28]
mov ebp, dword [r14 + 4]
mov ebx, r12d
mov r13d, dword [r14 + 8]
mov r11d, ebp
mov r15d, dword [r14 + 0xc]
mov eax, r13d
xor eax, dword [rsi + 8]
mov edi, r15d
xor ebx, dword [rsi]
xor r11d, dword [rsi + 4]
xor edi, dword [rsi + 0xc]
xor r12d, dword [rsi + 0x10]
xor ebp, dword [rsi + 0x14]
xor r13d, dword [rsi + 0x18]
xor r15d, dword [rsi + 0x1c]
mov esi, eax
mov r14, qword [r8 + 8]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], r10
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r10 - 8]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r10d, dword [r10 - 4]
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov ecx, ebx
xor r8d, dword [r14 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r11d
shr rax, 0x18
ror edi, 0x1f
mov edx, dword [r14 + rcx*4 + 0xc00]
ror r15d, 0x1f
xor r8d, dword [r14 + rax*4]
movzx eax, r11b
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, [r9 + rdx]
xor eax, esi
mov esi, eax
shr eax, 1
shl esi, 0x1f
or esi, eax
lea eax, [r10 + rdx]
add eax, r8d
xor edi, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr eax, 8
movzx eax, al
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov ecx, r12d
xor r8d, dword [r14 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, ebp
shr rax, 0x18
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4]
movzx eax, bpl
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, r12d
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, r13d
mov r13d, eax
shr eax, 1
shl r13d, 0x1f
or r13d, eax
lea eax, [r10 + r8]
add eax, edx
xor r15d, eax
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov r10, qword [rsp + 0x28]
movzx eax, al
mov ecx, esi
shr rcx, 0x18
mov r9d, dword [r10]
xor r8d, dword [r14 + rax*4 + 0x800]
mov r10d, dword [r10 + 4]
mov edx, dword [r14 + rcx*4 + 0xc00]
mov eax, edi
shr rax, 0x18
ror r11d, 0x1f
ror ebp, 0x1f
xor r8d, dword [r14 + rax*4]
movzx eax, dil
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, esi
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, ebx
mov ebx, eax
shr eax, 1
shl ebx, 0x1f
or ebx, eax
lea eax, [r10 + r8]
add eax, edx
xor r11d, eax
mov eax, r15d
shr eax, 0x10
movzx ecx, al
mov eax, r15d
shr eax, 8
movzx eax, al
mov r8d, dword [r14 + rcx*4 + 0xc00]
mov ecx, r13d
xor r8d, dword [r14 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r15d
shr rax, 0x18
mov edx, dword [r14 + rcx*4 + 0xc00]
xor r8d, dword [r14 + rax*4]
movzx eax, r15b
xor r8d, dword [r14 + rax*4 + 0x400]
mov eax, r13d
shr eax, 0x10
movzx eax, al
xor edx, dword [r14 + rax*4 + 0x800]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r14 + rcx*4 + 0x400]
xor edx, dword [r14 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, r12d
mov r12d, eax
shr eax, 1
shl r12d, 0x1f
or r12d, eax
lea eax, [r10 + r8]
mov r10, qword [rsp + 0x28]
add eax, edx
add r10, 0x10
xor ebp, eax
sub qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r10
jne 0x14004b090
mov r14, qword [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r11d
mov edx, dword [r14 + 0x14]
mov r8d, edx
mov r9d, dword [r14 + 0x18]
xor r8d, r15d
mov eax, dword [r14 + 0x10]
mov r10d, r9d
mov r11d, dword [r14 + 0x1c]
xor r9d, ebx
mov rbx, qword [rsp + 0xc0]
mov ecx, eax
xor edx, dword [rsp + 0x28]
xor eax, esi
mov rsi, qword [rsp + 0xb8]
mov edi, r11d
xor r11d, dword [rsp + 0x20]
xor ecx, r13d
mov dword [rbx], eax
xor r10d, r12d
mov dword [rbx + 4], edx
xor edi, ebp
mov rdx, qword [rsp + 0x40]
add rsi, 0x20
mov dword [rbx + 8], r9d
mov dword [rbx + 0xc], r11d
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], r8d
mov r8, qword [rsp + 0xb0]
mov dword [rbx + 0x18], r10d
mov dword [rbx + 0x1c], edi
add rbx, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xb8], rsi
jne 0x14004b028
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xc8]
test rdi, rdi
je 0x14004b65c
mov rbp, qword [rdx]
mov r15d, 4
mov r10d, dword [rsi]
mov edi, dword [rsi + 4]
mov r9d, dword [rsi + 8]
xor r10d, dword [rbp]
lea r14, [rbp + 0x28]
xor edi, dword [rbp + 4]
xor r9d, dword [rbp + 8]
mov esi, dword [rsi + 0xc]
xor esi, dword [rbp + 0xc]
mov r11, qword [r8 + 8]
nop
mov eax, edi
ror esi, 0x1f
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, r10d
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, edi
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, dil
ror edi, 0x1f
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
mov eax, dword [r14 - 8]
add edx, r8d
add eax, edx
xor eax, r9d
mov r9d, eax
shr eax, 1
shl r9d, 0x1f
or r9d, eax
mov eax, dword [r14 - 4]
add eax, r8d
add eax, edx
xor esi, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, sil
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
mov eax, dword [r14]
add edx, r8d
add eax, edx
xor eax, r10d
mov r10d, eax
shr eax, 1
shl r10d, 0x1f
or r10d, eax
mov eax, dword [r14 + 4]
add eax, r8d
add eax, edx
xor edi, eax
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
lea r14, [r14 + 0x20]
mov eax, edi
mov ecx, r10d
shr eax, 8
movzx eax, al
shr rcx, 0x18
ror esi, 0x1f
xor r8d, dword [r11 + rax*4 + 0x800]
mov edx, dword [r11 + rcx*4 + 0xc00]
mov eax, edi
shr rax, 0x18
xor r8d, dword [r11 + rax*4]
movzx eax, dil
ror edi, 0x1f
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
mov eax, dword [r14 - 0x18]
add edx, r8d
add eax, edx
xor eax, r9d
mov r9d, eax
shr eax, 1
shl r9d, 0x1f
or r9d, eax
mov eax, dword [r14 - 0x14]
add eax, r8d
add eax, edx
xor esi, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, sil
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
mov eax, dword [r14 - 0x10]
add edx, r8d
add eax, edx
xor eax, r10d
mov r10d, eax
shr eax, 1
shl r10d, 0x1f
or r10d, eax
mov eax, dword [r14 - 0xc]
add eax, r8d
add eax, edx
xor edi, eax
sub r15, 1
jne 0x14004b3e0
xor edi, dword [rbp + 0x1c]
xor r10d, dword [rbp + 0x18]
xor esi, dword [rbp + 0x14]
xor r9d, dword [rbp + 0x10]
mov dword [rbx], r9d
mov dword [rbx + 4], esi
mov dword [rbx + 8], r10d
mov dword [rbx + 0xc], edi
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret