Function at 0x508130
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x20
bsr ecx, eax
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebx + 8]
push edi
cmp ecx, eax
ja 0x508357
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x74d094]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x74d09c
lea eax, [esi + esi]
push eax
call fcn.004299f0
lea eax, [esi - 1]
mov dword [0x74d0ac], esi
mov esi, dword [0x74d094]
mov dword [0x74d0a8], eax
mov esi, dword [esi]
mov edi, esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 4]
je 0x508324
nop
mov edx, dword [esi + 0x18]
lea ecx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp edx, 0xf
jbe 0x5081d1
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp - 0xc], edx
jbe 0x508212
mov edi, dword [ebp - 0x10]
mov eax, ecx
mov esi, dword [ebp - 0xc]
movzx ecx, byte [edi + edx]
inc edx
xor ecx, eax
imul eax, ecx, 0x1000193
cmp edx, esi
jb 0x5081e5
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x18]
lea edx, [esi + 8]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, eax
mov dword [ebp - 8], eax
jmp 0x508215
lea edx, [esi + 8]
and ecx, dword [0x74d0a8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [0x74d09c]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
cmp dword [ecx], eax
jne 0x508243
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x508317
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 8], eax
add eax, 8
mov dword [ebp - 0x1c], ecx
cmp dword [eax + 0x14], 0xf
jbe 0x50825a
mov eax, dword [eax]
cmp dword [edx + 0x14], 0xf
mov ecx, edx
jbe 0x508264
mov ecx, dword [edx]
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
push eax
call fcn.004108e0
add esp, 8
test al, al
mov eax, dword [ebp - 8]
je 0x5082ac
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x5082a4
mov edx, dword [esi + 4]
mov dword [ebp - 0x14], edx
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [eax + 4]
mov dword [eax], esi
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], esi
jmp 0x508314
cmp dword [ebp - 0x10], eax
je 0x5082f1
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
add eax, 8
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x5082c5
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0xf
lea ecx, [esi + 8]
mov dword [ebp - 0x1c], ecx
jbe 0x5082d5
mov ecx, dword [ecx]
jmp 0x5082d8
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0xc]
push eax
call fcn.004108e0
add esp, 8
test al, al
mov eax, dword [ebp - 8]
jne 0x50832f
cmp dword [ebp - 0x10], eax
jne 0x5082b1
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ecx], edi
mov edx, dword [edi + 4]
mov dword [edx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], ecx
mov dword [eax], esi
mov eax, dword [ebp - 4]
mov esi, edi
mov dword [ebp - 0x18], esi
cmp edi, eax
jne 0x5081b0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [eax + 4]
mov dword [eax], esi
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x508314
push str.invalid_hash_bucket_count
call fcn.005acb94
int3