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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 8]
cmp word [ebp + 0xc], 3
jne 0x10019da0
mov dword [eax + 8], 2
mov dword [eax + 0xc], 0x101ce57c
mov dword [eax + 0x10], 0x20
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x10019f9f
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test edx, edx
je 0x10019e44
mov edi, dword [ebp + 0x28]
cmp byte [ebp + 0x1c], 0
je 0x10019e60
mov eax, dword [ebp + 0x18]
movzx ecx, byte [eax + 6]
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 4]
shr ecx, 1
shl esi, 5
shl eax, 0xb
or esi, ecx
or eax, esi
mov dword [esp + 8], eax
mov ax, 1
mov dword [esp + 4], eax
test edi, edi
je 0x10019e74
mov eax, 0x34567890
mov esi, 0x23456789
mov ecx, 0x12345678
nop dword [eax]
movzx ebx, byte [edx]
mov dword [esp + 0xc], edx
mov edx, edi
movzx edi, al
shr eax, 8
xor bl, cl
shr ecx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x101ce868]
movzx ebx, cl
add ebx, esi
imul esi, ebx, 0x8088405
inc esi
mov ebx, esi
shr ebx, 0x18
xor edi, ebx
xor eax, dword [edi*4 + 0x101ce868]
mov edi, edx
mov edx, dword [esp + 0xc]
inc edx
dec edi
jne 0x10019e00
jmp 0x10019e83
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
xor ecx, ecx
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x1c], xmm0
jmp 0x10019f5e
mov dword [esp + 4], 0
mov dword [esp + 8], eax
test edi, edi
jne 0x10019dea
mov ecx, 0x12345678
mov esi, 0x23456789
mov eax, 0x34567890
mov edx, dword [ebp + 0x20]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
lea edx, [esp + 0x48]
movsd qword [esp + 0x78], xmm1
movsd qword [esp + 0x70], xmm0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x70]
mov word [esp + 0x10], ax
mov eax, dword [esp + 8]
mov word [esp + 0x12], ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.1001b230
add esp, 0xc
test byte [esp + 0x48], 1
je 0x10019f0b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
xor ecx, ecx
mov edx, 2
jmp 0x10019f9a
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
test ecx, ecx
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 0x38], xmm1
je 0x10019f93
mov edi, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x28], edi
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], ecx
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
mov ecx, dword [esp + 0x28]
movsd qword [eax + 0xc], xmm0
movsd qword [eax + 0x14], xmm1
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], edx
jmp 0x10019f9f
xor ecx, ecx
mov edx, 1
mov dword [eax], edx
mov dword [eax + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret