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

Disassembly:
cmp dword [esp + 8], 0
jne 0x4897da
xor eax, eax
ret
jmp 0x4897df
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
not ebx
mov ebp, 0xff
test edi, edi
mov dword [esp + 0x18], ecx
je 0x489818
test cl, 3
je 0x489818
movzx eax, byte [ecx]
xor eax, ebx
shr ebx, 8
and eax, ebp
xor ebx, dword [eax*4 + 0x4c2ea8]
inc ecx
dec edi
jmp 0x4897f8
cmp edi, 0x20
jb 0x489a1d
mov ebp, edi
shr ebp, 5
jmp 0x48982c
mov ecx, dword [esp + 0x18]
xor ebx, dword [ecx]
mov edx, 0xff
add ecx, 4
mov eax, ebx
shr eax, 8
and eax, edx
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x18]
mov ecx, ebx
shr ecx, 0x10
and ecx, edx
mov edx, dword [ecx*4 + 0x4c32a8]
xor edx, dword [eax*4 + 0x4c36a8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c2ea8]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4c3aa8]
xor edx, dword [esi]
mov ecx, edx
mov eax, edx
shr eax, 8
and eax, ebx
shr ecx, 0x10
and ecx, ebx
mov ebx, dword [ecx*4 + 0x4c32a8]
xor ebx, dword [eax*4 + 0x4c36a8]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4c2ea8]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4c3aa8]
xor ebx, dword [esi + 4]
mov ecx, ebx
mov eax, ebx
shr eax, 8
and eax, edx
shr ecx, 0x10
and ecx, edx
mov edx, dword [ecx*4 + 0x4c32a8]
xor edx, dword [eax*4 + 0x4c36a8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c2ea8]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4c3aa8]
xor edx, dword [esi + 8]
mov ecx, edx
mov eax, edx
shr eax, 8
and eax, ebx
shr ecx, 0x10
and ecx, ebx
mov ebx, dword [ecx*4 + 0x4c32a8]
xor ebx, dword [eax*4 + 0x4c36a8]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4c2ea8]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4c3aa8]
xor ebx, dword [esi + 0xc]
mov ecx, ebx
mov eax, ebx
shr ecx, 0x10
and ecx, edx
shr eax, 8
and eax, edx
mov edx, dword [ecx*4 + 0x4c32a8]
xor edx, dword [eax*4 + 0x4c36a8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c2ea8]
movzx eax, bl
xor edx, dword [eax*4 + 0x4c3aa8]
xor edx, dword [esi + 0x10]
mov ecx, edx
shr ecx, 0x10
mov eax, edx
mov ebx, 0xff
and ecx, ebx
shr eax, 8
and eax, ebx
sub edi, 0x20
mov ebx, dword [ecx*4 + 0x4c32a8]
xor ebx, dword [eax*4 + 0x4c36a8]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4c2ea8]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4c3aa8]
xor ebx, dword [esi + 0x14]
mov ecx, ebx
mov eax, ebx
shr eax, 8
and eax, edx
shr ecx, 0x10
and ecx, edx
mov edx, dword [ecx*4 + 0x4c32a8]
xor edx, dword [eax*4 + 0x4c36a8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c2ea8]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4c3aa8]
xor edx, dword [esi + 0x18]
add esi, 0x1c
mov ecx, edx
mov dword [esp + 0x18], esi
shr ecx, 0x10
mov eax, edx
and ecx, ebx
shr eax, 8
and eax, ebx
mov ebx, dword [ecx*4 + 0x4c32a8]
xor ebx, dword [eax*4 + 0x4c36a8]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4c2ea8]
movzx eax, dl
xor ebx, dword [eax*4 + 0x4c3aa8]
dec ebp
jne 0x489828
mov ebp, 0xff
jmp 0x489a21
mov esi, dword [esp + 0x18]
cmp edi, 4
jb 0x489a6a
mov edx, edi
shr edx, 2
xor ebx, dword [esi]
sub edi, 4
mov ecx, ebx
mov eax, ebx
shr ecx, 0x10
add esi, 4
and ecx, ebp
shr eax, 8
and eax, ebp
mov ecx, dword [ecx*4 + 0x4c32a8]
xor ecx, dword [eax*4 + 0x4c36a8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c2ea8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4c3aa8]
mov ebx, ecx
dec edx
jne 0x489a2b
test edi, edi
je 0x489a83
movzx eax, byte [esi]
xor eax, ebx
shr ebx, 8
and eax, ebp
xor ebx, dword [eax*4 + 0x4c2ea8]
inc esi
dec edi
jne 0x489a6e
pop edi
pop esi
not ebx
pop ebp
mov eax, ebx
pop ebx
ret