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

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, 0x1fffffff
push ebp
mov ebp, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 0x18], ebp
mov eax, esi
shl eax, cl
cmp edx, eax
jbe 0x408d4f
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [edx - 1]
or eax, 1
bsr ecx, eax
push ebx
mov ebx, dword [ebp + 4]
push ebx
mov dword [esp + 0x18], ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebp + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00405d40
lea eax, [esi - 1]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 4]
mov edx, dword [edx]
cmp edx, ebx
je 0x408f2b
mov ecx, edx
push edi
nop dword [eax + eax]
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
cmp eax, 7
jbe 0x408dae
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
lea eax, [ebp*2]
xor esi, esi
mov dword [esp + 0x1c], eax
mov edi, 0x811c9dc5
test eax, eax
je 0x408dee
mov ebx, dword [esp + 0x10]
mov ebp, eax
nop word [eax + eax]
movzx eax, byte ds:[ebx + esi]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, ebp
jb 0x408dd0
mov eax, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and esi, edi
lea eax, [eax + esi*8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp dword [eax], esi
jne 0x408e13
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x408f1c
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea ebx, [eax + 8]
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x1c], esi
jbe 0x408e28
mov ebx, dword [ebx]
cmp dword [esp + 0x14], 7
lea edi, [ecx + 8]
mov esi, edi
jbe 0x408e36
mov esi, dword [edi]
cmp ebp, dword [esp + 0x1c]
jne 0x408e95
nop dword [eax]
test ebp, ebp
je 0x408e68
sub esi, ebx
mov dword [esp + 0x1c], esi
nop word [eax + eax]
movzx edi, word [ebx + esi]
movzx esi, word [ebx]
cmp di, si
jne 0x408e92
mov esi, dword [esp + 0x1c]
add ebx, 2
sub ebp, 1
jne 0x408e50
mov ebx, dword [eax]
cmp ebx, ecx
je 0x408e86
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 [esp + 0x10]
mov dword [eax + 4], ecx
jmp 0x408f1c
lea edi, [ecx + 8]
mov esi, dword [esp + 0x10]
cmp dword [esi], eax
je 0x408efe
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea esi, [eax + 8]
mov ebp, dword [esi + 0x10]
jbe 0x408eb5
mov esi, dword [esi]
cmp dword [edi + 0x14], 7
mov ebx, edi
jbe 0x408ebf
mov ebx, dword [edi]
nop
cmp dword [edi + 0x10], ebp
jne 0x408ef6
mov edi, dword [esp + 0x1c]
mov ebp, edi
test edi, edi
je 0x408f34
sub ebx, esi
mov dword [esp + 0x14], ebx
movzx ebx, word ds:[ebx + esi]
movzx edi, word [esi]
cmp bx, di
jne 0x408ef3
add esi, 2
sub ebp, 1
je 0x408f34
mov ebx, dword [esp + 0x14]
jmp 0x408ed5
lea edi, [ecx + 8]
mov ebx, dword [esp + 0x10]
cmp dword [ebx], eax
jne 0x408ea4
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 [esp + 0x10]
mov dword [edx + 4], ebx
mov dword [ecx + 4], esi
mov dword [eax], ecx
mov ecx, edx
cmp edx, dword [esp + 0x18]
jne 0x408d90
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
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 0x408f1c