Function at 0x1402889f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [rcx]
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x140288a26
mov rcx, r14
call fcn.140251df0
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x58], r15
cmp rdi, 2
jb 0x140288de5
mov rcx, rdi
mov qword [rsp + 0x68], r12
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x60], r13
add rdi, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xb8], rdi
nop
mov r14, qword [r14 + 0x20]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x30], 8
mov r13d, dword [r14 + 8]
lea r10, [r14 + 0x28]
mov r12d, dword [r14]
mov eax, r13d
xor eax, dword [rsi + 8]
mov ebx, r12d
mov ebp, dword [r14 + 4]
mov r11d, ebp
mov r15d, dword [r14 + 0xc]
mov edi, r15d
xor ebx, dword [rsi]
xor r12d, dword [rsi + 0x10]
xor r11d, dword [rsi + 4]
xor ebp, dword [rsi + 0x14]
xor r13d, dword [rsi + 0x18]
xor edi, dword [rsi + 0xc]
xor r15d, dword [rsi + 0x1c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x20]
mov qword [rsp + 0x28], r10
mov r14, qword [rax + 8]
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 + r8]
add eax, edx
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, [rdx + r9]
xor eax, ebx
mov ebx, eax
shr eax, 1
shl ebx, 0x1f
or ebx, eax
lea eax, [r8 + rdx]
add eax, r10d
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 0x140288ad0
mov r14, qword [rsp + 0x48]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r11d
mov r9d, dword [r14 + 0x18]
mov r10d, r9d
mov eax, dword [r14 + 0x10]
xor r9d, ebx
mov edx, dword [r14 + 0x14]
mov ecx, eax
mov r11d, dword [r14 + 0x1c]
xor eax, esi
mov rbx, qword [rsp + 0xb0]
mov r8d, edx
xor edx, dword [rsp + 0x28]
mov edi, r11d
xor r11d, dword [rsp + 0x20]
xor ecx, r13d
mov rsi, qword [rsp + 0xa8]
xor r8d, r15d
mov r14, qword [rsp + 0xa0]
xor r10d, r12d
mov dword [rbx], eax
xor edi, ebp
mov dword [rbx + 4], edx
add rsi, 0x20
mov dword [rbx + 8], r9d
mov dword [rbx + 0xc], r11d
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x18], r10d
mov dword [rbx + 0x1c], edi
add rbx, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rsi
jne 0x140288a60
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
je 0x140289098
mov rbp, qword [r14 + 0x20]
mov r15d, 4
mov r10d, dword [rsi]
mov r11d, dword [rsi + 4]
mov r9d, dword [rsi + 8]
mov edi, dword [rsi + 0xc]
xor r10d, dword [rbp]
xor r11d, dword [rbp + 4]
xor r9d, dword [rbp + 8]
mov rsi, qword [r14 + 8]
lea r14, [rbp + 0x28]
xor edi, dword [rbp + 0xc]
nop dword [rax]
mov eax, r11d
ror edi, 0x1f
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r8d, dword [rsi + rcx*4 + 0xc00]
mov ecx, r10d
xor r8d, dword [rsi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r11d
shr rax, 0x18
mov edx, dword [rsi + rcx*4 + 0xc00]
xor r8d, dword [rsi + rax*4]
movzx eax, r11b
ror r11d, 0x1f
xor r8d, dword [rsi + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [rsi + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rsi + rcx*4 + 0x400]
xor edx, dword [rsi + 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 edi, eax
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
movzx eax, al
mov r8d, dword [rsi + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [rsi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, edi
shr rax, 0x18
mov edx, dword [rsi + rcx*4 + 0xc00]
xor r8d, dword [rsi + rax*4]
movzx eax, dil
xor r8d, dword [rsi + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [rsi + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rsi + rcx*4 + 0x400]
xor edx, dword [rsi + rax*4]
mov ecx, dword [r14]
add edx, r8d
mov eax, dword [r14 + 4]
add ecx, edx
xor ecx, r10d
add eax, r8d
mov r10d, ecx
add eax, edx
shr ecx, 1
xor r11d, eax
shl r10d, 0x1f
mov eax, r11d
or r10d, ecx
shr eax, 0x10
movzx ecx, al
mov r8d, dword [rsi + rcx*4 + 0xc00]
lea r14, [r14 + 0x20]
mov eax, r11d
mov ecx, r10d
shr eax, 8
movzx eax, al
shr rcx, 0x18
ror edi, 0x1f
xor r8d, dword [rsi + rax*4 + 0x800]
mov edx, dword [rsi + rcx*4 + 0xc00]
mov eax, r11d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r11b
ror r11d, 0x1f
xor r8d, dword [rsi + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [rsi + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rsi + rcx*4 + 0x400]
xor edx, dword [rsi + 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 edi, eax
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
movzx eax, al
mov r8d, dword [rsi + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [rsi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, edi
shr rax, 0x18
mov edx, dword [rsi + rcx*4 + 0xc00]
xor r8d, dword [rsi + rax*4]
movzx eax, dil
xor r8d, dword [rsi + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [rsi + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rsi + rcx*4 + 0x400]
xor edx, dword [rsi + 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 r11d, eax
sub r15, 1
jne 0x140288e20
xor r11d, dword [rbp + 0x1c]
xor r10d, dword [rbp + 0x18]
xor edi, dword [rbp + 0x14]
xor r9d, dword [rbp + 0x10]
mov dword [rbx], r9d
mov dword [rbx + 4], edi
mov dword [rbx + 8], r10d
mov dword [rbx + 0xc], r11d
mov r15, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret