Function at 0xa18870
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 0xa18ae2
mov dword [ebp - 0x10], 1
cmp byte [ebp - 0x10], 0
je 0xa18aea
test edi, edi
not ebx
jne 0xa188c6
jmp 0xa18ade
movzx eax, byte [ecx]
add ecx, 1
xor eax, ebx
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0xc05ae0]
sub edi, 1
je 0xa18ade
test cl, 3
jne 0xa188a8
cmp edi, 0x1f
mov esi, ecx
jbe 0xa18ab9
mov edx, ebx
xor edx, dword [esi]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc05ae0]
xor eax, dword [ecx*4 + 0xc066e0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 4]
xor eax, dword [ecx*4 + 0xc062e0]
xor eax, dword [edx*4 + 0xc05ee0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc05ae0]
xor edx, dword [ecx*4 + 0xc066e0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 8]
xor edx, dword [ecx*4 + 0xc062e0]
xor edx, dword [eax*4 + 0xc05ee0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc05ae0]
xor eax, dword [ecx*4 + 0xc066e0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0xc]
xor eax, dword [ecx*4 + 0xc062e0]
xor eax, dword [edx*4 + 0xc05ee0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc05ae0]
xor edx, dword [ecx*4 + 0xc066e0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x10]
xor edx, dword [ecx*4 + 0xc062e0]
xor edx, dword [eax*4 + 0xc05ee0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
sub edi, 0x20
mov eax, dword [eax*4 + 0xc05ae0]
xor eax, dword [ecx*4 + 0xc066e0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x14]
xor eax, dword [ecx*4 + 0xc062e0]
xor eax, dword [edx*4 + 0xc05ee0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc05ae0]
xor edx, dword [ecx*4 + 0xc066e0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x18]
xor edx, dword [ecx*4 + 0xc062e0]
xor edx, dword [eax*4 + 0xc05ee0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc05ae0]
xor eax, dword [ecx*4 + 0xc066e0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x1c]
add esi, 0x20
xor eax, dword [ecx*4 + 0xc062e0]
xor eax, dword [edx*4 + 0xc05ee0]
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xc066e0]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xc05ae0]
xor ebx, dword [edx*4 + 0xc062e0]
xor ebx, dword [eax*4 + 0xc05ee0]
cmp edi, 0x1f
ja 0xa188d6
cmp edi, 3
jbe 0xa18abe
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 + 0xc066e0]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xc05ae0]
xor ebx, dword [edx*4 + 0xc062e0]
xor ebx, dword [eax*4 + 0xc05ee0]
cmp edi, 3
ja 0xa18a80
test edi, edi
je 0xa18ade
mov edx, esi
movzx eax, byte [edx]
add edx, 1
xor eax, ebx
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0xc05ae0]
sub edi, 1
jne 0xa18ac4
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 0xa18b40
jmp 0xa18d61
movzx edx, byte [ecx]
mov eax, ebx
add ecx, 1
shr eax, 0x18
shl ebx, 8
xor eax, edx
xor ebx, dword [eax*4 + 0xc06ae0]
sub edi, 1
je 0xa18d61
test cl, 3
jne 0xa18b20
cmp edi, 0x1f
lea esi, [ecx - 4]
jbe 0xa18d39
mov edx, ebx
xor edx, dword [esi + 4]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc076e0]
xor eax, dword [ecx*4 + 0xc06ae0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 8]
xor eax, dword [ecx*4 + 0xc06ee0]
xor eax, dword [edx*4 + 0xc072e0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc076e0]
xor edx, dword [ecx*4 + 0xc06ae0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0xc]
xor edx, dword [ecx*4 + 0xc06ee0]
xor edx, dword [eax*4 + 0xc072e0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc076e0]
xor eax, dword [ecx*4 + 0xc06ae0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x10]
xor eax, dword [ecx*4 + 0xc06ee0]
xor eax, dword [edx*4 + 0xc072e0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc076e0]
xor edx, dword [ecx*4 + 0xc06ae0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x14]
xor edx, dword [ecx*4 + 0xc06ee0]
xor edx, dword [eax*4 + 0xc072e0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
sub edi, 0x20
mov eax, dword [eax*4 + 0xc076e0]
xor eax, dword [ecx*4 + 0xc06ae0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi + 0x18]
xor eax, dword [ecx*4 + 0xc06ee0]
xor eax, dword [edx*4 + 0xc072e0]
mov edx, eax
movzx ecx, al
shr edx, 0x18
mov edx, dword [edx*4 + 0xc076e0]
xor edx, dword [ecx*4 + 0xc06ae0]
movzx ecx, ah
shr eax, 0x10
and eax, 0xff
xor edx, dword [esi + 0x1c]
add esi, 0x20
xor edx, dword [ecx*4 + 0xc06ee0]
xor edx, dword [eax*4 + 0xc072e0]
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0xc076e0]
xor eax, dword [ecx*4 + 0xc06ae0]
movzx ecx, dh
shr edx, 0x10
and edx, 0xff
xor eax, dword [esi]
xor eax, dword [ecx*4 + 0xc06ee0]
xor eax, dword [edx*4 + 0xc072e0]
movzx edx, al
mov ecx, eax
mov ebx, dword [edx*4 + 0xc06ae0]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xc076e0]
xor ebx, dword [edx*4 + 0xc06ee0]
xor ebx, dword [eax*4 + 0xc072e0]
cmp edi, 0x1f
ja 0xa18b51
cmp edi, 3
jbe 0xa18d3e
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 + 0xc06ae0]
movzx edx, ah
shr eax, 0x10
shr ecx, 0x18
and eax, 0xff
xor ebx, dword [ecx*4 + 0xc076e0]
xor ebx, dword [edx*4 + 0xc06ee0]
xor ebx, dword [eax*4 + 0xc072e0]
cmp edi, 3
ja 0xa18d00
test edi, edi
je 0xa18d61
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 + 0xc06ae0]
cmp ecx, edi
jne 0xa18d44
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