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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
not eax
test edi, edi
je 0x40c512
test bl, 3
je 0x40c512
movzx ecx, byte [ebx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x417f08]
inc ebx
dec edi
jne 0x40c4f4
push esi
cmp edi, 0x20
jb 0x40c723
mov ecx, edi
shr ecx, 5
mov dword [ebp + 8], ecx
xor eax, dword [ebx]
add ebx, 8
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
and ecx, 0xff
and edx, 0xff
mov dword [ebp + 0xc], ebx
mov edx, dword [edx*4 + 0x418308]
xor edx, dword [ecx*4 + 0x418708]
mov ecx, eax
movzx eax, al
shr ecx, 0x18
mov esi, dword [ebp + 0xc]
xor edx, dword [ecx*4 + 0x417f08]
xor edx, dword [eax*4 + 0x418b08]
xor edx, dword [ebx - 4]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x418708]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x417f08]
movzx eax, dl
xor ebx, dword [eax*4 + 0x418b08]
xor ebx, dword [esi]
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, ebx
mov edx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x418708]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x417f08]
movzx eax, bl
xor edx, dword [eax*4 + 0x418b08]
xor edx, dword [esi + 4]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x418708]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x417f08]
movzx eax, dl
xor ebx, dword [eax*4 + 0x418b08]
xor ebx, dword [esi + 8]
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, ebx
mov edx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x418708]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x417f08]
movzx eax, bl
xor edx, dword [eax*4 + 0x418b08]
xor edx, dword [esi + 0xc]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x418708]
mov eax, edx
shr eax, 0x18
add esi, 0x14
xor ebx, dword [eax*4 + 0x417f08]
movzx eax, dl
sub edi, 0x20
xor ebx, dword [eax*4 + 0x418b08]
mov dword [ebp + 0xc], esi
xor ebx, dword [esi - 4]
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, ebx
mov edx, dword [ecx*4 + 0x418308]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x418708]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x417f08]
movzx eax, bl
mov ebx, esi
xor edx, dword [eax*4 + 0x418b08]
add ebx, 4
xor edx, dword [ebx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov ecx, edx
mov eax, dword [eax*4 + 0x418308]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x418708]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x417f08]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x418b08]
dec dword [ebp + 8]
jne 0x40c524
cmp edi, 4
jb 0x40c777
mov esi, edi
shr esi, 2
lea ecx, [ecx]
xor eax, dword [ebx]
add ebx, 4
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov ecx, eax
mov edx, dword [edx*4 + 0x418308]
shr ecx, 8
and ecx, 0xff
sub edi, 4
xor edx, dword [ecx*4 + 0x418708]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x417f08]
xor edx, dword [eax*4 + 0x418b08]
mov eax, edx
dec esi
jne 0x40c730
pop esi
test edi, edi
je 0x40c79b
lea esp, [esp]
movzx ecx, byte [ebx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x417f08]
lea ebx, [ebx + 1]
dec edi
jne 0x40c780
pop edi
not eax
pop ebx
pop ebp
ret