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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x409000
mov eax, dword [esp + 0x18]
test esi, esi
not eax
jne 0x408dae
jmp 0x408fed
add ecx, 1
mov edx, eax
shr eax, 8
xor dl, byte [ecx - 1]
movzx edx, dl
xor eax, dword [edx*4 + 0x40e200]
sub esi, 1
je 0x408fed
test cl, 3
jne 0x408d90
cmp esi, 0x1f
jbe 0x40900a
lea edx, [esi - 0x20]
and edx, 0xffffffe0
lea ebx, [ecx + edx + 0x20]
lea esi, [esi]
lea edi, [edi]
xor eax, dword [ecx]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x40ee00]
xor edx, dword [ebp*4 + 0x40e200]
xor edx, dword [ecx + 4]
xor edx, dword [eax*4 + 0x40ea00]
mov eax, dword [edi*4 + 0x40e600]
xor eax, edx
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x40ee00]
xor edx, dword [ebp*4 + 0x40e200]
xor edx, dword [ecx + 8]
xor edx, dword [eax*4 + 0x40ea00]
xor edx, dword [edi*4 + 0x40e600]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x40ee00]
xor eax, dword [ebp*4 + 0x40e200]
xor eax, dword [ecx + 0xc]
xor eax, dword [edx*4 + 0x40ea00]
xor eax, dword [edi*4 + 0x40e600]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x40ee00]
xor edx, dword [ebp*4 + 0x40e200]
xor edx, dword [ecx + 0x10]
xor edx, dword [eax*4 + 0x40ea00]
xor edx, dword [edi*4 + 0x40e600]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x40ee00]
xor eax, dword [ebp*4 + 0x40e200]
xor eax, dword [ecx + 0x14]
xor eax, dword [edx*4 + 0x40ea00]
xor eax, dword [edi*4 + 0x40e600]
mov edx, eax
mov ebp, eax
movzx edi, al
shr edx, 0x10
shr ebp, 0x18
mov edi, dword [edi*4 + 0x40ee00]
xor edi, dword [ebp*4 + 0x40e200]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 0x18]
add ecx, 0x20
xor edi, dword [eax*4 + 0x40ea00]
xor edi, dword [edx*4 + 0x40e600]
mov eax, edi
mov edx, edi
mov ebp, edi
shr eax, 0x10
shr ebp, 0x18
movzx edx, dl
movzx eax, al
mov dword [esp], eax
mov eax, edi
mov edx, dword [edx*4 + 0x40ee00]
movzx edi, ah
xor edx, dword [ebp*4 + 0x40e200]
mov eax, dword [esp]
xor edx, dword [ecx - 4]
xor edx, dword [edi*4 + 0x40ea00]
xor edx, dword [eax*4 + 0x40e600]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x40ee00]
xor eax, dword [ebp*4 + 0x40e200]
xor eax, dword [edx*4 + 0x40ea00]
xor eax, dword [edi*4 + 0x40e600]
cmp ecx, ebx
jne 0x408dd0
and esi, 0x1f
cmp esi, 3
jbe 0x409011
lea edx, [esi - 4]
shr edx, 2
lea ecx, [ebx + edx*4 + 4]
lea esi, [esi]
add ebx, 4
xor eax, dword [ebx - 4]
mov edx, eax
movzx ebp, al
shr edx, 0x10
mov ebp, dword [ebp*4 + 0x40ee00]
movzx edi, dl
mov edx, eax
shr edx, 0x18
xor ebp, dword [edx*4 + 0x40e200]
movzx edx, ah
mov eax, dword [edx*4 + 0x40ea00]
xor eax, ebp
xor eax, dword [edi*4 + 0x40e600]
cmp ebx, ecx
jne 0x408f90
and esi, 3
test esi, esi
je 0x408fed
add esi, ecx
add ecx, 1
mov edx, eax
shr eax, 8
xor dl, byte [ecx - 1]
movzx edx, dl
xor eax, dword [edx*4 + 0x40e200]
cmp ecx, esi
jne 0x408fd4
add esp, 4
not eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 4
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, ecx
jmp 0x408f79
mov ecx, ebx
jmp 0x408fce