Function at 0x1005b000
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 0x1005b1d1
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.10059d30
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 0x1005b1a7
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
jb 0x1005b080
mov edx, dword [ebx]
mov dword [esp + 0x18], edx
xor esi, esi
mov ebp, 0x811c9dc5
cmp dword [ebx + 0x10], esi
je 0x1005b0a6
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 0x1005b090
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 0x1005b0c9
mov dword [ebp], edi
mov dword [ebp + 4], edi
jmp 0x1005b19d
mov esi, dword [ebp + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov dword [esp + 0x18], edx
jb 0x1005b0df
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x14], 0x10
mov dword [esp + 0x1c], ebx
jb 0x1005b0ef
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [edx + 0x10]
jne 0x1005b134
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 0x1005b134
mov ebx, dword [esi]
cmp ebx, edi
je 0x1005b12f
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 0x1005b199
cmp dword [ebp], esi
je 0x1005b17e
nop dword [eax]
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea ebp, [esi + 8]
jb 0x1005b14f
mov ebp, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x1005b159
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, dword [esi + 0x18]
jne 0x1005b171
push edx
push ebp
push ecx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x1005b1b1
mov ebp, dword [esp + 0x24]
cmp dword [ebp], esi
jne 0x1005b140
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 0x1005b067
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 0x1005b199
push str.invalid_hash_bucket_count
call fcn.10079b2b
int3