Function at 0x10004f50
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 0x10004f82
test bl, 3
je 0x10004f82
movzx ecx, byte [ebx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x10031fc0]
inc ebx
dec edi
jne 0x10004f64
push esi
cmp edi, 0x20
jb 0x10005193
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 + 0x100323c0]
xor edx, dword [ecx*4 + 0x100327c0]
mov ecx, eax
movzx eax, al
shr ecx, 0x18
mov esi, dword [ebp + 0xc]
xor edx, dword [ecx*4 + 0x10031fc0]
xor edx, dword [eax*4 + 0x10032bc0]
xor edx, dword [ebx - 4]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x100327c0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x10031fc0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x10032bc0]
xor ebx, dword [esi]
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, ebx
mov edx, dword [ecx*4 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100327c0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x10031fc0]
movzx eax, bl
xor edx, dword [eax*4 + 0x10032bc0]
xor edx, dword [esi + 4]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x100327c0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x10031fc0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x10032bc0]
xor ebx, dword [esi + 8]
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, ebx
mov edx, dword [ecx*4 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100327c0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x10031fc0]
movzx eax, bl
xor edx, dword [eax*4 + 0x10032bc0]
xor edx, dword [esi + 0xc]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov eax, edx
mov ebx, dword [ecx*4 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x100327c0]
mov eax, edx
shr eax, 0x18
add esi, 0x14
xor ebx, dword [eax*4 + 0x10031fc0]
movzx eax, dl
sub edi, 0x20
xor ebx, dword [eax*4 + 0x10032bc0]
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 + 0x100323c0]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100327c0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x10031fc0]
movzx eax, bl
mov ebx, esi
xor edx, dword [eax*4 + 0x10032bc0]
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 + 0x100323c0]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100327c0]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10031fc0]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x10032bc0]
dec dword [ebp + 8]
jne 0x10004f94
cmp edi, 4
jb 0x100051e7
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 + 0x100323c0]
shr ecx, 8
and ecx, 0xff
sub edi, 4
xor edx, dword [ecx*4 + 0x100327c0]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x10031fc0]
xor edx, dword [eax*4 + 0x10032bc0]
mov eax, edx
dec esi
jne 0x100051a0
pop esi
test edi, edi
je 0x1000520b
lea esp, [esp]
movzx ecx, byte [ebx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x10031fc0]
lea ebx, [ebx + 1]
dec edi
jne 0x100051f0
pop edi
not eax
pop ebx
pop ebp
ret