Function at 0x406850
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0x10
jb 0x406afb
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x4baba0]
mov dword [ebp - 4], edx
mov eax, 1
shl eax, 1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x4baba0]
mov dword [ebp - 4], edx
mov eax, 1
shl eax, 2
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x4baba0]
mov dword [ebp - 4], edx
mov eax, 1
imul ecx, eax, 6
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, 1
imul eax, edx, 7
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, 1
shl ecx, 3
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, 1
imul eax, edx, 9
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0xa
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x4baba0]
mov dword [ebp - 4], edx
mov eax, 1
imul ecx, eax, 0xb
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, 1
imul eax, edx, 0xc
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0xd
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x4baba0]
mov dword [ebp - 4], edx
mov eax, 1
imul ecx, eax, 0xe
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, 1
imul eax, edx, 0xf
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [edx*4 + 0x4baba0]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, 0x10
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10
jae 0x406865
cmp dword [ebp + 0xc], 0
je 0x406b3c
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4baba0]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
jne 0x406b01
mov ecx, dword [ebp - 4]
xor ecx, 0xffffffff
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret