Function at 0x500e68
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x56a22c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not eax
jmp 0x500e97
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ecx + ebx*4]
xor ebx, eax
dec dword [ebp + 0x10]
mov eax, ebx
cmp dword [ebp + 0x10], 0
je 0x500ea2
test dl, 3
jne 0x500e7d
cmp dword [ebp + 0x10], 0x20
jb 0x5010ea
xor eax, dword [edx]
lea esi, [ecx + 0xc00]
mov ebx, eax
lea edi, [ecx + 0x800]
and ebx, 0xff
add edx, 4
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0xc00]
lea edi, [ecx + 0x800]
xor ebx, dword [ecx + eax*4]
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
xor ebx, dword [ecx + eax*4]
sub dword [ebp + 0x10], 0x20
cmp dword [ebp + 0x10], 0x20
mov eax, ebx
jae 0x500eac
cmp dword [ebp + 0x10], 4
jb 0x501140
xor eax, dword [edx]
lea esi, [ecx + 0xc00]
mov ebx, eax
lea edi, [ecx + 0x800]
and ebx, 0xff
add edx, 4
mov ebx, dword [esi + ebx*4]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [edi + esi*4]
mov esi, eax
shr esi, 0x10
lea edi, [ecx + 0x400]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
xor ebx, dword [ecx + eax*4]
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 4
mov eax, ebx
jae 0x5010f0
cmp dword [ebp + 0x10], 0
je 0x501162
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ecx + ebx*4]
xor ebx, eax
dec dword [ebp + 0x10]
mov eax, ebx
jne 0x501146
not eax
pop edi
pop esi
pop ebx
pop ebp
ret