Function at 0x40bc10
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 - 0x18], edi
shl eax, cl
cmp edx, eax
ja 0x40be8b
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 0x14], 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.0040bb20
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov edx, dword [edi + 4]
mov edx, dword [edx]
cmp edx, ebx
je 0x40be66
mov ecx, edx
mov ebx, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
mov edx, dword [edx]
mov dword [ebp + 8], ebx
lea ebx, [ecx + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], esi
cmp esi, 0x10
jb 0x40bc8e
mov ebx, dword [ecx + 8]
xor esi, esi
mov edi, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x40bcb4
mov edx, dword [ebp + 8]
nop dword [eax]
movzx eax, byte [esi + ebx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, edx
jb 0x40bca0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
and edi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp dword [eax], esi
jne 0x40bcd4
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40be5b
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0x10
lea edi, [eax + 8]
mov esi, dword [edi + 0x10]
jb 0x40bce5
mov edi, dword [edi]
cmp dword [ebp - 0x10], 0x10
lea ebx, [ecx + 8]
mov dword [ebp - 0xc], ebx
jb 0x40bcf7
mov ebx, dword [ecx + 8]
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], esi
jne 0x40bd97
mov esi, dword [ebp + 8]
sub esi, 4
mov dword [ebp - 4], esi
jb 0x40bd2a
nop dword [eax + eax]
mov esi, dword [ebx]
cmp esi, dword [edi]
mov esi, dword [ebp - 4]
jne 0x40bd2f
add ebx, 4
add edi, 4
sub esi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
jae 0x40bd10
cmp esi, 0xfffffffc
je 0x40bd68
mov bl, byte [ebx]
cmp bl, byte [edi]
jne 0x40bd61
cmp esi, 0xfffffffd
je 0x40bd68
mov esi, dword [ebp - 0xc]
mov bl, byte [esi + 1]
cmp bl, byte [edi + 1]
jne 0x40bd61
cmp dword [ebp - 4], 0xfffffffe
je 0x40bd68
mov bl, byte [esi + 2]
cmp bl, byte [edi + 2]
jne 0x40bd61
cmp dword [ebp - 4], 0xffffffff
je 0x40bd68
mov bl, byte [esi + 3]
cmp bl, byte [edi + 3]
je 0x40bd68
sbb esi, esi
or esi, 1
jmp 0x40bd6a
xor esi, esi
test esi, esi
jne 0x40bd97
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40bd8c
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 0x40be5b
mov esi, dword [ebp - 8]
cmp dword [esi], eax
je 0x40be3e
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0x10
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
jb 0x40bdb3
mov esi, dword [esi]
cmp dword [ebp - 0x10], 0x10
lea ebx, [ecx + 8]
mov dword [ebp - 0xc], ebx
jb 0x40bdc5
mov ebx, dword [ecx + 8]
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], edi
jne 0x40be33
mov edi, dword [ebp + 8]
sub edi, 4
mov dword [ebp - 4], edi
jb 0x40bdef
mov edi, dword [ebx]
cmp edi, dword [esi]
mov edi, dword [ebp - 4]
jne 0x40bdf4
add ebx, 4
add esi, 4
sub edi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
jae 0x40bdd5
cmp edi, 0xfffffffc
je 0x40be2d
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40be26
cmp edi, 0xfffffffd
je 0x40be2d
mov edi, dword [ebp - 0xc]
mov bl, byte [edi + 1]
cmp bl, byte [esi + 1]
jne 0x40be26
cmp dword [ebp - 4], 0xfffffffe
je 0x40be2d
mov bl, byte [edi + 2]
cmp bl, byte [esi + 2]
jne 0x40be26
cmp dword [ebp - 4], 0xffffffff
je 0x40be2d
mov bl, byte [edi + 3]
cmp bl, byte [esi + 3]
je 0x40be2d
sbb esi, esi
or esi, 1
jmp 0x40be2f
xor esi, esi
test esi, esi
je 0x40be6f
mov ebx, dword [ebp - 8]
cmp dword [ebx], eax
jne 0x40bda2
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 - 0x14]
jne 0x40bc72
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 0x40be5b
push str.invalid_hash_bucket_count
call fcn.00412c3a
int3