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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x101bfe03
cmp dword [esi + 0x38], 0
je 0x101bfe03
cmp dword [esi + 0x9c], 0
je 0x101bfaf3
call fcn.101c0100
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.101bf8d0
add esp, 8
test eax, eax
je 0x101bfb20
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x90
call fcn.101dc6a1
mov edi, eax
add esp, 4
test edi, edi
je 0x101bfb6e
push 0x4000
call fcn.101dc6a1
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x8c], 0
test eax, eax
jne 0x101bfb84
push edi
call fcn.101dbd83
add esp, 4
pop edi
pop ebx
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x40], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x84], ecx
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], 0
movups xmmword [edi + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x70], xmm0
cmp ecx, 0xc
jne 0x101bfd97
mov dword [edi + 0x8c], 1
mov eax, dword [esi + 0x60]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
mov dword [edi + 8], 0
add eax, dword [esi + 0x98]
mov dword [edi + 0x3c], eax
mov dword [esi + 0x9c], edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0xa0], 0
test edi, edi
je 0x101bfd84
mov dword [esi + 0xb0], 0x102602a0
mov dword [esi + 0xa4], 0x12345678
mov dword [esi + 0xa8], 0x23456789
mov dword [esi + 0xac], 0x34567890
mov al, byte [edi]
test al, al
je 0x101bfca3
mov ecx, 0x12345678
mov ebx, 0x23456789
mov edx, 0x34567890
movsx eax, al
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x102602a0]
movzx eax, cl
add eax, ebx
mov dword [esi + 0xa4], ecx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
mov dword [esi + 0xa8], ebx
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x102602a0]
mov dword [esi + 0xac], edx
mov al, byte [edi]
test al, al
jne 0x101bfc56
mov ecx, dword [esi + 0x9c]
mov edi, dword [esi + 0x10]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
mov ecx, edi
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [0x1024852c]
call edi
add esp, 0x10
test eax, eax
jne 0x101bfb6e
mov edi, dword [esi + 4]
lea eax, [ebp - 0x10]
push 0xc
push eax
push dword [esi + 0x20]
mov ecx, edi
push dword [esi + 0x1c]
call dword [0x1024852c]
call edi
add esp, 0x10
cmp eax, 0xc
jb 0x101bfb6e
mov edi, dword [esi + 0xb0]
xor edx, edx
mov ecx, dword [esi + 0xac]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [esi + 0xa4]
shr eax, 8
xor byte [ebp + edx - 0x10], al
movsx eax, byte [ebp + edx - 0x10]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [esi + 0xa8]
imul eax, eax, 0x8088405
mov dword [esi + 0xa4], ecx
mov ecx, dword [esi + 0xac]
inc eax
mov dword [esi + 0xa8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
mov dword [esi + 0xac], ecx
cmp edx, 0xc
jl 0x101bfd00
mov eax, dword [esi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [esi + 0xa0], 1
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jne 0x101bfbdc
sub esp, 8
mov dword [edi + 0x24], 0
lea ecx, [edi + 4]
mov dword [edi + 0x28], 0
mov edx, 0xfffffff1
mov dword [edi + 0x2c], 0
mov dword [ecx], 0
mov dword [edi + 8], 0
call fcn.10177d40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101bfde7
mov dword [edi + 0x40], 8
jmp 0x101bfbdc
push edi
call fcn.101dbd83
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
xor ecx, ebp
pop esi
call fcn.101cff65
mov esp, ebp
pop ebp
ret