Function at 0x10164cb0
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
push 0xffffffffffffffff
push 0x101bdcdd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x10210050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov esi, 1
bsr ecx, eax
mov eax, esi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
ja 0x10164ea3
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x102b1d74]
push eax
mov dword [ebp - 0x1c], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x102b1d7c
lea eax, [esi + esi]
push eax
call fcn.10040460
lea eax, [esi - 1]
mov dword [0x102b1d8c], esi
mov dword [0x102b1d88], eax
mov dword [ebp - 0x24], 0x102b1d70
mov dword [ebp - 4], 0
mov edi, dword [0x102b1d74]
mov eax, dword [ebp - 0x1c]
mov edi, dword [edi]
mov ecx, edi
cmp edi, eax
je 0x10164e5a
nop dword [eax]
mov ecx, dword [ecx]
xor edx, edx
mov esi, 0x811c9dc5
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0xc], edx
jbe 0x10164d94
mov ecx, dword [edi + 8]
mov eax, esi
movzx esi, byte [ecx + edx]
inc edx
xor esi, eax
imul eax, esi, 0x1000193
cmp edx, dword [edi + 0xc]
jb 0x10164d76
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
and esi, dword [0x102b1d88]
mov edx, dword [0x102b1d7c]
lea edx, [edx + esi*8]
mov dword [ebp - 0x14], edx
cmp dword [edx], eax
jne 0x10164db4
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x10164e50
mov esi, dword [edx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.1004df10
add esp, 8
test al, al
je 0x10164dfe
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
cmp eax, edi
je 0x10164df6
mov edx, dword [edi + 4]
mov dword [ebp - 0x20], edx
mov dword [edx], ecx
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], edi
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edi
jmp 0x10164e4d
mov eax, dword [ebp - 0x14]
cmp dword [eax], esi
je 0x10164e27
mov esi, dword [esi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.1004df10
add esp, 8
test al, al
jne 0x10164e7e
mov eax, dword [ebp - 0x14]
cmp dword [eax], esi
jne 0x10164e05
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
mov edx, dword [ecx + 4]
mov dword [edx], esi
mov eax, dword [esi + 4]
mov dword [eax], edi
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 0x1c]
mov edi, ecx
cmp ecx, eax
jne 0x10164d60
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edi + 4]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov dword [edx], ecx
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], edi
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov dword [edi + 4], edx
jmp 0x10164e4d
push str.invalid_hash_bucket_count
call fcn.1016e2ab
int3