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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x20
bsr ecx, eax
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebx + 8]
push edi
cmp ecx, eax
ja 0x40e00e
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x4ca944]
push eax
mov dword [ebp - 0x14], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x4ca94c
lea eax, [esi + esi]
push eax
call fcn.0040b0b0
mov edx, dword [0x4ca944]
lea eax, [esi - 1]
mov dword [0x4ca958], eax
mov dword [0x4ca95c], esi
mov edx, dword [edx]
cmp edx, dword [ebp - 0x14]
je 0x40dfdb
mov ecx, edx
mov dword [ebp - 4], ecx
nop
mov eax, dword [ecx + 0x18]
lea esi, [ecx + 8]
mov edx, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
cmp eax, 8
jb 0x40de51
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov edi, 0x811c9dc5
xor esi, esi
add eax, eax
mov dword [ebp - 0x18], eax
je 0x40de7e
mov edx, dword [ebp - 0x10]
mov ecx, eax
movzx eax, byte [esi + edx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, ecx
jb 0x40de67
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
and edi, dword [0x4ca958]
mov eax, dword [0x4ca94c]
mov esi, dword [ebp - 0x14]
lea eax, [eax + edi*8]
mov dword [ebp - 0xc], eax
cmp dword [eax], esi
jne 0x40dea0
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40dfcd
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
jb 0x40deba
mov esi, dword [esi]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x1c], 8
lea edi, [ecx + 8]
jb 0x40dec6
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
jne 0x40df3b
mov ecx, dword [ebp - 8]
test ecx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
je 0x40df06
sub edi, esi
mov dword [ebp - 0x20], edi
movzx edi, word [esi + edi]
movzx esi, word [esi]
cmp di, si
jne 0x40df3b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
dec edi
add esi, 2
mov dword [ebp - 0x18], edi
test edi, edi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x20]
jne 0x40dee3
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x40df30
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], edi
mov dword [edi], edx
mov esi, dword [edx + 4]
mov edi, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [edi + 4], esi
mov edi, dword [ebp - 0x1c]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], ecx
jmp 0x40dfcd
mov esi, dword [ebp - 0xc]
cmp dword [esi], eax
je 0x40dfaa
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea esi, [eax + 8]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x20], edi
jb 0x40df56
mov esi, dword [esi]
cmp dword [ebp - 0x1c], 8
lea edi, [ecx + 8]
jb 0x40df62
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
jne 0x40dfa3
mov ecx, dword [ebp - 8]
test ecx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
je 0x40dfe6
sub edi, esi
mov dword [ebp - 0x10], edi
nop
movzx edi, word [esi + edi]
mov dword [ebp - 0x20], edi
movzx edi, word [esi]
cmp word [ebp - 0x20], di
jne 0x40dfa3
mov edi, dword [ebp - 0x18]
add esi, 2
dec edi
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40dfe6
mov edi, dword [ebp - 0x10]
jmp 0x40df80
mov esi, dword [ebp - 0xc]
cmp dword [esi], eax
jne 0x40df42
mov esi, dword [ecx + 4]
mov dword [ebp - 0x20], esi
mov dword [esi], 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 - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], esi
mov dword [eax], ecx
mov ecx, edx
mov dword [ebp - 4], edx
cmp edx, dword [ebp - 0x14]
jne 0x40de30
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edi, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov dword [edi], edx
mov esi, dword [edx + 4]
mov edi, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [edi + 4], esi
mov edi, dword [ebp - 0x1c]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x40dfcd
push str.invalid_hash_bucket_count
call fcn.00433ecc
int3