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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0xc], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x4055c9
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00404e30
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x4055a4
mov edi, dword [edi]
xor edx, edx
mov ebx, 0x811c9dc5
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], edx
jbe 0x405498
mov eax, dword [esi + 0x10]
nop dword [eax]
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, dword [esi + 0x14]
jb 0x405480
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [esi + 0xc], edx
jbe 0x4054bc
mov eax, dword [esi + 8]
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, dword [esi + 0xc]
jb 0x4054a7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add edx, edx
xor edx, ebx
and edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x4054e0
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x40559a
mov ebx, dword [ecx + 4]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00404f30
add esp, 0x10
test al, al
je 0x405539
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00404f30
add esp, 0x10
test al, al
je 0x405539
mov ebx, dword [ebx]
cmp ebx, esi
je 0x405531
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x405597
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x40557a
mov ebx, dword [ebx + 4]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00404f30
add esp, 0x10
test al, al
je 0x405573
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00404f30
add esp, 0x10
test al, al
jne 0x4055ad
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x405540
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x405465
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x405597
push str.invalid_hash_bucket_count
call fcn.00407545
int3