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