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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
not eax
je 0x40b508
test cl, 3
je 0x40b508
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40dbdc]
xor eax, edx
inc ecx
dec edi
jne 0x40b4e5
cmp edi, 0x20
mov esi, ecx
jb 0x40b704
mov edx, edi
shr edx, 5
mov ebx, dword [esi]
xor ecx, ecx
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
add esi, 4
add esi, 4
mov ecx, dword [ecx*4 + 0x40dfdc]
add esi, 4
xor ecx, dword [ebx*4 + 0x40e3dc]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
add esi, 4
xor ecx, dword [ebx*4 + 0x40dbdc]
add esi, 4
mov ebx, dword [eax*4 + 0x40e7dc]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 0x10]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x40dfdc]
xor eax, dword [ebx*4 + 0x40e3dc]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [ecx*4 + 0x40e7dc]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 0xc]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x40dfdc]
xor ecx, dword [ebx*4 + 0x40e3dc]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [eax*4 + 0x40e7dc]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 8]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x40dfdc]
xor eax, dword [ebx*4 + 0x40e3dc]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [ecx*4 + 0x40e7dc]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 4]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x40dfdc]
xor ecx, dword [ebx*4 + 0x40e3dc]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [eax*4 + 0x40e7dc]
xor ecx, ebx
mov ebx, dword [esi]
xor ecx, ebx
xor eax, eax
mov dword [ebp + 0xc], ecx
xor ebx, ebx
mov al, byte [ebp + 0xe]
mov bl, ch
add esi, 4
sub edi, 0x20
mov eax, dword [eax*4 + 0x40dfdc]
add esi, 4
xor eax, dword [ebx*4 + 0x40e3dc]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
add esi, 4
xor eax, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [ecx*4 + 0x40e7dc]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 8]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x40dfdc]
xor ecx, dword [ebx*4 + 0x40e3dc]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [eax*4 + 0x40e7dc]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x40dfdc]
xor eax, dword [ebx*4 + 0x40e3dc]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [ecx*4 + 0x40e7dc]
xor eax, ebx
dec edx
jne 0x40b518
cmp edi, 4
jb 0x40b751
mov ecx, edi
shr ecx, 2
mov ebx, dword [esi]
xor edx, edx
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov dl, byte [ebp + 0xe]
add esi, 4
sub edi, 4
mov edx, dword [edx*4 + 0x40dfdc]
xor edx, dword [ebx*4 + 0x40e3dc]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor edx, dword [ebx*4 + 0x40dbdc]
mov ebx, dword [eax*4 + 0x40e7dc]
xor edx, ebx
dec ecx
mov eax, edx
jne 0x40b70e
test edi, edi
je 0x40b773
mov ecx, eax
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
xor ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x40dbdc]
xor eax, ecx
inc esi
dec edi
jne 0x40b755
pop edi
pop esi
not eax
pop ebx
pop ebp
ret