Function at 0x14001d270
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 0x14001d51c
lea r13, [0x1400d06d0]
nop
mov rdx, qword [rbx + 0xb8]
test rdx, rdx
jne 0x14001d3da
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x14001d3da
mov rdx, qword [rbx + 0xa8]
mov edi, 0x4000
cmp rax, rdi
mov rcx, rbx
cmovb rdi, rax
mov r8d, edi
call fcn.14001c4c0
test eax, eax
je 0x14001d53c
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 0x14001d3da
xor r8d, r8d
test rdi, rdi
je 0x14001d3da
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 0x14001d340
mov rdx, qword [rbx + 0xb8]
mov r9, qword [rbx + 0x110]
mov r8, rdx
cmp r9, rdx
cmovbe r8, r9
test r8, r8
je 0x14001d42a
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 0x14001d42a
cmp al, byte [rbx + 0x118]
jne 0x14001d547
cmp word [rbx + 0x66], 0
mov r15, qword [rbx + 0xc8]
jne 0x14001d4b1
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.14001bfa0
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 0x14001d50c
mov rbp, qword [rbx + 0xd8]
lea rcx, [rbx + 0xb0]
call fcn.14001c0d0
mov esi, eax
cmp eax, 1
ja 0x14001d552
mov rdi, qword [rbx + 0xd8]
mov rdx, r15
mov ecx, dword [rbx + 0xe8]
sub rdi, rbp
mov r8d, edi
call fcn.14001bfa0
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 0x14001d51c
test rax, rax
je 0x14001d51c
cmp qword [rbx + 0xd0], 0
jne 0x14001d2c0
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 0x14001d51f
mov dword [rbx + 0x10], reloc.OLEAUT32.dll_SafeArrayGetLBound
xor eax, eax
jmp 0x14001d51f
mov dword [rbx + 0x10], reloc.OLEAUT32.dll_SafeArrayGetUBound
xor eax, eax
jmp 0x14001d51f