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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp], ebx
je 0x409ea4
mov eax, dword [esp + 0x18]
test ebx, ebx
not eax
jne 0x409c60
jmp 0x409ea2
add ecx, 1
movzx edx, byte [ecx - 1]
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x410de0]
sub dword [esp], 1
je 0x409ea2
test cl, 3
jne 0x409c40
mov esi, dword [esp]
cmp esi, 0x1f
jbe 0x409e24
lea edx, [esi - 0x20]
and edx, 0xffffffe0
lea esi, [ecx + edx + 0x20]
nop
lea esi, [esi]
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 + 0x4119e0]
xor edx, dword [ebp*4 + 0x410de0]
xor edx, dword [ecx + 4]
xor edx, dword [eax*4 + 0x4115e0]
mov eax, dword [edi*4 + 0x4111e0]
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 + 0x4119e0]
xor edx, dword [ebp*4 + 0x410de0]
xor edx, dword [ecx + 8]
xor edx, dword [eax*4 + 0x4115e0]
xor edx, dword [edi*4 + 0x4111e0]
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 + 0x4119e0]
xor eax, dword [ebp*4 + 0x410de0]
xor eax, dword [ecx + 0xc]
xor eax, dword [edx*4 + 0x4115e0]
xor eax, dword [edi*4 + 0x4111e0]
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 + 0x4119e0]
xor edx, dword [ebp*4 + 0x410de0]
xor edx, dword [ecx + 0x10]
xor edx, dword [eax*4 + 0x4115e0]
xor edx, dword [edi*4 + 0x4111e0]
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 + 0x4119e0]
xor eax, dword [ebp*4 + 0x410de0]
xor eax, dword [ecx + 0x14]
xor eax, dword [edx*4 + 0x4115e0]
xor eax, dword [edi*4 + 0x4111e0]
mov edx, eax
mov ebp, eax
movzx edi, al
shr edx, 0x10
shr ebp, 0x18
mov edi, dword [edi*4 + 0x4119e0]
xor edi, dword [ebp*4 + 0x410de0]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 0x18]
add ecx, 0x20
xor edi, dword [eax*4 + 0x4115e0]
xor edi, dword [edx*4 + 0x4111e0]
mov edx, edi
mov ebp, edi
mov eax, edi
shr ebp, 0x18
movzx edx, dl
mov ebx, edi
mov edx, dword [edx*4 + 0x4119e0]
xor edx, dword [ebp*4 + 0x410de0]
shr eax, 0x10
xor edx, dword [ecx - 4]
movzx edi, bh
movzx eax, al
xor edx, dword [edi*4 + 0x4115e0]
xor edx, dword [eax*4 + 0x4111e0]
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 + 0x4119e0]
xor eax, dword [ebp*4 + 0x410de0]
xor eax, dword [edx*4 + 0x4115e0]
xor eax, dword [edi*4 + 0x4111e0]
cmp ecx, esi
jne 0x409c80
and dword [esp], 0x1f
mov ebx, dword [esp]
cmp ebx, 3
jbe 0x409e7f
lea edx, [ebx - 4]
shr edx, 2
lea esi, [ecx + edx*4 + 4]
lea esi, [esi]
lea edi, [edi]
add ecx, 4
xor eax, dword [ecx - 4]
mov edx, eax
movzx ebp, al
shr edx, 0x10
mov ebp, dword [ebp*4 + 0x4119e0]
movzx edi, dl
mov edx, eax
shr edx, 0x18
xor ebp, dword [edx*4 + 0x410de0]
movzx edx, ah
mov eax, dword [edx*4 + 0x4115e0]
xor eax, ebp
xor eax, dword [edi*4 + 0x4111e0]
cmp ecx, esi
jne 0x409e40
and dword [esp], 3
mov ebx, dword [esp]
test ebx, ebx
je 0x409ea2
add ebx, ecx
add ecx, 1
movzx edx, byte [ecx - 1]
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x410de0]
cmp ecx, ebx
jne 0x409e88
not eax
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret