Function at 0x64dfc0
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 [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x64e315
cmp dword [esi + 0x38], 0
je 0x64e315
cmp dword [esi + 0x9c], 0
je 0x64dff3
call fcn.0064e6d0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.0064ddd0
add esp, 8
test eax, eax
je 0x64e020
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x90
call fcn.0066f597
mov edi, eax
add esp, 4
test edi, edi
je 0x64e06e
push 0x4000
call fcn.0066f597
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 0x64e084
push edi
call fcn.0066bcce
add esp, 4
pop edi
pop ebx
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
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 0x64e2a9
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 0x64e296
mov dword [esi + 0xb0], 0x71e588
mov dword [esi + 0xa4], 0x12345678
mov dword [esi + 0xa8], 0x23456789
mov dword [esi + 0xac], 0x34567890
mov al, byte [edi]
test al, al
je 0x64e1ab
mov ebx, 0x12345678
mov dword [ebp - 0x14], 0x23456789
mov edx, 0x34567890
movsx eax, al
lea edi, [edi + 1]
xor eax, ebx
mov ecx, ebx
movzx eax, al
shr ecx, 8
mov ebx, dword [eax*4 + 0x71e588]
xor ebx, ecx
movzx eax, bl
add eax, dword [ebp - 0x14]
imul eax, eax, 0x8088405
mov dword [esi + 0xa4], ebx
inc eax
mov dword [esi + 0xa8], eax
mov dword [ebp - 0x14], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x71e588]
mov dword [esi + 0xac], edx
mov al, byte [edi]
test al, al
jne 0x64e158
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 [0x707770]
call edi
add esp, 0x10
test eax, eax
jne 0x64e06e
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 [0x707770]
call edi
add esp, 0x10
cmp eax, 0xc
jb 0x64e06e
mov edi, dword [esi + 0xb0]
xor edx, edx
nop dword [eax + eax]
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
mov eax, dword [edi + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0xac]
mov dword [esi + 0xa4], eax
movzx eax, al
add eax, dword [esi + 0xa8]
imul eax, eax, 0x8088405
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 0x64e210
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.00650ddc
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jne 0x64e0dc
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.00603890
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x64e2f9
mov dword [edi + 0x40], 8
jmp 0x64e0dc
push edi
call fcn.0066bcce
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
xor ecx, ebp
pop esi
call fcn.00650ddc
mov esp, ebp
pop ebp
ret