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

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x651412
mov dword [ebp - 0x10], 1
cmp byte [ebp - 0x10], 0
je 0x65141a
test edi, edi
not ebx
jne 0x6511f6
jmp 0x65140e
movzx eax, byte [ecx]
add ecx, 1
xor eax, ebx
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0xafd100]
sub edi, 1
je 0x65140e
test cl, 3
jne 0x6511d8
cmp edi, 0x1f
mov esi, ecx
jbe 0x6513e9
mov edx, ebx
xor edx, dword [esi]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafd100]
xor eax, dword [ecx*4 + 0xafdd00]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 4]
xor eax, dword [ecx*4 + 0xafd900]
xor eax, dword [edx*4 + 0xafd500]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafd100]
xor edx, dword [ecx*4 + 0xafdd00]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 8]
xor edx, dword [ecx*4 + 0xafd900]
xor edx, dword [eax*4 + 0xafd500]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafd100]
xor eax, dword [ecx*4 + 0xafdd00]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0xc]
xor eax, dword [ecx*4 + 0xafd900]
xor eax, dword [edx*4 + 0xafd500]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafd100]
xor edx, dword [ecx*4 + 0xafdd00]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x10]
xor edx, dword [ecx*4 + 0xafd900]
xor edx, dword [eax*4 + 0xafd500]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
sub edi, 0x20
mov eax, dword [eax*4 + 0xafd100]
xor eax, dword [ecx*4 + 0xafdd00]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x14]
xor eax, dword [ecx*4 + 0xafd900]
xor eax, dword [edx*4 + 0xafd500]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafd100]
xor edx, dword [ecx*4 + 0xafdd00]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x18]
xor edx, dword [ecx*4 + 0xafd900]
xor edx, dword [eax*4 + 0xafd500]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafd100]
xor eax, dword [ecx*4 + 0xafdd00]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x1c]
add esi, 0x20
xor eax, dword [ecx*4 + 0xafd900]
xor eax, dword [edx*4 + 0xafd500]
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xafdd00]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xafd100]
xor ebx, dword [edx*4 + 0xafd900]
xor ebx, dword [eax*4 + 0xafd500]
cmp edi, 0x1f
ja 0x651206
cmp edi, 3
jbe 0x6513ee
nop
mov eax, ebx
sub edi, 4
xor eax, dword [esi]
add esi, 4
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xafdd00]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xafd100]
xor ebx, dword [edx*4 + 0xafd900]
xor ebx, dword [eax*4 + 0xafd500]
cmp edi, 3
ja 0x6513b0
test edi, edi
je 0x65140e
mov edx, esi
movzx eax, byte [edx]
add edx, 1
xor eax, ebx
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0xafd100]
sub edi, 1
jne 0x6513f4
mov eax, ebx
not eax
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
mov edx, ebx
shr eax, 8
and edx, 0xff00
shl edx, 8
and eax, 0xff00
add eax, edx
mov edx, ebx
shr edx, 0x18
add eax, edx
shl ebx, 0x18
test edi, edi
lea ebx, [eax + ebx]
not ebx
jne 0x651470
jmp 0x651691
movzx edx, byte [ecx]
mov eax, ebx
add ecx, 1
shr eax, 0x18
shl ebx, 8
xor eax, edx
xor ebx, dword [eax*4 + 0xafe100]
sub edi, 1
je 0x651691
test cl, 3
jne 0x651450
cmp edi, 0x1f
lea esi, [ecx - 4]
jbe 0x651669
mov edx, ebx
xor edx, dword [esi + 4]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafed00]
xor eax, dword [ecx*4 + 0xafe100]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 8]
xor eax, dword [ecx*4 + 0xafe500]
xor eax, dword [edx*4 + 0xafe900]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafed00]
xor edx, dword [ecx*4 + 0xafe100]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0xc]
xor edx, dword [ecx*4 + 0xafe500]
xor edx, dword [eax*4 + 0xafe900]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafed00]
xor eax, dword [ecx*4 + 0xafe100]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x10]
xor eax, dword [ecx*4 + 0xafe500]
xor eax, dword [edx*4 + 0xafe900]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafed00]
xor edx, dword [ecx*4 + 0xafe100]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x14]
xor edx, dword [ecx*4 + 0xafe500]
xor edx, dword [eax*4 + 0xafe900]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
sub edi, 0x20
mov eax, dword [eax*4 + 0xafed00]
xor eax, dword [ecx*4 + 0xafe100]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x18]
xor eax, dword [ecx*4 + 0xafe500]
xor eax, dword [edx*4 + 0xafe900]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xafed00]
xor edx, dword [ecx*4 + 0xafe100]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x1c]
add esi, 0x20
xor edx, dword [ecx*4 + 0xafe500]
xor edx, dword [eax*4 + 0xafe900]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xafed00]
xor eax, dword [ecx*4 + 0xafe100]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi]
xor eax, dword [ecx*4 + 0xafe500]
xor eax, dword [edx*4 + 0xafe900]
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xafe100]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xafed00]
xor ebx, dword [edx*4 + 0xafe500]
xor ebx, dword [eax*4 + 0xafe900]
cmp edi, 0x1f
ja 0x651481
cmp edi, 3
jbe 0x65166e
lea esi, [esi]
add esi, 4
mov eax, ebx
xor eax, dword [esi]
sub edi, 4
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xafe100]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xafed00]
xor ebx, dword [edx*4 + 0xafe500]
xor ebx, dword [eax*4 + 0xafe900]
cmp edi, 3
ja 0x651630
test edi, edi
je 0x651691
xor ecx, ecx
movzx edx, byte [ecx + esi + 4]
mov eax, ebx
add ecx, 1
shr eax, 0x18
shl ebx, 8
xor eax, edx
xor ebx, dword [eax*4 + 0xafe100]
cmp ecx, edi
jne 0x651674
mov ecx, ebx
add esp, 0x10
not ecx
mov edx, ecx
mov eax, ecx
shr edx, 8
and eax, 0xff00
shl eax, 8
and edx, 0xff00
add edx, eax
mov eax, ecx
shr eax, 0x18
pop ebx
add edx, eax
pop esi
pop edi
pop ebp
shl ecx, 0x18
lea eax, [edx + ecx]
ret