Function at 0x14009e3c0
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 r12
sub rsp, 0x78
mov rax, qword [rcx + 0x10]
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r12, rcx
cmp qword [rcx + 8], rax
jne 0x14009e3f3
call fcn.140041540
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
cmp rsi, 2
jb 0x14009e783
mov rcx, rsi
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x38], rcx
add rsi, rax
mov qword [rsp + 0xb8], rsi
nop dword [rax + rax]
mov r11, qword [r12 + 0x20]
mov r12, qword [r12 + 8]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], 8
mov ebp, dword [r11 + 0xc]
mov r10d, ebp
xor r10d, dword [rdi + 0xc]
mov r14d, dword [r11]
mov ebx, r14d
mov esi, dword [r11 + 4]
mov r13d, esi
mov r15d, dword [r11 + 8]
mov eax, r15d
xor eax, dword [rdi + 8]
xor ebx, dword [rdi]
xor r14d, dword [rdi + 0x10]
xor r13d, dword [rdi + 4]
xor esi, dword [rdi + 0x14]
xor r15d, dword [rdi + 0x18]
xor ebp, dword [rdi + 0x1c]
mov edi, eax
mov dword [rsp + 0x20], r10d
lea r10, [r11 + 0x28]
mov r11d, dword [rsp + 0x20]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x24], eax
nop word [rax + rax]
mov r9d, dword [r10 - 8]
mov eax, r13d
shr eax, 0x10
movzx ecx, al
mov eax, r13d
shr eax, 8
movzx eax, al
rol r11d, 1
mov r8d, dword [r12 + rcx*4 + 0xc00]
mov ecx, ebx
xor r8d, dword [r12 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r13d
shr rax, 0x18
rol ebp, 1
mov edx, dword [r12 + rcx*4 + 0xc00]
xor r8d, dword [r12 + rax*4]
movzx eax, r13b
xor r8d, dword [r12 + rax*4 + 0x400]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edx, dword [r12 + rax*4 + 0x800]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor edx, dword [r12 + rcx*4 + 0x400]
xor edx, dword [r12 + rax*4]
add edx, r8d
lea eax, [rdx + r9]
xor edi, eax
lea eax, [r8 + rdx]
add eax, dword [r10 - 4]
xor r11d, eax
ror edi, 1
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [r12 + rcx*4 + 0xc00]
mov ecx, r14d
xor r8d, dword [r12 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [r12 + rcx*4 + 0xc00]
xor r8d, dword [r12 + rax*4]
movzx eax, sil
xor r8d, dword [r12 + rax*4 + 0x400]
mov eax, r14d
shr eax, 0x10
movzx eax, al
xor edx, dword [r12 + rax*4 + 0x800]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r12 + rcx*4 + 0x400]
xor edx, dword [r12 + rax*4]
add edx, r8d
lea eax, [rdx + r9]
xor r15d, eax
lea eax, [r8 + rdx]
add eax, dword [r10 - 4]
xor ebp, eax
ror r15d, 1
mov eax, r11d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r8d, dword [r12 + rcx*4 + 0xc00]
xor r8d, dword [r12 + rax*4 + 0x800]
mov eax, r11d
shr rax, 0x18
xor r8d, dword [r12 + rax*4]
movzx eax, r11b
xor r8d, dword [r12 + rax*4 + 0x400]
mov eax, edi
shr eax, 0x10
movzx eax, al
mov ecx, edi
shr rcx, 0x18
rol r13d, 1
rol esi, 1
mov edx, dword [r12 + rcx*4 + 0xc00]
xor edx, dword [r12 + rax*4 + 0x800]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, dil
xor edx, dword [r12 + rcx*4 + 0x400]
xor edx, dword [r12 + rax*4]
mov rcx, qword [rsp + 0x28]
add edx, r8d
mov r10d, dword [rcx + 4]
mov r9d, dword [rcx]
lea eax, [rdx + r9]
xor ebx, eax
lea eax, [r8 + rdx]
add eax, r10d
ror ebx, 1
xor r13d, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr eax, 8
movzx eax, al
mov r8d, dword [r12 + rcx*4 + 0xc00]
mov ecx, r15d
xor r8d, dword [r12 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, ebp
shr rax, 0x18
mov edx, dword [r12 + rcx*4 + 0xc00]
xor r8d, dword [r12 + rax*4]
movzx eax, bpl
xor r8d, dword [r12 + rax*4 + 0x400]
mov eax, r15d
shr eax, 0x10
movzx eax, al
xor edx, dword [r12 + rax*4 + 0x800]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r12 + rcx*4 + 0x400]
xor edx, dword [r12 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor r14d, eax
lea eax, [r10 + r8]
mov r10, qword [rsp + 0x28]
add eax, edx
add r10, 0x10
ror r14d, 1
xor esi, eax
mov qword [rsp + 0x28], r10
sub qword [rsp + 0x30], 1
jne 0x14009e4a0
mov r12, qword [rsp + 0xa0]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0xb0]
mov dword [rsp + 0x20], r11d
mov r11, qword [rsp + 0x40]
mov ecx, dword [r11 + 0x10]
mov eax, ecx
mov r9d, dword [r11 + 0x1c]
xor eax, edi
mov r8d, dword [r11 + 0x18]
xor ecx, r15d
mov edx, dword [r11 + 0x14]
mov rdi, qword [rsp + 0xa8]
mov dword [rbx], eax
add rdi, 0x20
mov eax, edx
mov dword [rbx + 0x10], ecx
xor eax, dword [rsp + 0x20]
xor edx, ebp
mov dword [rbx + 4], eax
mov eax, r8d
xor eax, dword [rsp + 0x24]
xor r8d, r14d
mov dword [rbx + 8], eax
mov eax, r9d
xor eax, r13d
mov dword [rbx + 0x14], edx
xor r9d, esi
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x18], r8d
mov dword [rbx + 0x1c], r9d
add rbx, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rdi
jne 0x14009e430
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x14009ea18
mov r15, qword [r12 + 0x20]
mov r13d, 4
mov r14d, dword [r15]
xor r14d, dword [rdi]
mov r11d, dword [r15 + 4]
xor r11d, dword [rdi + 4]
mov ebp, dword [r15 + 8]
xor ebp, dword [rdi + 8]
mov esi, dword [r15 + 0xc]
xor esi, dword [rdi + 0xc]
mov rdi, qword [r12 + 8]
lea r12, [r15 + 0x28]
nop dword [rax]
mov r10d, dword [r12 - 8]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r9d, dword [r12]
mov r8d, dword [rdi + rcx*4 + 0xc00]
rol esi, 1
xor r8d, dword [rdi + rax*4 + 0x800]
mov eax, r11d
shr rax, 0x18
mov ecx, r14d
shr rcx, 0x18
xor r8d, dword [rdi + rax*4]
movzx eax, r11b
mov edx, dword [rdi + rcx*4 + 0xc00]
rol r11d, 1
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r14d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r12 - 4]
add edx, r8d
add eax, r8d
add r10d, edx
add eax, edx
xor r10d, ebp
xor esi, eax
ror r10d, 1
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
mov ecx, r10d
xor r8d, dword [rdi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4]
movzx eax, sil
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r12 + 4]
add edx, r8d
add eax, r8d
add r9d, edx
add eax, edx
xor r9d, r14d
xor r11d, eax
ror r9d, 1
mov eax, r11d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4 + 0x800]
mov eax, r11d
mov ebp, dword [r12 + 8]
mov r14d, dword [r12 + 0x10]
lea r12, [r12 + 0x20]
shr rax, 0x18
rol esi, 1
mov ecx, r9d
shr rcx, 0x18
xor r8d, dword [rdi + rax*4]
movzx eax, r11b
rol r11d, 1
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r12 - 0x14]
add edx, r8d
add eax, r8d
add ebp, edx
add eax, edx
xor ebp, r10d
xor esi, eax
ror ebp, 1
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
mov ecx, ebp
xor r8d, dword [rdi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4]
movzx eax, sil
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, ebp
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r12 - 0xc]
add edx, r8d
add r14d, edx
add eax, r8d
xor r14d, r9d
add eax, edx
ror r14d, 1
xor r11d, eax
sub r13, 1
jne 0x14009e7c0
xor r11d, dword [r15 + 0x1c]
xor r14d, dword [r15 + 0x18]
xor esi, dword [r15 + 0x14]
xor ebp, dword [r15 + 0x10]
mov dword [rbx], ebp
mov dword [rbx + 4], esi
mov dword [rbx + 8], r14d
mov dword [rbx + 0xc], r11d
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
pop r12
pop rdi
pop rsi
pop rbx
ret