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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x4080ac
mov eax, dword [ebp + 0xc]
and eax, 3
test eax, eax
je 0x4080ac
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp - 4]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
mov ecx, dword [ecx*4 + 0x413aa8]
xor ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jmp 0x408069
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0x20
jb 0x408392
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x4080b2
cmp dword [ebp + 0x10], 4
jb 0x4083fc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x4146a8]
xor eax, dword [ecx*4 + 0x4142a8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x413ea8]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x413aa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x408392
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x40843f
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp - 4]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp - 4]
shr eax, 8
mov ecx, dword [ecx*4 + 0x413aa8]
xor ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x408408
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret