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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edx, edx
je 0x46de83
mov eax, dword [esp + 0x18]
test ebp, ebp
not eax
jne 0x46dc24
jmp 0x46de79
add edx, 1
mov ecx, eax
xor cl, byte [edx - 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4b4dc0]
sub ebp, 1
je 0x46de79
test dl, 3
jne 0x46dc06
cmp ebp, 0x1f
jbe 0x46ddf4
lea edi, [ebp - 0x20]
mov ebx, edx
mov dword [esp], edi
shr dword [esp], 5
mov ecx, dword [esp]
mov dword [esp + 0x1c], edx
shl ecx, 5
lea edi, [edx + ecx + 0x20]
lea esi, [esi]
xor eax, dword [ebx]
mov edx, eax
movzx ecx, al
shr edx, 0x10
movzx esi, ah
mov ecx, dword [ecx*4 + 0x4b59c0]
shr eax, 0x18
movzx edx, dl
xor ecx, dword [eax*4 + 0x4b4dc0]
xor ecx, dword [ebx + 4]
xor ecx, dword [esi*4 + 0x4b55c0]
xor ecx, dword [edx*4 + 0x4b51c0]
mov eax, ecx
movzx esi, cl
shr eax, 0x10
movzx edx, ch
mov esi, dword [esi*4 + 0x4b59c0]
shr ecx, 0x18
movzx eax, al
xor esi, dword [ecx*4 + 0x4b4dc0]
xor esi, dword [ebx + 8]
xor esi, dword [edx*4 + 0x4b55c0]
xor esi, dword [eax*4 + 0x4b51c0]
mov eax, esi
mov ecx, esi
movzx edx, ah
movzx ecx, cl
shr eax, 0x10
mov ecx, dword [ecx*4 + 0x4b59c0]
shr esi, 0x18
movzx eax, al
xor ecx, dword [esi*4 + 0x4b4dc0]
xor ecx, dword [ebx + 0xc]
xor ecx, dword [edx*4 + 0x4b55c0]
xor ecx, dword [eax*4 + 0x4b51c0]
mov eax, ecx
movzx esi, cl
shr eax, 0x10
movzx edx, ch
mov esi, dword [esi*4 + 0x4b59c0]
shr ecx, 0x18
movzx eax, al
xor esi, dword [ecx*4 + 0x4b4dc0]
xor esi, dword [ebx + 0x10]
xor esi, dword [edx*4 + 0x4b55c0]
xor esi, dword [eax*4 + 0x4b51c0]
mov eax, esi
mov ecx, esi
movzx edx, ah
movzx ecx, cl
shr eax, 0x10
mov ecx, dword [ecx*4 + 0x4b59c0]
shr esi, 0x18
movzx eax, al
xor ecx, dword [esi*4 + 0x4b4dc0]
xor ecx, dword [ebx + 0x14]
xor ecx, dword [edx*4 + 0x4b55c0]
xor ecx, dword [eax*4 + 0x4b51c0]
mov eax, ecx
movzx esi, cl
shr eax, 0x10
movzx edx, ch
mov esi, dword [esi*4 + 0x4b59c0]
movzx eax, al
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4b4dc0]
add ebx, 0x20
xor esi, dword [ebx - 8]
xor esi, dword [edx*4 + 0x4b55c0]
xor esi, dword [eax*4 + 0x4b51c0]
mov eax, esi
mov edx, esi
movzx ecx, ah
movzx edx, dl
shr eax, 0x10
mov edx, dword [edx*4 + 0x4b59c0]
shr esi, 0x18
movzx eax, al
xor edx, dword [esi*4 + 0x4b4dc0]
xor edx, dword [ebx - 4]
xor edx, dword [ecx*4 + 0x4b55c0]
xor edx, dword [eax*4 + 0x4b51c0]
mov ecx, edx
mov eax, edx
shr ecx, 0x10
movzx esi, dl
shr eax, 0x18
movzx ecx, cl
mov eax, dword [eax*4 + 0x4b4dc0]
movzx edx, dh
xor eax, dword [esi*4 + 0x4b59c0]
xor eax, dword [edx*4 + 0x4b55c0]
xor eax, dword [ecx*4 + 0x4b51c0]
cmp ebx, edi
jne 0x46dc50
mov ecx, dword [esp]
and ebp, 0x1f
mov edx, dword [esp + 0x1c]
add ecx, 1
shl ecx, 5
add edx, ecx
cmp ebp, 3
jbe 0x46de56
lea edi, [ebp - 4]
mov ebx, edx
mov dword [esp], edi
shr dword [esp], 2
mov edi, dword [esp]
mov dword [esp + 0x1c], edx
lea edi, [edx + edi*4 + 4]
xor eax, dword [ebx]
add ebx, 4
mov ecx, eax
mov edx, eax
shr ecx, 0x10
movzx esi, dl
shr eax, 0x18
movzx ecx, cl
mov eax, dword [eax*4 + 0x4b4dc0]
movzx edx, dh
xor eax, dword [esi*4 + 0x4b59c0]
xor eax, dword [edx*4 + 0x4b55c0]
xor eax, dword [ecx*4 + 0x4b51c0]
cmp ebx, edi
jne 0x46de10
mov edx, dword [esp + 0x1c]
and ebp, 3
mov edi, dword [esp]
lea edx, [edx + edi*4 + 4]
test ebp, ebp
je 0x46de79
lea ebx, [edx + ebp]
lea esi, [esi]
add edx, 1
mov ecx, eax
xor cl, byte [edx - 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4b4dc0]
cmp edx, ebx
jne 0x46de60
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