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

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
mov esi, 1
mov dword [esp + 0x18], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1005b441
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x14], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10059f30
mov edi, dword [ebx + 4]
lea eax, [esi - 1]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x1005b417
cmp dword [edi + 0x1c], 0xf
lea ebx, [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
jbe 0x1005b2f0
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
xor esi, esi
mov ebp, 0x811c9dc5
cmp dword [ebx + 0x10], esi
jbe 0x1005b316
mov ecx, dword [esp + 0x14]
movzx edx, byte [esi + ecx]
inc esi
xor edx, ebp
imul ebp, edx, 0x1000193
cmp esi, dword [ebx + 0x10]
jb 0x1005b300
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and esi, ebp
lea ebp, [edx + esi*8]
mov dword [esp + 0x18], ebp
cmp dword [ebp], ecx
jne 0x1005b339
mov dword [ebp], edi
mov dword [ebp + 4], edi
jmp 0x1005b40d
mov esi, dword [ebp + 4]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov dword [esp + 0x14], ecx
jbe 0x1005b34f
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
cmp dword [ebx + 0x14], 0xf
mov edx, ebx
jbe 0x1005b359
mov edx, dword [ebx]
mov ebp, dword [ebx + 0x10]
cmp ebp, dword [ecx + 0x10]
mov ebp, dword [esp + 0x18]
jne 0x1005b3a2
mov eax, dword [ebx + 0x10]
push eax
push dword [esp + 0x18]
push edx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x1005b3a2
mov ebx, dword [esi]
cmp ebx, edi
je 0x1005b39d
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 0x1005b409
cmp dword [ebp], esi
je 0x1005b3ee
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0xf
lea ebp, [esi + 8]
jbe 0x1005b3bf
mov ebp, dword [esi + 8]
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x1005b3c9
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, dword [esi + 0x18]
jne 0x1005b3e1
push edx
push ebp
push ecx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x1005b421
mov ebp, dword [esp + 0x18]
cmp dword [ebp], esi
jne 0x1005b3b0
mov eax, dword [esp + 0x24]
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 + 0x10]
mov edi, eax
cmp eax, ecx
jne 0x1005b2d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x24]
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 0x1005b409
push str.invalid_hash_bucket_count
call fcn.10079a72
int3