Function at 0x45f360
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
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 0x45f586
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 0xc], 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.0040dcb0
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 0x45f561
mov ecx, edx
mov ebx, dword [ecx + 0x1c]
lea eax, [ecx + 8]
mov edx, dword [edx]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edi
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
cmp ebx, 7
jbe 0x45f3e3
mov esi, dword [eax]
mov dword [ebp + 8], esi
lea eax, [edi + edi]
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, 0x811c9dc5
test eax, eax
je 0x45f420
mov edx, dword [ebp + 8]
mov edi, eax
nop dword [eax]
movzx eax, byte [edx + esi]
inc esi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp esi, edi
jb 0x45f400
mov edi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and esi, ebx
lea eax, [eax + esi*8]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 8], eax
cmp dword [eax], esi
jne 0x45f442
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x45f556
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea ebx, [eax + 8]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x14], esi
jbe 0x45f456
mov ebx, dword [ebx]
cmp dword [ebp - 8], 7
lea esi, [ecx + 8]
jbe 0x45f462
mov esi, dword [ecx + 8]
cmp edi, dword [ebp - 0x14]
jne 0x45f4b6
test edi, edi
je 0x45f48d
sub esi, ebx
mov dword [ebp - 0x14], esi
movzx edi, word [ebx + esi]
movzx esi, word [ebx]
cmp di, si
jne 0x45f4b6
mov esi, dword [ebp - 4]
add ebx, 2
dec esi
mov dword [ebp - 4], esi
test esi, esi
mov esi, dword [ebp - 0x14]
jne 0x45f470
mov ebx, dword [eax]
cmp ebx, ecx
je 0x45f4ab
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 0x45f556
mov esi, dword [ebp + 8]
cmp dword [esi], eax
je 0x45f539
mov ebx, dword [ecx + 0x1c]
lea edi, [ecx + 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [edi + 0x10]
mov dword [ebp - 8], ebx
nop dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea esi, [eax + 8]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x10], ebx
jbe 0x45f4e4
mov esi, dword [esi]
cmp dword [ebp - 0x14], 7
mov ebx, edi
jbe 0x45f4ee
mov ebx, dword [edi]
mov edi, dword [ebp - 8]
cmp edi, dword [ebp - 0x10]
lea edi, [ecx + 8]
jne 0x45f532
mov edi, dword [ebp - 8]
mov dword [ebp - 4], edi
test edi, edi
je 0x45f56a
sub ebx, esi
mov dword [ebp - 0x10], ebx
nop dword [eax + eax]
movzx ebx, word [esi + ebx]
movzx edi, word [esi]
cmp bx, di
jne 0x45f52f
mov ebx, dword [ebp - 4]
add esi, 2
dec ebx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x45f56a
mov ebx, dword [ebp - 0x10]
jmp 0x45f510
lea edi, [ecx + 8]
mov ebx, dword [ebp + 8]
cmp dword [ebx], eax
jne 0x45f4d0
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 - 0xc]
jne 0x45f3c2
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 0x45f556
push str.invalid_hash_bucket_count
call fcn.005acb94
int3