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

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
not edi
jmp 0x4086a1
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x412b60]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
dec ebx
or ebx, ebx
je 0x4086ac
test byte [esp + 0x14], 3
jne 0x408679
mov esi, dword [esp + 0x14]
jmp 0x4088f8
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
sub ebx, 0x20
cmp ebx, 0x20
jae 0x4086b5
jmp 0x40894e
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
sub ebx, 4
cmp ebx, 4
jae 0x408903
mov dword [esp + 0x14], esi
or ebx, ebx
je 0x408989
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx esi, byte [eax]
mov edx, edi
xor edx, esi
mov esi, edx
and esi, 0xff
mov esi, dword [esi*4 + 0x412b60]
mov edx, edi
shr edx, 8
mov edi, esi
xor edi, edx
mov eax, ebx
dec eax
mov ebx, eax
jne 0x40895b
not edi
mov eax, edi
pop edi
pop esi
pop ebx
ret