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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
push edi
mov edi, 1
mov dword [esp + 0x20], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
jbe 0x4f7511
push str.invalid_hash_bucket_count
call dword [0x5a4440]
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, 1
mov dword [esp + 0x14], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004059f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4f7727
nop dword [eax + eax]
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
cmp eax, 7
jbe 0x4f7572
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
lea eax, [edi + edi]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ebp, 0x811c9dc5
test eax, eax
je 0x4f75b8
mov esi, dword [esp + 0x2c]
mov edi, eax
nop word [eax + eax]
movzx eax, byte [ebx + esi]
inc ebx
xor eax, ebp
imul ebp, eax, 0x1000193
cmp ebx, edi
jb 0x4f7590
mov edi, dword [ecx + 0x18]
lea ebx, [ecx + 8]
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jmp 0x4f75bb
lea ebx, [ecx + 8]
mov eax, dword [esp + 0x20]
and ebp, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + ebp*8]
mov dword [esp + 0x2c], eax
cmp dword [eax], esi
jne 0x4f75da
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4f771d
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea ebp, [eax + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
jbe 0x4f75f4
mov ebp, dword [ebp]
cmp dword [esp + 0x18], 7
jbe 0x4f75fe
mov ebx, dword [ecx + 8]
cmp edi, dword [esp + 0x1c]
jne 0x4f765b
test edi, edi
je 0x4f7631
sub ebx, ebp
mov dword [esp + 0x1c], ebx
nop
movzx ebx, word [ebx + ebp]
movzx edi, word [ebp]
cmp bx, di
jne 0x4f765b
mov ebx, dword [esp + 0x10]
add ebp, 2
dec ebx
mov dword [esp + 0x10], ebx
test ebx, ebx
mov ebx, dword [esp + 0x1c]
jne 0x4f7610
mov ebp, dword [eax]
cmp ebp, ecx
je 0x4f764f
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ecx
mov dword [ebp + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], ecx
jmp 0x4f771d
mov edi, dword [esp + 0x2c]
cmp dword [edi], eax
je 0x4f76fe
mov ebp, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], ebp
nop dword [eax + eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea edi, [eax + 8]
mov ebp, dword [edi + 0x10]
jbe 0x4f7691
mov edi, dword [edi]
cmp dword [esp + 0x1c], 7
jbe 0x4f769b
mov ebx, dword [ecx + 8]
cmp dword [esp + 0x18], ebp
jne 0x4f76d5
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4f76e2
sub ebx, edi
mov dword [esp + 0x24], ebx
movzx ebp, word [edi + ebx]
movzx ebx, word [edi]
cmp bp, bx
jne 0x4f76d5
mov ebx, dword [esp + 0x10]
add edi, 2
dec ebx
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4f76e2
mov ebx, dword [esp + 0x24]
jmp 0x4f76b3
mov ebx, dword [esp + 0x2c]
cmp dword [ebx], eax
je 0x4f76fe
lea ebx, [ecx + 8]
jmp 0x4f7680
mov ebx, dword [ecx + 4]
mov ebp, dword [eax]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ecx
mov dword [ebp + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4f771d
mov ebp, dword [ecx + 4]
mov dword [ebp], 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 [esp + 0x2c]
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x4f7550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4