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

Disassembly:
cmp dword [esp + 8], 0
jne 0x4085e7
xor eax, eax
ret
jmp 0x4085ec
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 0x408625
test cl, 3
je 0x408625
movzx eax, byte [ecx]
xor eax, ebx
shr ebx, 8
and eax, ebp
xor ebx, dword [eax*4 + 0x4205f0]
inc ecx
dec edi
jmp 0x408605
cmp edi, 0x20
jb 0x40882a
mov ebp, edi
shr ebp, 5
jmp 0x408639
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 + 0x4209f0]
xor edx, dword [eax*4 + 0x420df0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4205f0]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor ebx, dword [eax*4 + 0x420df0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4205f0]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor edx, dword [eax*4 + 0x420df0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4205f0]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor ebx, dword [eax*4 + 0x420df0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4205f0]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor edx, dword [eax*4 + 0x420df0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4205f0]
movzx eax, bl
xor edx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor ebx, dword [eax*4 + 0x420df0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4205f0]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor edx, dword [eax*4 + 0x420df0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4205f0]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x4211f0]
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 + 0x4209f0]
xor ebx, dword [eax*4 + 0x420df0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4205f0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x4211f0]
dec ebp
jne 0x408635
mov ebp, 0xff
jmp 0x40882e
mov esi, dword [esp + 0x18]
cmp edi, 4
jb 0x408877
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 + 0x4209f0]
xor ecx, dword [eax*4 + 0x420df0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4205f0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4211f0]
mov ebx, ecx
dec edx
jne 0x408838
test edi, edi
je 0x408890
movzx eax, byte [esi]
xor eax, ebx
shr ebx, 8
and eax, ebp
xor ebx, dword [eax*4 + 0x4205f0]
inc esi
dec edi
jne 0x40887b
pop edi
pop esi
not ebx
pop ebp
mov eax, ebx
pop ebx
ret