Function at 0x40e290
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 0x40e50b
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.0040e1a0
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 0x40e4e6
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 0x40e30e
mov ebx, dword [ecx + 8]
xor esi, esi
mov edi, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x40e334
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 0x40e320
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 0x40e354
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40e4db
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0x10
lea edi, [eax + 8]
mov esi, dword [edi + 0x10]
jb 0x40e365
mov edi, dword [edi]
cmp dword [ebp - 0x10], 0x10
lea ebx, [ecx + 8]
mov dword [ebp - 0xc], ebx
jb 0x40e377
mov ebx, dword [ecx + 8]
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], esi
jne 0x40e417
mov esi, dword [ebp + 8]
sub esi, 4
mov dword [ebp - 4], esi
jb 0x40e3aa
nop dword [eax + eax]
mov esi, dword [ebx]
cmp esi, dword [edi]
mov esi, dword [ebp - 4]
jne 0x40e3af
add ebx, 4
add edi, 4
sub esi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
jae 0x40e390
cmp esi, 0xfffffffc
je 0x40e3e8
mov bl, byte [ebx]
cmp bl, byte [edi]
jne 0x40e3e1
cmp esi, 0xfffffffd
je 0x40e3e8
mov esi, dword [ebp - 0xc]
mov bl, byte [esi + 1]
cmp bl, byte [edi + 1]
jne 0x40e3e1
cmp dword [ebp - 4], 0xfffffffe
je 0x40e3e8
mov bl, byte [esi + 2]
cmp bl, byte [edi + 2]
jne 0x40e3e1
cmp dword [ebp - 4], 0xffffffff
je 0x40e3e8
mov bl, byte [esi + 3]
cmp bl, byte [edi + 3]
je 0x40e3e8
sbb esi, esi
or esi, 1
jmp 0x40e3ea
xor esi, esi
test esi, esi
jne 0x40e417
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40e40c
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 0x40e4db
mov esi, dword [ebp - 8]
cmp dword [esi], eax
je 0x40e4be
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0x10
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
jb 0x40e433
mov esi, dword [esi]
cmp dword [ebp - 0x10], 0x10
lea ebx, [ecx + 8]
mov dword [ebp - 0xc], ebx
jb 0x40e445
mov ebx, dword [ecx + 8]
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], edi
jne 0x40e4b3
mov edi, dword [ebp + 8]
sub edi, 4
mov dword [ebp - 4], edi
jb 0x40e46f
mov edi, dword [ebx]
cmp edi, dword [esi]
mov edi, dword [ebp - 4]
jne 0x40e474
add ebx, 4
add esi, 4
sub edi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
jae 0x40e455
cmp edi, 0xfffffffc
je 0x40e4ad
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40e4a6
cmp edi, 0xfffffffd
je 0x40e4ad
mov edi, dword [ebp - 0xc]
mov bl, byte [edi + 1]
cmp bl, byte [esi + 1]
jne 0x40e4a6
cmp dword [ebp - 4], 0xfffffffe
je 0x40e4ad
mov bl, byte [edi + 2]
cmp bl, byte [esi + 2]
jne 0x40e4a6
cmp dword [ebp - 4], 0xffffffff
je 0x40e4ad
mov bl, byte [edi + 3]
cmp bl, byte [esi + 3]
je 0x40e4ad
sbb esi, esi
or esi, 1
jmp 0x40e4af
xor esi, esi
test esi, esi
je 0x40e4ef
mov ebx, dword [ebp - 8]
cmp dword [ebx], eax
jne 0x40e422
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 0x40e2f2
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 0x40e4db
push str.invalid_hash_bucket_count
call fcn.004131ab
int3