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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
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 - 0x20], edi
shl eax, cl
cmp edx, eax
ja 0x40b8f9
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 0x1c], 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.0040b550
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 0x40b8d4
mov ecx, edx
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp + 8], ebx
mov dword [ebp - 8], eax
cmp eax, 0xf
jbe 0x40b6c3
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov ebx, 0x811c9dc5
test edi, edi
je 0x40b6fa
mov edx, dword [ebp + 8]
movzx eax, byte [edx + esi]
inc esi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp esi, edi
jb 0x40b6d7
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and esi, ebx
lea eax, [eax + esi*8]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [eax], esi
jne 0x40b71c
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40b8c9
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea ebx, [eax + 8]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], esi
jbe 0x40b736
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], 0xf
lea esi, [ecx + 8]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], esi
mov dword [ebp - 0x10], edi
jbe 0x40b75d
mov ebx, dword [ebp - 0x14]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], esi
cmp edi, dword [ebp - 0x24]
jne 0x40b801
sub edi, 4
jb 0x40b78a
nop dword [eax + eax]
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x40b78f
mov esi, dword [ebp + 8]
add ebx, 4
add esi, 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], esi
sub edi, 4
jae 0x40b770
cmp edi, 0xfffffffc
je 0x40b7d2
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40b7cb
cmp edi, 0xfffffffd
je 0x40b7d2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
jne 0x40b7cb
cmp edi, 0xfffffffe
je 0x40b7d2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
jne 0x40b7cb
cmp edi, 0xffffffff
je 0x40b7d2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 3]
cmp bl, byte [esi + 3]
je 0x40b7d2
sbb esi, esi
or esi, 1
jmp 0x40b7d4
xor esi, esi
test esi, esi
jne 0x40b801
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40b7f6
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 - 0xc]
mov dword [eax + 4], ecx
jmp 0x40b8c9
mov esi, dword [ebp - 0xc]
cmp dword [esi], eax
je 0x40b8ac
nop dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
jbe 0x40b821
mov esi, dword [esi]
cmp dword [ebp - 8], 0xf
lea ebx, [ecx + 8]
mov dword [ebp - 4], ebx
jbe 0x40b833
mov ebx, dword [ecx + 8]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x10], edi
jne 0x40b8a1
mov edi, dword [ebp - 0x10]
sub edi, 4
mov dword [ebp + 8], edi
jb 0x40b85d
mov edi, dword [ebx]
cmp edi, dword [esi]
mov edi, dword [ebp + 8]
jne 0x40b862
add ebx, 4
add esi, 4
sub edi, 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
jae 0x40b843
cmp edi, 0xfffffffc
je 0x40b89b
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40b894
cmp edi, 0xfffffffd
je 0x40b89b
mov edi, dword [ebp - 4]
mov bl, byte [edi + 1]
cmp bl, byte [esi + 1]
jne 0x40b894
cmp dword [ebp + 8], 0xfffffffe
je 0x40b89b
mov bl, byte [edi + 2]
cmp bl, byte [esi + 2]
jne 0x40b894
cmp dword [ebp + 8], 0xffffffff
je 0x40b89b
mov bl, byte [edi + 3]
cmp bl, byte [esi + 3]
je 0x40b89b
sbb esi, esi
or esi, 1
jmp 0x40b89d
xor esi, esi
test esi, esi
je 0x40b8dd
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], eax
jne 0x40b810
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 - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], esi
mov dword [eax], ecx
mov ecx, edx
cmp edx, dword [ebp - 0x1c]
jne 0x40b6a2
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 0x40b8c9
push str.invalid_hash_bucket_count
call fcn.00410eaa
int3