Function at 0x1800b8830
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
sub rsp, 0x38
mov eax, dword [r8 + 0x548]
mov rsi, r9
mov rbx, r8
cmp eax, 0x10
ja 0x1800b8bd0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], r13
xor r13d, r13d
mov qword [rsp + 0x28], r14
mov r14, qword [rsp + 0x70]
cmp dword [r8 + 0x544], r13d
jne 0x1800b8a93
cmp dword [r8 + 0x540], r13d
jne 0x1800b88af
cmp eax, 0xc
jne 0x1800b88af
movsd xmm0, qword [r8 + 0x530]
mov eax, dword [r8 + 0x538]
movsd qword [r8 + 0x510], xmm0
mov dword [r8 + 0x518], eax
mov dword [r8 + 0x51c], 0x1000000
jmp 0x1800b8a63
mov edx, r13d
test eax, eax
je 0x1800b88d6
mov eax, edx
inc edx
lea rcx, [r8 + rax]
movzx eax, byte [rax + r8 + 0x530]
xor byte [rcx + 0x500], al
cmp edx, dword [r8 + 0x548]
jb 0x1800b88b6
movsxd rax, dword [r8 + 0x548]
test eax, eax
je 0x1800b88fe
shl rax, 3
lea rdx, [r8 + 0x500]
add qword [r8 + 0x550], rax
mov rcx, rbx
mov r8, r14
call fcn.1800ba5d0
xor eax, eax
lea rdi, [rbx + 0x500]
mov qword [rbx + 0x530], rax
mov r8, r14
movzx eax, byte [rbx + 0x557]
mov rdx, rdi
mov byte [rbx + 0x538], al
mov rcx, rbx
movzx eax, byte [rbx + 0x556]
mov byte [rbx + 0x539], al
movzx eax, byte [rbx + 0x555]
mov byte [rbx + 0x53a], al
movzx eax, byte [rbx + 0x554]
mov byte [rbx + 0x53b], al
movzx eax, byte [rbx + 0x553]
mov byte [rbx + 0x53c], al
movzx eax, byte [rbx + 0x552]
mov byte [rbx + 0x53d], al
movzx eax, byte [rbx + 0x551]
mov byte [rbx + 0x53e], al
movzx eax, byte [rbx + 0x550]
mov byte [rbx + 0x53f], al
movzx eax, byte [rbx + 0x530]
xor byte [rdi], al
movzx eax, byte [rbx + 0x531]
xor byte [rbx + 0x501], al
movzx eax, byte [rbx + 0x532]
xor byte [rbx + 0x502], al
movzx eax, byte [rbx + 0x533]
xor byte [rbx + 0x503], al
movzx eax, byte [rbx + 0x534]
xor byte [rbx + 0x504], al
movzx eax, byte [rbx + 0x535]
xor byte [rbx + 0x505], al
movzx eax, byte [rbx + 0x536]
xor byte [rbx + 0x506], al
movzx eax, byte [rbx + 0x537]
xor byte [rbx + 0x507], al
movzx eax, byte [rbx + 0x538]
xor byte [rbx + 0x508], al
movzx eax, byte [rbx + 0x539]
xor byte [rbx + 0x509], al
movzx eax, byte [rbx + 0x53a]
xor byte [rbx + 0x50a], al
movzx eax, byte [rbx + 0x53b]
xor byte [rbx + 0x50b], al
movzx eax, byte [rbx + 0x53c]
xor byte [rbx + 0x50c], al
movzx eax, byte [rbx + 0x53d]
xor byte [rbx + 0x50d], al
movzx eax, byte [rbx + 0x53e]
xor byte [rbx + 0x50e], al
movzx eax, byte [rbx + 0x53f]
xor byte [rbx + 0x50f], al
call fcn.1800ba5d0
movups xmm0, xmmword [rdi]
xor eax, eax
movups xmmword [rbx + 0x510], xmm0
mov qword [rdi], rax
mov qword [rdi + 8], rax
movups xmm0, xmmword [rbx + 0x510]
xor eax, eax
movups xmmword [rbx + 0x520], xmm0
mov qword [rbx + 0x530], rax
mov qword [rbx + 0x538], rax
mov qword [rbx + 0x544], 1
mov qword [rbx + 0x550], r13
cmp dword [rbx + 0x544], 1
jne 0x1800b8bbc
cmp dword [rbx + 0x548], 0x10
jge 0x1800b8bbc
lea rdi, [rsi + 0x80]
mov qword [rsp + 0x60], r12
mov rcx, rdi
call fcn.180015b30
mov rcx, rdi
mov rsi, rax
call fcn.180015e00
mov r12d, eax
mov edi, r13d
cmp dword [rbx + 0x548], r13d
jne 0x1800b8b3a
mov qword [rsp + 0x20], r15
mov r15d, eax
and r15d, 0xfffffff0
jbe 0x1800b8b30
mov qword [rsp + 0x50], rbp
nop
mov rcx, qword [rdi + rsi]
lea eax, [rdi + 8]
xor qword [rbx + 0x500], rcx
lea rdx, [rbx + 0x500]
mov rax, qword [rax + rsi]
mov r8, r14
xor qword [rbx + 0x508], rax
mov rcx, rbx
call fcn.1800ba5d0
sub qword [rbx + 0x550], 0xffffffffffffff80
add edi, 0x10
cmp edi, r15d
jb 0x1800b8af0
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov eax, edi
add rsi, rax
cmp edi, r12d
jae 0x1800b8b9f
sub r12d, edi
mov edi, r12d
nop word [rax + rax]
movsxd rax, dword [rbx + 0x548]
lea rsi, [rsi + 1]
lea rcx, [rax + rbx]
movzx eax, byte [rsi - 1]
xor byte [rcx + 0x500], al
inc dword [rbx + 0x548]
cmp dword [rbx + 0x548], 0x10
jne 0x1800b8b99
lea rdx, [rbx + 0x500]
mov r8, r14
mov rcx, rbx
call fcn.1800ba5d0
sub qword [rbx + 0x550], 0xffffffffffffff80
mov dword [rbx + 0x548], r13d
sub rdi, 1
jne 0x1800b8b50
mov r12, qword [rsp + 0x60]
mov al, 1
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop rsi
pop rbx
ret
mov rax, qword [r14]
lea rdx, str.Internal_error_2
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1800b8ba6
mov rcx, qword [rsp + 0x70]
lea rdx, str.Internal_error.
mov rax, qword [rcx]
call qword [rax + 0x28]
xor al, al
add rsp, 0x38
pop rsi
pop rbx
ret