Function at 0x1010be80
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 [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x1010c1c5
cmp dword [esi + 0x38], 0
je 0x1010c1c5
cmp dword [esi + 0x9c], 0
je 0x1010beb3
call fcn.1010c4d0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.1010bc80
add esp, 8
test eax, eax
je 0x1010bee0
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x90
call fcn.1015bd59
mov edi, eax
add esp, 4
test edi, edi
je 0x1010bf2e
push 0x4000
call fcn.1015bd59
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 0x1010bf44
push edi
call fcn.101586be
add esp, 4
pop edi
pop ebx
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
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 0x1010c159
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 0x1010c146
mov dword [esi + 0xb0], 0x101acf30
mov dword [esi + 0xa4], 0x12345678
mov dword [esi + 0xa8], 0x23456789
mov dword [esi + 0xac], 0x34567890
mov al, byte [edi]
test al, al
je 0x1010c06b
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 + 0x101acf30]
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 + 0x101acf30]
mov dword [esi + 0xac], edx
mov al, byte [edi]
test al, al
jne 0x1010c018
mov ecx, dword [esi + 0x9c]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push dword [esi + 0x1c]
call eax
add esp, 0x10
test eax, eax
jne 0x1010bf2e
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x1010bf2e
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 0x1010c0c0
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.1014d1d5
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jne 0x1010bf9c
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.101097e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1010c1a9
mov dword [edi + 0x40], 8
jmp 0x1010bf9c
push edi
call fcn.101586be
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
xor ecx, ebp
pop esi
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret