Function at 0x40e530
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 0x40e7e9
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.0040e440
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 0x40e7c4
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 0x40e5b3
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 0x40e5ea
mov edx, dword [ebp + 8]
movzx eax, byte [esi + edx]
inc esi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp esi, edi
jb 0x40e5c7
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 0x40e60c
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40e7b9
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 0x40e626
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 0x40e64d
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 0x40e6f1
sub edi, 4
jb 0x40e67a
nop dword [eax + eax]
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x40e67f
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 0x40e660
cmp edi, 0xfffffffc
je 0x40e6c2
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40e6bb
cmp edi, 0xfffffffd
je 0x40e6c2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
jne 0x40e6bb
cmp edi, 0xfffffffe
je 0x40e6c2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
jne 0x40e6bb
cmp edi, 0xffffffff
je 0x40e6c2
mov ebx, dword [ebp + 8]
mov bl, byte [ebx + 3]
cmp bl, byte [esi + 3]
je 0x40e6c2
sbb esi, esi
or esi, 1
jmp 0x40e6c4
xor esi, esi
test esi, esi
jne 0x40e6f1
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40e6e6
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 0x40e7b9
mov esi, dword [ebp - 0xc]
cmp dword [esi], eax
je 0x40e79c
nop dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
jbe 0x40e711
mov esi, dword [esi]
cmp dword [ebp - 8], 0xf
lea ebx, [ecx + 8]
mov dword [ebp - 4], ebx
jbe 0x40e723
mov ebx, dword [ecx + 8]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x10], edi
jne 0x40e791
mov edi, dword [ebp - 0x10]
sub edi, 4
mov dword [ebp + 8], edi
jb 0x40e74d
mov edi, dword [ebx]
cmp edi, dword [esi]
mov edi, dword [ebp + 8]
jne 0x40e752
add ebx, 4
add esi, 4
sub edi, 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
jae 0x40e733
cmp edi, 0xfffffffc
je 0x40e78b
mov bl, byte [ebx]
cmp bl, byte [esi]
jne 0x40e784
cmp edi, 0xfffffffd
je 0x40e78b
mov edi, dword [ebp - 4]
mov bl, byte [edi + 1]
cmp bl, byte [esi + 1]
jne 0x40e784
cmp dword [ebp + 8], 0xfffffffe
je 0x40e78b
mov bl, byte [edi + 2]
cmp bl, byte [esi + 2]
jne 0x40e784
cmp dword [ebp + 8], 0xffffffff
je 0x40e78b
mov bl, byte [edi + 3]
cmp bl, byte [esi + 3]
je 0x40e78b
sbb esi, esi
or esi, 1
jmp 0x40e78d
xor esi, esi
test esi, esi
je 0x40e7cd
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], eax
jne 0x40e700
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 0x40e592
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 0x40e7b9
push str.invalid_hash_bucket_count
call fcn.00413abe
int3