Function at 0x1001a080
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 0x1001a0c0
mov dword [eax + 8], 2
mov dword [eax + 0xc], 0x101cd55c
mov dword [eax + 0x10], 0x20
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x1001a2bf
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test edx, edx
je 0x1001a164
mov edi, dword [ebp + 0x28]
cmp byte [ebp + 0x1c], 0
je 0x1001a180
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 0x1001a194
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 + 0x101cdb84]
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 + 0x101cdb84]
mov edi, edx
mov edx, dword [esp + 0xc]
inc edx
dec edi
jne 0x1001a120
jmp 0x1001a1a3
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
xor ecx, ecx
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x1c], xmm0
jmp 0x1001a27e
mov dword [esp + 4], 0
mov dword [esp + 8], eax
test edi, edi
jne 0x1001a10a
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.1001bb50
add esp, 0xc
test byte [esp + 0x48], 1
je 0x1001a22b
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 0x1001a2ba
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 0x1001a2b3
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 0x1001a2bf
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