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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ecx, ecx
je 0x409d9f
mov eax, dword [esp + 0x18]
not eax
test ebx, ebx
jne 0x409b5e
jmp 0x409db0
movzx edx, byte [ecx]
add ecx, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x40f6e0]
sub ebx, 1
je 0x409d9d
test cl, 3
jne 0x409b40
cmp ebx, 0x1f
jbe 0x409d29
lea edx, [ebx - 0x20]
and edx, 0xffffffe0
lea esi, [ecx + edx + 0x20]
lea esi, [esi]
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 + 0x4102e0]
xor edx, dword [ebp*4 + 0x40f6e0]
xor edx, dword [ecx + 4]
xor edx, dword [eax*4 + 0x40fee0]
mov eax, dword [edi*4 + 0x40fae0]
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 + 0x4102e0]
xor edx, dword [ebp*4 + 0x40f6e0]
xor edx, dword [ecx + 8]
xor edx, dword [eax*4 + 0x40fee0]
xor edx, dword [edi*4 + 0x40fae0]
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 + 0x4102e0]
xor eax, dword [ebp*4 + 0x40f6e0]
xor eax, dword [ecx + 0xc]
xor eax, dword [edx*4 + 0x40fee0]
xor eax, dword [edi*4 + 0x40fae0]
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 + 0x4102e0]
xor edx, dword [ebp*4 + 0x40f6e0]
xor edx, dword [ecx + 0x10]
xor edx, dword [eax*4 + 0x40fee0]
xor edx, dword [edi*4 + 0x40fae0]
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 + 0x4102e0]
xor eax, dword [ebp*4 + 0x40f6e0]
xor eax, dword [ecx + 0x14]
xor eax, dword [edx*4 + 0x40fee0]
xor eax, dword [edi*4 + 0x40fae0]
mov edx, eax
mov ebp, eax
movzx edi, al
movzx eax, ah
shr edx, 0x10
shr ebp, 0x18
mov edi, dword [edi*4 + 0x4102e0]
add ecx, 0x20
movzx edx, dl
xor edi, dword [ebp*4 + 0x40f6e0]
xor edi, dword [ecx - 8]
xor edi, dword [eax*4 + 0x40fee0]
xor edi, dword [edx*4 + 0x40fae0]
mov eax, edi
mov edx, edi
mov ebp, edi
shr eax, 0x10
movzx edx, dl
shr ebp, 0x18
movzx eax, al
mov dword [esp], eax
mov eax, edi
mov edx, dword [edx*4 + 0x4102e0]
movzx edi, ah
mov eax, dword [esp]
xor edx, dword [ebp*4 + 0x40f6e0]
xor edx, dword [ecx - 4]
xor edx, dword [edi*4 + 0x40fee0]
xor edx, dword [eax*4 + 0x40fae0]
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 + 0x4102e0]
xor eax, dword [ebp*4 + 0x40f6e0]
xor eax, dword [edx*4 + 0x40fee0]
xor eax, dword [edi*4 + 0x40fae0]
cmp ecx, esi
jne 0x409b80
and ebx, 0x1f
cmp ebx, 3
jbe 0x409db6
lea edx, [ebx - 4]
shr edx, 2
lea esi, [ecx + edx*4 + 4]
lea esi, [esi]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
movzx ebp, al
shr edx, 0x10
mov ebp, dword [ebp*4 + 0x4102e0]
movzx edi, dl
mov edx, eax
shr edx, 0x18
xor ebp, dword [edx*4 + 0x40f6e0]
movzx edx, ah
mov eax, dword [edx*4 + 0x40fee0]
xor eax, ebp
xor eax, dword [edi*4 + 0x40fae0]
cmp ecx, esi
jne 0x409d40
and ebx, 3
test ebx, ebx
je 0x409d9d
lea edx, [esi + ebx]
movzx ecx, byte [esi]
add esi, 1
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x40f6e0]
cmp esi, edx
jne 0x409d84
not eax
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
jmp 0x409d9f
mov esi, ecx
jmp 0x409d7d