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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x4ea450
mov eax, dword [esp + 0x18]
test esi, esi
not eax
jne 0x4ea05e
jmp 0x4ea43c
add ebx, 1
mov edx, eax
shr eax, 8
xor dl, byte [ebx - 1]
movzx edx, dl
xor eax, dword [edx*4 + 0x5057a0]
sub esi, 1
je 0x4ea43c
test bl, 3
jne 0x4ea040
cmp esi, 0x1f
mov edx, ebx
jbe 0x4ea23b
lea ecx, [esi - 0x20]
mov dword [esp + 0x1c], ebx
mov edx, ecx
mov dword [esp], ecx
and edx, 0xffffffe0
lea ecx, [ebx + edx + 0x20]
mov edi, ecx
mov ecx, ebx
mov ebx, edi
mov esi, esi
lea edi, [edi]
xor eax, dword [ecx]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x5063a0]
xor edx, dword [ebp*4 + 0x5057a0]
xor edx, dword [ecx + 4]
xor edx, dword [eax*4 + 0x505fa0]
xor edx, dword [edi*4 + 0x505ba0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x5063a0]
xor eax, dword [ebp*4 + 0x5057a0]
xor eax, dword [ecx + 8]
xor eax, dword [edx*4 + 0x505fa0]
xor eax, dword [edi*4 + 0x505ba0]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x5063a0]
xor edx, dword [ebp*4 + 0x5057a0]
xor edx, dword [ecx + 0xc]
xor edx, dword [eax*4 + 0x505fa0]
xor edx, dword [edi*4 + 0x505ba0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x5063a0]
xor eax, dword [ebp*4 + 0x5057a0]
xor eax, dword [ecx + 0x10]
xor eax, dword [edx*4 + 0x505fa0]
xor eax, dword [edi*4 + 0x505ba0]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x5063a0]
xor edx, dword [ebp*4 + 0x5057a0]
xor edx, dword [ecx + 0x14]
xor edx, dword [eax*4 + 0x505fa0]
xor edx, dword [edi*4 + 0x505ba0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
add ecx, 0x20
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x5063a0]
xor eax, dword [ebp*4 + 0x5057a0]
xor eax, dword [ecx - 8]
xor eax, dword [edx*4 + 0x505fa0]
xor eax, dword [edi*4 + 0x505ba0]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x5063a0]
xor edx, dword [ebp*4 + 0x5057a0]
xor edx, dword [ecx - 4]
xor edx, dword [eax*4 + 0x505fa0]
xor edx, dword [edi*4 + 0x505ba0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x5063a0]
xor eax, dword [ebp*4 + 0x5057a0]
xor eax, dword [edx*4 + 0x505fa0]
xor eax, dword [edi*4 + 0x505ba0]
cmp ecx, ebx
jne 0x4ea090
mov edx, dword [esp]
mov ebx, dword [esp + 0x1c]
and esi, 0x1f
and edx, 0xffffffe0
lea edx, [ebx + edx + 0x20]
cmp esi, 3
jbe 0x4ea3f9
xor eax, dword [edx]
mov ecx, eax
mov ebx, eax
shr ecx, 0x10
shr ebx, 0x18
movzx edi, cl
movzx ecx, al
mov ebx, dword [ebx*4 + 0x5057a0]
xor ebx, dword [ecx*4 + 0x5063a0]
movzx ecx, ah
mov eax, dword [ecx*4 + 0x505fa0]
lea ecx, [esi - 4]
xor eax, ebx
xor eax, dword [edi*4 + 0x505ba0]
cmp ecx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 4]
mov ebx, eax
mov ebp, eax
shr ebx, 0x10
shr ebp, 0x18
movzx edi, bl
movzx ebx, al
mov ebp, dword [ebp*4 + 0x5057a0]
xor ebp, dword [ebx*4 + 0x5063a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
lea ebx, [esi - 8]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
cmp ebx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 8]
mov ebx, eax
mov ebp, eax
shr ebx, 0x10
shr ebp, 0x18
movzx edi, bl
movzx ebx, al
mov ebp, dword [ebp*4 + 0x5057a0]
xor ebp, dword [ebx*4 + 0x5063a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
lea ebx, [esi - 0xc]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
cmp ebx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 0xc]
mov ebx, eax
mov ebp, eax
shr ebx, 0x10
shr ebp, 0x18
movzx edi, bl
movzx ebx, al
mov ebp, dword [ebp*4 + 0x5057a0]
xor ebp, dword [ebx*4 + 0x5063a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
lea ebx, [esi - 0x10]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
cmp ebx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 0x10]
mov ebx, eax
mov ebp, eax
shr ebx, 0x10
shr ebp, 0x18
movzx edi, bl
movzx ebx, al
mov ebp, dword [ebp*4 + 0x5057a0]
xor ebp, dword [ebx*4 + 0x5063a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
lea ebx, [esi - 0x14]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
cmp ebx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 0x14]
mov ebx, eax
mov ebp, eax
shr ebx, 0x10
shr ebp, 0x18
movzx edi, bl
movzx ebx, al
mov ebp, dword [ebp*4 + 0x5057a0]
xor ebp, dword [ebx*4 + 0x5063a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
lea ebx, [esi - 0x18]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
cmp ebx, 3
jbe 0x4ea3ef
xor eax, dword [edx + 0x18]
mov ebx, eax
movzx ebp, al
shr ebx, 0x10
mov ebp, dword [ebp*4 + 0x5063a0]
movzx edi, bl
mov ebx, eax
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x5057a0]
movzx ebx, ah
mov eax, dword [ebx*4 + 0x505fa0]
xor eax, ebp
xor eax, dword [edi*4 + 0x505ba0]
and ecx, 0xfffffffc
and esi, 3
lea edx, [edx + ecx + 4]
test esi, esi
je 0x4ea43c
mov ecx, eax
xor cl, byte [edx]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5057a0]
cmp esi, 1
je 0x4ea43c
mov ecx, eax
xor cl, byte [edx + 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5057a0]
cmp esi, 2
je 0x4ea43c
mov ebx, eax
xor bl, byte [edx + 2]
shr eax, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x5057a0]
add esp, 4
not eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 4
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret