Function at 0x1800a8b20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [rcx + 0x28]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], rax
jne 0x1800a8b56
call fcn.1800331f0
mov r9, qword [rsp + 0x98]
test r9, r9
je 0x1800a905a
mov qword [rsp + 0x58], rbp
sub rsi, rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x88], rsi
mov rcx, qword [rbx + 0x20]
mov ebp, 3
mov r10d, dword [rsi + rdi]
mov r11d, dword [rsi + rdi + 4]
mov rax, qword [rbx + 8]
mov edx, dword [rcx + 0x10]
mov r14d, dword [rcx]
mov r15d, dword [rcx + 4]
mov r12d, dword [rcx + 8]
mov r13d, dword [rcx + 0xc]
mov dword [rsp + 0x2c], edx
mov edx, dword [rcx + 0x14]
mov ebx, dword [rsp + 0x2c]
mov dword [rsp + 0x28], edx
mov edx, dword [rcx + 0x18]
mov edi, edx
mov ecx, dword [rcx + 0x1c]
mov esi, dword [rsp + 0x28]
mov dword [rsp + 0x20], ecx
nop word [rax + rax]
lea r9d, [r14 + r10]
mov ecx, r9d
shr rcx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 8
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0x800]
or r8d, dword [rax + rcx*4 + 0x400]
mov ecx, r9d
shr rcx, 0x18
or r8d, dword [rax + rcx*4 + 0xc00]
movzx ecx, r9b
or r8d, dword [rax + rcx*4]
xor r11d, r8d
lea r9d, [r15 + r11]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
lea r9d, [r12 + r10]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
lea r9d, [r11 + r13]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
lea r9d, [rbx + r10]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
lea r9d, [rsi + r11]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
lea r9d, [rdi + r10]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
mov r9d, dword [rsp + 0x20]
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
add r9d, r11d
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
sub rbp, 1
jne 0x1800a8bd0
mov r9d, dword [rsp + 0x20]
add r9d, r10d
mov ecx, r9d
shr rcx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rax + rdx*4 + 0x800]
or r8d, dword [rax + rcx*4 + 0xc00]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
mov r9d, edi
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
add r9d, r11d
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
mov r9d, esi
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
add r9d, r10d
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
mov r9d, ebx
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
add r9d, r11d
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
lea r9d, [r10 + r13]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
mov rdi, qword [rsp + 0x90]
xor r11d, r8d
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
lea r9d, [r12 + r11]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
lea r9d, [r15 + r10]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r11d, r8d
lea r9d, [r14 + r11]
mov ecx, r9d
shr ecx, 0x18
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov r8d, dword [rax + rdx*4 + 0xc00]
or r8d, dword [rax + rcx*4 + 0x800]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
or r8d, dword [rax + rdx*4 + 0x400]
or r8d, dword [rax + rcx*4]
xor r10d, r8d
mov dword [rdi], r11d
mov dword [rdi + 4], r10d
add rdi, 8
sub qword [rsp + 0x98], 1
mov qword [rsp + 0x90], rdi
jne 0x1800a8b83
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret