Function at 0x1012b1b0
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 0x1012b3e3
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x1038a7c4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x1038a7cc
lea eax, [esi + esi]
push eax
call fcn.100fa090
mov edi, dword [0x1038a7c4]
lea eax, [esi - 1]
mov dword [0x1038a7d8], eax
mov dword [0x1038a7dc], esi
mov edi, dword [edi]
mov eax, edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 8]
je 0x1012b3d8
nop
mov ecx, dword [edi + 0x1c]
lea edx, [edi + 8]
mov eax, dword [eax]
cmp ecx, 8
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edx
jb 0x1012b254
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
add esi, esi
mov edx, 0x811c9dc5
mov dword [ebp - 0x14], esi
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x1012b290
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov edi, dword [ebp - 0x14]
nop dword [eax]
movzx edx, byte [esi + eax]
inc esi
xor edx, ecx
imul ecx, edx, 0x1000193
cmp esi, edi
jb 0x1012b270
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
and edx, dword [0x1038a7d8]
mov dword [ebp - 0xc], edx
mov esi, dword [ebp - 0xc]
mov edx, dword [0x1038a7cc]
lea edx, [edx + esi*8]
mov dword [ebp - 0xc], edx
cmp dword [edx], ecx
jne 0x1012b2b6
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x1012b3cb
mov esi, dword [edx + 4]
cmp dword [esi + 0x1c], 8
lea ecx, [esi + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
jb 0x1012b2d0
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x1c], 8
lea ecx, [edi + 8]
mov dword [ebp - 0x10], ecx
jb 0x1012b2e1
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x1c]
jne 0x1012b334
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x14]
call fcn.10058e70
add esp, 4
test eax, eax
mov eax, dword [ebp - 4]
jne 0x1012b331
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
cmp ecx, edi
je 0x1012b326
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], edi
jmp 0x1012b3c8
lea ecx, [edi + 8]
mov edx, dword [ebp - 0xc]
cmp dword [edx], esi
je 0x1012b3a5
nop dword [eax + eax]
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x1012b351
mov edx, dword [edx]
cmp dword [ebp - 0x20], 8
jb 0x1012b35a
mov ecx, dword [edi + 8]
cmp dword [ebp - 0x18], eax
jne 0x1012b36e
push dword [ebp - 0x18]
call fcn.10058e70
add esp, 4
test eax, eax
je 0x1012b37a
mov eax, dword [ebp - 0xc]
cmp dword [eax], esi
je 0x1012b3a2
lea ecx, [edi + 8]
jmp 0x1012b340
mov ecx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x1012b3c8
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
mov dword [ecx], 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 edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], edi
mov ecx, dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp eax, ecx
jne 0x1012b230
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push str.invalid_hash_bucket_count
call fcn.1024e975
int3