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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
mov esi, 1
mov dword [esp + 0x1c], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1005b121
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10059c80
mov edi, dword [ebx + 4]
lea eax, [esi - 1]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x1005b0f7
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
jb 0x1005afd0
mov edx, dword [ebx]
mov dword [esp + 0x18], edx
xor esi, esi
mov ebp, 0x811c9dc5
cmp dword [ebx + 0x10], esi
je 0x1005aff6
mov ecx, dword [esp + 0x18]
movzx edx, byte [esi + ecx]
inc esi
xor edx, ebp
imul ebp, edx, 0x1000193
cmp esi, dword [ebx + 0x10]
jb 0x1005afe0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and esi, ebp
lea ebp, [edx + esi*8]
mov dword [esp + 0x24], ebp
cmp dword [ebp], ecx
jne 0x1005b019
mov dword [ebp], edi
mov dword [ebp + 4], edi
jmp 0x1005b0ed
mov esi, dword [ebp + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov dword [esp + 0x18], edx
jb 0x1005b02f
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x14], 0x10
mov dword [esp + 0x1c], ebx
jb 0x1005b03f
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [edx + 0x10]
jne 0x1005b084
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x2c]
jne 0x1005b084
mov ebx, dword [esi]
cmp ebx, edi
je 0x1005b07f
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov dword [ebp + 4], edi
jmp 0x1005b0e9
cmp dword [ebp], esi
je 0x1005b0ce
nop dword [eax]
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea ebp, [esi + 8]
jb 0x1005b09f
mov ebp, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x1005b0a9
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, dword [esi + 0x18]
jne 0x1005b0c1
push edx
push ebp
push ecx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x1005b101
mov ebp, dword [esp + 0x24]
cmp dword [ebp], esi
jne 0x1005b090
mov eax, dword [esp + 0x2c]
mov ebx, dword [edi + 4]
mov dword [ebx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov dword [esi + 4], edx
mov dword [eax + 4], ebx
mov dword [edi + 4], ecx
mov dword [ebp], edi
mov ecx, dword [esp + 0x14]
mov edi, eax
cmp eax, ecx
jne 0x1005afb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x1005b0e9
push str.invalid_hash_bucket_count
call fcn.10079a6b
int3