Function at 0x420550
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], 2
jne 0x420590
mov dword [eax + 8], 2
mov dword [eax + 0xc], 0x69cabf
mov dword [eax + 0x10], 0x20
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x4207bc
mov esi, dword [ebp + 0x24]
movzx ecx, byte [ebp + 0x30]
mov edx, dword [ebp + 0x20]
test esi, esi
je 0x420640
cmp cl, 2
jne 0x420665
mov ecx, dword [ebp + 0x28]
cmp byte [ebp + 0x1c], 0
je 0x42067d
mov eax, dword [ebp + 0x18]
movzx edx, byte [eax + 6]
movzx ebx, byte [eax + 5]
movzx eax, byte [eax + 4]
shr edx, 1
shl ebx, 5
shl eax, 0xb
or ebx, edx
or eax, ebx
mov dword [esp + 8], eax
mov ax, 1
mov dword [esp + 4], eax
test ecx, ecx
je 0x420691
mov ebx, 0x34567890
mov edx, 0x23456789
mov eax, 0x12345678
nop word cs:[eax + eax]
mov dword [esp + 0xc], ecx
movzx ecx, byte [esi]
movzx edi, bl
shr ebx, 8
inc esi
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x69ce30]
movzx ecx, al
add ecx, edx
imul edx, ecx, 0x8088405
inc edx
mov ecx, edx
shr ecx, 0x18
xor edi, ecx
mov ecx, dword [esp + 0xc]
xor ebx, dword [edi*4 + 0x69ce30]
dec ecx
jne 0x420600
jmp 0x4206a0
cmp cl, 2
jne 0x4207b0
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
xor edi, edi
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x1c], xmm0
jmp 0x42077b
mov edx, 0x47
mov dword [eax + 8], 2
mov dword [eax + 0xc], str.AES_encrypted_files_cannot_be_decrypted_without_the_aes_crypto_feature.Compression_method_not_supported
jmp 0x420719
mov dword [esp + 4], 0
mov dword [esp + 8], eax
test ecx, ecx
jne 0x4205e7
mov eax, 0x12345678
mov edx, 0x23456789
mov ebx, 0x34567890
mov ecx, dword [ebp + 0x20]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
lea ecx, [esp + 0x70]
movsd qword [esp + 0x78], xmm1
movsd qword [esp + 0x70], xmm0
mov dword [esp + 0x80], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
lea edx, [esp + 0x48]
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.004221e0
add esp, 0xc
cmp dword [esp + 0x48], 0
je 0x420728
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 edx, edx
mov ecx, 2
jmp 0x4207b7
mov edi, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov eax, dword [ebp + 8]
test edi, edi
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 0x38], xmm1
mov dword [esp + 0x40], ecx
je 0x4207b0
mov esi, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x28], esi
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
mov esi, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
mov dword [eax + 0x1c], esi
movsd qword [eax + 0x14], xmm1
movsd qword [eax + 0xc], xmm0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], edi
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
jmp 0x4207bc
xor edx, edx
mov ecx, 1
mov dword [eax], ecx
mov dword [eax + 4], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret