Function at 0x50116c
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]
mov ebx, eax
mov esi, eax
shr esi, 8
shr ebx, 0x18
and esi, 0xff00
and ebx, 0xff
add ebx, esi
mov esi, eax
and esi, 0xff00
and eax, 0xff
shl esi, 8
shl eax, 0x18
add ebx, esi
add ebx, eax
mov eax, ebx
not eax
jmp 0x5011d0
movzx esi, byte [edx]
mov ebx, eax
inc edx
shr ebx, 0x18
xor ebx, esi
lea esi, [ecx + 0x1000]
shl eax, 8
mov ebx, dword [esi + ebx*4]
xor ebx, eax
dec dword [ebp + 0x10]
mov eax, ebx
cmp dword [ebp + 0x10], 0
je 0x5011db
test dl, 3
jne 0x5011b2
sub edx, 4
cmp dword [ebp + 0x10], 0x20
jb 0x501456
add edx, 4
lea esi, [ecx + 0x1000]
lea edi, [ecx + 0x1400]
xor eax, dword [edx]
mov ebx, eax
add edx, 4
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
lea edi, [ecx + 0x1400]
xor ebx, dword [esi + eax*4]
lea esi, [ecx + 0x1000]
mov eax, ebx
xor eax, dword [edx]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
xor ebx, dword [esi + eax*4]
sub dword [ebp + 0x10], 0x20
cmp dword [ebp + 0x10], 0x20
mov eax, ebx
jae 0x5011e8
cmp dword [ebp + 0x10], 4
jb 0x5014b2
add edx, 4
lea esi, [ecx + 0x1000]
lea edi, [ecx + 0x1400]
xor eax, dword [edx]
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 + 0x1800]
and esi, 0xff
shr eax, 0x18
xor ebx, dword [edi + esi*4]
lea esi, [ecx + 0x1c00]
xor ebx, dword [esi + eax*4]
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 4
mov eax, ebx
jae 0x50145c
add edx, 4
cmp dword [ebp + 0x10], 0
je 0x5014db
movzx esi, byte [edx]
mov ebx, eax
inc edx
shr ebx, 0x18
xor ebx, esi
lea esi, [ecx + 0x1000]
shl eax, 8
mov ebx, dword [esi + ebx*4]
xor ebx, eax
dec dword [ebp + 0x10]
mov eax, ebx
jne 0x5014bb
not eax
mov edx, eax
mov ecx, eax
shr ecx, 8
shr edx, 0x18
and ecx, 0xff00
and edx, 0xff
add edx, ecx
mov ecx, eax
and ecx, 0xff00
and eax, 0xff
shl ecx, 8
shl eax, 0x18
add edx, ecx
add edx, eax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret