Function at 0x14001ce30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xf8]
xor r12d, r12d
cmp r8, rax
mov qword [rcx + 0xc8], rdx
mov rbx, rcx
cmova r8, rax
mov qword [rcx + 0xd0], r8
test r8, r8
je 0x14001d0dc
lea r13, [0x1400cf5d0]
nop
mov rdx, qword [rbx + 0xb8]
test rdx, rdx
jne 0x14001cf9a
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x14001cf9a
mov rdx, qword [rbx + 0xa8]
mov edi, 0x4000
cmp rax, rdi
mov rcx, rbx
cmovb rdi, rax
mov r8d, edi
call fcn.14001c080
test eax, eax
je 0x14001d0fc
sub qword [rbx + 0xf0], rdi
mov rdx, rdi
test byte [rbx + 0x64], 1
mov rax, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], rax
mov qword [rbx + 0xb8], rdi
je 0x14001cf9a
xor r8d, r8d
test rdi, rdi
je 0x14001cf9a
xor r9d, r9d
nop
mov edx, dword [rbx + 0x108]
inc r8d
mov rcx, qword [rbx + 0xa8]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [rcx + r9], al
mov rax, qword [rbx + 0xa8]
mov edx, dword [rbx + 0x100]
movsx rcx, byte [rax + r9]
xor rcx, rdx
mov r9d, r8d
movzx eax, cl
shr edx, 8
mov ecx, dword [r13 + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x104]
imul edx, eax, 0x8088405
mov dword [rbx + 0x100], ecx
mov ecx, dword [rbx + 0x108]
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0x104], edx
shr rdx, 0x18
xor rdx, rax
mov eax, dword [r13 + rdx*4]
xor eax, ecx
mov dword [rbx + 0x108], eax
cmp r9, rdi
jb 0x14001cf00
mov rdx, qword [rbx + 0xb8]
mov r9, qword [rbx + 0x110]
mov r8, rdx
cmp r9, rdx
cmovbe r8, r9
test r8, r8
je 0x14001cfea
mov rax, qword [rbx + 0xb0]
sub rdx, r8
sub r9, r8
lea rcx, [r8 + rax]
movzx eax, byte [r8 + rax - 1]
mov qword [rbx + 0xb8], rdx
mov qword [rbx + 0xb0], rcx
mov qword [rbx + 0x110], r9
jne 0x14001cfea
cmp al, byte [rbx + 0x118]
jne 0x14001d107
cmp word [rbx + 0x66], 0
mov r15, qword [rbx + 0xc8]
jne 0x14001d071
mov rbp, qword [rbx + 0xd0]
mov rcx, r15
cmp rbp, rdx
cmovae rbp, rdx
mov rdx, qword [rbx + 0xb0]
mov r8d, ebp
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rbx + 0xc8]
mov r8d, ebp
mov ecx, dword [rbx + 0xe8]
mov rdx, rsi
call fcn.14001bb60
sub qword [rbx + 0xf8], rbp
add r12, rbp
sub qword [rbx + 0xb8], rbp
sub qword [rbx + 0xd0], rbp
add qword [rbx + 0xb0], rbp
add qword [rbx + 0xd8], rbp
cmp qword [rbx + 0xf8], 0
mov dword [rbx + 0xe8], eax
lea rax, [rsi + rbp]
mov qword [rbx + 0xc8], rax
jmp 0x14001d0cc
mov rbp, qword [rbx + 0xd8]
lea rcx, [rbx + 0xb0]
call fcn.14001bc90
mov esi, eax
cmp eax, 1
ja 0x14001d112
mov rdi, qword [rbx + 0xd8]
mov rdx, r15
mov ecx, dword [rbx + 0xe8]
sub rdi, rbp
mov r8d, edi
call fcn.14001bb60
mov dword [rbx + 0xe8], eax
add r12, rdi
mov rax, qword [rbx + 0xf8]
sub rax, rdi
mov qword [rbx + 0xf8], rax
cmp esi, 1
je 0x14001d0dc
test rax, rax
je 0x14001d0dc
cmp qword [rbx + 0xd0], 0
jne 0x14001ce80
mov rax, r12
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rbx + 0x10], 7
xor eax, eax
jmp 0x14001d0df
mov dword [rbx + 0x10], reloc.OLEAUT32.dll_SafeArrayGetLBound
xor eax, eax
jmp 0x14001d0df
mov dword [rbx + 0x10], reloc.OLEAUT32.dll_SafeArrayGetUBound
xor eax, eax
jmp 0x14001d0df