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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
test edx, edx
je 0x1004ecb1
mov eax, dword [esp + 0x28]
test ecx, ecx
mov dword [esp + 0x10], 1
not eax
jne 0x1004ea4e
jmp 0x1004ecaf
movzx ebx, byte [edx]
add edx, 1
xor ebx, eax
movzx ebx, bl
shr eax, 8
xor eax, dword [ebx*4 + 0x1006dc60]
sub ecx, 1
je 0x1004ecaf
test dl, 3
jne 0x1004ea30
cmp ecx, 0x1f
jbe 0x1004ec33
mov ebx, ecx
mov esi, edx
mov dword [esp], edx
xor eax, dword [esi]
mov edx, eax
movzx edi, al
shr edx, 0x10
movzx ebp, ah
mov edi, dword [edi*4 + 0x1006e860]
and edx, 0xff
shr eax, 0x18
xor edi, dword [eax*4 + 0x1006dc60]
xor edi, dword [esi + 4]
xor edi, dword [ebp*4 + 0x1006e460]
xor edi, dword [edx*4 + 0x1006e060]
mov eax, edi
mov ebp, edi
movzx edx, ah
and ebp, 0xff
shr eax, 0x10
mov ebp, dword [ebp*4 + 0x1006e860]
and eax, 0xff
shr edi, 0x18
xor ebp, dword [edi*4 + 0x1006dc60]
xor ebp, dword [esi + 8]
xor ebp, dword [edx*4 + 0x1006e460]
xor ebp, dword [eax*4 + 0x1006e060]
mov eax, ebp
mov edi, ebp
movzx edx, ah
and edi, 0xff
shr eax, 0x10
mov edi, dword [edi*4 + 0x1006e860]
and eax, 0xff
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x1006dc60]
xor edi, dword [esi + 0xc]
xor edi, dword [edx*4 + 0x1006e460]
xor edi, dword [eax*4 + 0x1006e060]
mov eax, edi
mov ebp, edi
movzx edx, ah
and ebp, 0xff
shr eax, 0x10
mov ebp, dword [ebp*4 + 0x1006e860]
and eax, 0xff
shr edi, 0x18
xor ebp, dword [edi*4 + 0x1006dc60]
xor ebp, dword [esi + 0x10]
xor ebp, dword [edx*4 + 0x1006e460]
xor ebp, dword [eax*4 + 0x1006e060]
mov eax, ebp
mov edi, ebp
movzx edx, ah
shr eax, 0x10
and edi, 0xff
and eax, 0xff
mov edi, dword [edi*4 + 0x1006e860]
sub ebx, 0x20
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x1006dc60]
xor edi, dword [esi + 0x14]
xor edi, dword [edx*4 + 0x1006e460]
xor edi, dword [eax*4 + 0x1006e060]
mov eax, edi
mov ebp, edi
movzx edx, ah
and ebp, 0xff
shr eax, 0x10
mov ebp, dword [ebp*4 + 0x1006e860]
and eax, 0xff
shr edi, 0x18
xor ebp, dword [edi*4 + 0x1006dc60]
xor ebp, dword [esi + 0x18]
xor ebp, dword [edx*4 + 0x1006e460]
xor ebp, dword [eax*4 + 0x1006e060]
mov eax, ebp
mov edx, ebp
movzx edi, ah
and edx, 0xff
shr eax, 0x10
mov edx, dword [edx*4 + 0x1006e860]
and eax, 0xff
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x1006dc60]
xor edx, dword [esi + 0x1c]
add esi, 0x20
xor edx, dword [edi*4 + 0x1006e460]
xor edx, dword [eax*4 + 0x1006e060]
mov edi, edx
mov eax, edx
shr edi, 0x10
movzx ebp, dl
shr eax, 0x18
and edi, 0xff
mov eax, dword [eax*4 + 0x1006dc60]
movzx edx, dh
xor eax, dword [ebp*4 + 0x1006e860]
xor eax, dword [edx*4 + 0x1006e460]
xor eax, dword [edi*4 + 0x1006e060]
cmp ebx, 0x1f
ja 0x1004ea63
mov edx, dword [esp]
lea ebx, [ecx - 0x20]
and ecx, 0x1f
and ebx, 0xffffffe0
lea edx, [edx + ebx + 0x20]
cmp ecx, 3
jbe 0x1004ec91
mov edi, ecx
mov esi, edx
mov dword [esp], edx
nop
mov edx, dword [esi]
sub edi, 4
add esi, 4
xor edx, eax
mov ebx, edx
mov eax, edx
shr ebx, 0x10
movzx ebp, dl
shr eax, 0x18
and ebx, 0xff
mov eax, dword [eax*4 + 0x1006dc60]
movzx edx, dh
xor eax, dword [ebp*4 + 0x1006e860]
xor eax, dword [edx*4 + 0x1006e460]
xor eax, dword [ebx*4 + 0x1006e060]
cmp edi, 3
ja 0x1004ec40
mov edx, dword [esp]
lea ebx, [ecx - 4]
and ecx, 3
shr ebx, 2
lea edx, [edx + ebx*4 + 4]
test ecx, ecx
je 0x1004ecaf
movzx ebx, byte [edx]
add edx, 1
xor ebx, eax
movzx ebx, bl
shr eax, 8
xor eax, dword [ebx*4 + 0x1006dc60]
sub ecx, 1
jne 0x1004ec95
not eax
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret