Function at 0x407640
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f97d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4078c9
lea eax, [ecx - 1]
mov esi, dword [0x4e6464]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4e646c
lea eax, [edi + edi]
push eax
call fcn.004071a0
lea eax, [edi - 1]
mov dword [0x4e647c], edi
mov dword [0x4e6478], eax
mov dword [ebp - 0x2c], 0x4e6460
mov dword [ebp - 4], 0
mov ecx, dword [0x4e6464]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x407885
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], eax
cmp eax, 8
jb 0x4076f8
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea eax, [edi + edi]
mov ebx, 0x811c9dc5
xor edi, edi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x407727
mov esi, dword [ebp - 0x14]
mov edx, eax
nop
movzx eax, byte [edi + esi]
inc edi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edi, edx
jb 0x407710
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
and ebx, dword [0x4e6478]
mov eax, dword [0x4e646c]
lea eax, [eax + ebx*8]
mov ebx, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
jne 0x40774b
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40787b
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jb 0x407765
mov edi, dword [edi]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x1c], 8
lea ebx, [ecx + 8]
jb 0x407771
mov ebx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
jne 0x4077e2
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 8]
je 0x4077b3
sub ebx, edi
mov dword [ebp - 0x28], ebx
nop
movzx ebx, word [edi + ebx]
movzx edi, word [edi]
cmp bx, di
jne 0x4077e2
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
dec ebx
add edi, 2
mov dword [ebp - 0x18], ebx
test ebx, ebx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp - 0x28]
jne 0x407790
mov eax, dword [eax]
cmp eax, ecx
je 0x4077d7
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x28], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], ecx
jmp 0x40787b
cmp dword [ebp - 0x20], eax
je 0x407858
nop word [eax + eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x28], ebx
jb 0x407804
mov edi, dword [edi]
cmp dword [ebp - 0x1c], 8
lea ebx, [ecx + 8]
jb 0x407810
mov ebx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
jne 0x407853
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 8]
je 0x4078a7
sub ebx, edi
mov dword [ebp - 0x14], ebx
nop dword [eax]
movzx ebx, word [edi + ebx]
mov dword [ebp - 0x28], ebx
movzx ebx, word [edi]
cmp word [ebp - 0x28], bx
jne 0x407853
mov ebx, dword [ebp - 0x18]
add edi, 2
dec ebx
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4078a7
mov ebx, dword [ebp - 0x14]
jmp 0x407830
cmp dword [ebp - 0x20], eax
jne 0x4077f0
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x28], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x4076d7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x40787b
push str.invalid_hash_bucket_count
call fcn.0047d076
int3