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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor edx, edx
add rcx, 0xa8
lea r8d, [rdx + 0x78]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x14001d245
cmp word [rbx + 0x66], 0
je 0x14001d073
mov edx, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xe0], rax
test rax, rax
je 0x14001d245
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x78]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0xe0]
mov edx, 0x2d00
xor ecx, ecx
mov dword [rax + 8], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rax, qword [rbx + 0xe0]
mov byte [rax + 0x70], 7
mov rax, qword [rbx + 0xe0]
mov byte [rax + 0x6c], 0
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbx + 0xe0]
mov qword [rcx + 0x40], rax
test rax, rax
je 0x14001d245
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbx + 0xe0]
mov qword [rcx + 0x48], rax
test rax, rax
je 0x14001d245
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x48]
add rax, 0x8000
mov qword [rcx + 0x50], rax
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x48]
mov qword [rcx + 0x60], rax
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x60]
mov qword [rcx + 0x58], rax
test byte [rbx], 8
je 0x14001d09c
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x70], eax
mov eax, dword [rsi + 0x30]
mov dword [rbx + 0x74], eax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x8a], rax
mov rcx, qword [rsi + 0x30]
mov qword [rbx + 0x92], rcx
jmp 0x14001d0aa
mov rax, qword [rbx + 0x8a]
mov rcx, qword [rbx + 0x92]
test byte [rbx + 0x64], 8
mov qword [rbx + 0xf0], rax
mov qword [rbx + 0xf8], rcx
je 0x14001d0c4
movzx eax, byte [rbx + 0x69]
jmp 0x14001d0c8
movzx eax, byte [rbx + 0x6f]
mov byte [rbx + 0x118], al
mov ecx, dword [rbx]
test cl, 4
je 0x14001d0e1
mov rax, qword [rbx + 0x9a]
jmp 0x14001d204
test byte [rbx + 0x64], 1
je 0x14001d18f
mov qword [rbx + 0x110], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rbx + 0x100], 0x12345678
mov dword [rbx + 0x104], 0x23456789
mov dword [rbx + 0x108], 0x34567890
mov r8, qword [rbx + 0x50]
test r8, r8
je 0x14001d18f
movzx eax, byte [r8]
test al, al
je 0x14001d18f
lea r9, [0x1400d06d0]
nop dword [rax]
mov edx, dword [rbx + 0x100]
lea r8, [r8 + 1]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r9 + 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 rax, rdx
mov eax, dword [r9 + rax*4]
xor eax, ecx
mov dword [rbx + 0x108], eax
movzx eax, byte [r8]
test al, al
jne 0x14001d130
mov r8, qword [rbx + 0x9a]
mov ecx, dword [rbx + 0x34]
add r8, 0x1c
add r8, rcx
test byte [rbx], 1
jne 0x14001d1cd
mov edx, dword [rbx + 0x14]
xor r9d, r9d
mov rcx, qword [rbx + 8]
add rdx, r8
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001d1d1
mov eax, 7
jmp 0x14001d24a
mov qword [rbx + 0x20], r8
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001c4c0
test eax, eax
je 0x14001d1c6
movzx eax, word [rsp + 0x30]
movzx ecx, word [rbx + 0x78]
add rcx, rax
mov rax, qword [rbx + 0x9a]
add rax, 0x1e
add rax, rcx
mov ecx, dword [rbx]
test cl, 1
jne 0x14001d231
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 8]
add rdx, rax
xor r9d, r9d
mov qword [rsp + 0x30], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001d255
mov eax, 7
jmp 0x14001d24a
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov eax, 2
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.14001ce00
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret