Function at 0x402002
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 - 8], eax
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x402051
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x402051
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5795c8]
mov dword [ebp - 8], 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 0x402015
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x20
jb 0x402337
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x402057
cmp dword [ebp + 0x10], 4
jb 0x4023a1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [eax*4 + 0x57a1c8]
xor eax, dword [ecx*4 + 0x579dc8]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5799c8]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5795c8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp + 0x10], eax
jmp 0x402337
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x4023db
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5795c8]
mov dword [ebp - 8], 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
jne 0x4023ad
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret