Function at 0x40cbb0
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
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
ja 0x40ce4d
lea eax, [ecx - 1]
mov esi, dword [0x4ca964]
or eax, edi
mov dword [ebp - 4], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4ca96c
lea eax, [edi + edi]
push eax
call fcn.0040b0b0
mov ecx, dword [0x4ca964]
lea eax, [edi - 1]
mov dword [0x4ca978], eax
mov dword [0x4ca97c], edi
mov ecx, dword [ecx]
mov edx, ecx
mov dword [ebp - 8], ecx
cmp ecx, esi
je 0x40ce17
nop
cmp dword [ecx + 0x1c], 8
lea eax, [ecx + 8]
mov edx, dword [edx]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
jb 0x40cc4f
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
add edi, edi
mov eax, 0x811c9dc5
mov dword [ebp - 0x18], edi
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x40cc88
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov ecx, dword [ebp - 0x18]
movzx eax, byte [edi + edx]
inc edi
xor eax, esi
imul esi, eax, 0x1000193
cmp edi, ecx
jb 0x40cc68
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
and eax, dword [0x4ca978]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4ca96c]
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi*8]
mov dword [ebp - 0x18], eax
cmp dword [eax], esi
jne 0x40ccad
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40ce0a
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
jb 0x40ccca
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 4]
jb 0x40cce4
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
jne 0x40cd66
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x40cd2b
sub dword [ebp - 0x10], edi
nop
mov ecx, dword [ebp - 0x10]
movzx edi, word [edi + ecx]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0xc]
movzx edi, word [edi]
cmp word [ebp - 0x20], di
jne 0x40cd66
mov edi, dword [ebp - 0xc]
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], edi
ja 0x40cd00
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x40cd5b
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], ecx
jmp 0x40ce0a
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
je 0x40cdde
lea ecx, [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x20], esi
jb 0x40cd84
mov edi, dword [edi]
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov dword [ebp - 0x10], esi
jb 0x40cd96
mov esi, dword [ecx + 8]
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
jne 0x40cdd7
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x40ce22
mov esi, dword [ebp - 0x10]
sub esi, edi
mov dword [ebp - 0x10], esi
movzx esi, word [esi + edi]
mov dword [ebp - 0x20], esi
movzx esi, word [edi]
cmp word [ebp - 0x20], si
jne 0x40cdd7
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
jbe 0x40ce22
mov esi, dword [ebp - 0x10]
jmp 0x40cdb6
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
jne 0x40cd70
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1c], esi
mov dword [esi], edx
mov edi, dword [edx + 4]
mov dword [ebp - 0x20], edi
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov esi, dword [ebp - 4]
mov ecx, edx
mov dword [ebp - 8], ecx
cmp edx, esi
jne 0x40cc30
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x40ce07
push str.invalid_hash_bucket_count
call fcn.00433ecc
int3