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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x14], edi
shl eax, cl
cmp edx, eax
ja 0x40ee0d
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 0x10], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0040aea0
mov edx, dword [edi + 4]
lea eax, [esi - 1]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov edx, dword [edx]
cmp edx, ebx
je 0x40ede8
mov ecx, edx
mov esi, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], esi
cmp esi, 8
jb 0x40eca8
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
xor esi, esi
mov dword [ebp + 8], eax
mov edi, 0x811c9dc5
add eax, eax
mov dword [ebp - 8], eax
je 0x40ecd4
mov edx, eax
nop
movzx eax, byte [esi + ebx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, edx
jb 0x40ecc0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and esi, edi
lea eax, [eax + esi*8]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [eax], esi
jne 0x40ecf6
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40eddd
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
jb 0x40ed05
mov edi, dword [eax + 8]
cmp dword [ebp - 0xc], 8
lea esi, [ecx + 8]
jb 0x40ed11
mov esi, dword [ecx + 8]
mov edx, dword [ebp + 8]
cmp edx, dword [eax + 0x18]
mov edx, dword [ebp - 4]
jne 0x40ed6a
mov ebx, dword [ebp + 8]
test ebx, ebx
jbe 0x40ed44
sub esi, edi
mov dword [ebp - 0x18], esi
nop dword [eax + eax]
mov si, word [esi + edi]
cmp si, word [edi]
jne 0x40ed6a
mov esi, dword [ebp - 0x18]
add edi, 2
sub ebx, 1
jne 0x40ed30
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40ed62
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ebx + 4], esi
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x40eddd
mov esi, dword [ebp - 8]
cmp dword [esi], eax
je 0x40edc0
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea esi, [eax + 8]
jb 0x40ed80
mov esi, dword [eax + 8]
cmp dword [ebp - 0xc], 8
lea edi, [ecx + 8]
jb 0x40ed8c
mov edi, dword [ecx + 8]
mov edx, dword [ebp + 8]
cmp edx, dword [eax + 0x18]
mov edx, dword [ebp - 4]
jne 0x40edb9
mov ebx, dword [ebp + 8]
test ebx, ebx
jbe 0x40edf1
sub edi, esi
mov dword [ebp - 0x18], edi
mov di, word [edi + esi]
cmp di, word [esi]
jne 0x40edb9
add esi, 2
sub ebx, 1
je 0x40edf1
mov edi, dword [ebp - 0x18]
jmp 0x40eda3
mov ebx, dword [ebp - 8]
cmp dword [ebx], eax
jne 0x40ed71
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], esi
mov dword [eax], ecx
mov ecx, edx
cmp edx, dword [ebp - 0x10]
jne 0x40ec92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ecx + 4]
mov ebx, dword [eax]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ebx + 4], esi
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x40eddd
push str.invalid_hash_bucket_count
call fcn.00410628
int3