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