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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
push ebx
push esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 0xc], edx
xor edx, edx
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
movsx edx, byte [ebp + edx - 0x10]
mov esi, edi
and esi, 0xfffd
or esi, 2
mov ebx, esi
xor ebx, 1
imul ebx, esi
sar ebx, 8
xor ebx, edx
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x896e90]
mov edx, edi
movzx esi, cl
add esi, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
imul esi, esi, 0x8088405
inc esi
mov ebx, esi
shr ebx, 0x18
xor ebx, edi
mov dword [eax + 0x10], esi
and ebx, 0xff
shr edx, 8
xor edx, dword [ebx*4 + 0x896e90]
mov edi, edx
and edi, 0xfffd
or edi, 2
mov ebx, edi
xor ebx, 1
imul ebx, edi
mov edi, dword [ebp - 0x18]
movsx edi, byte [ebp + edi - 0xf]
sar ebx, 8
xor ebx, edi
xor ebx, ecx
and ebx, 0xff
mov dword [eax + 0x14], edx
shr ecx, 8
xor ecx, dword [ebx*4 + 0x896e90]
movzx edi, cl
add edi, esi
imul edi, edi, 0x8088405
inc edi
mov esi, edi
shr esi, 0x18
xor esi, edx
and esi, 0xff
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], ecx
shr edx, 8
xor edx, dword [esi*4 + 0x896e90]
mov esi, edx
and esi, 0xfffd
or esi, 2
mov ebx, esi
xor ebx, 1
imul ebx, esi
mov esi, dword [ebp - 0x18]
movsx esi, byte [ebp + esi - 0xe]
sar ebx, 8
xor ebx, esi
xor ebx, ecx
mov dword [eax + 0x14], edx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x896e90]
movzx esi, cl
add esi, edi
imul esi, esi, 0x8088405
inc esi
mov edi, esi
shr edi, 0x18
xor edi, edx
and edi, 0xff
shr edx, 8
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
xor edx, dword [edi*4 + 0x896e90]
mov edi, edx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [ebp - 0x18]
sar ebx, 8
xor bl, byte [ebp + edx - 0xd]
mov dword [eax + 0x14], edi
mov byte [ebp - 0x11], bl
movsx ebx, bl
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x896e90]
add edx, 4
movzx ebx, cl
add ebx, esi
imul ebx, ebx, 0x8088405
inc ebx
mov esi, ebx
mov dword [eax + 0x10], esi
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
mov dword [eax + 0xc], ecx
xor edi, dword [esi*4 + 0x896e90]
mov dword [ebp - 0x1c], ebx
mov dword [eax + 0x14], edi
mov dword [ebp - 0x18], edx
cmp edx, 0xc
jl 0x551900
mov al, byte [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test al, al
je 0x551aa2
mov ecx, dword [ebp + 0xc]
shr ecx, 8
cmp cl, byte [ebp - 0x11]
jmp 0x551aaa
mov edx, edi
shr edx, 0x18
cmp dl, byte [ebp - 0x11]
sete bl
test bl, bl
jne 0x551aeb
mov esi, dword [ebp - 0x20]
cmp byte [esi + 0xad], bl
je 0x551aeb
movzx eax, al
push eax
push str.isDataDescriptor
mov ecx, esi
call fcn.00474a80
push edi
push str.crc32
mov ecx, esi
call fcn.00474bd0
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push str.PwdProtectData
mov ecx, esi
call fcn.004741d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0x14