Function at 0x40ce60
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 0x40d0fd
lea eax, [ecx - 1]
mov esi, dword [0x4cb664]
or eax, edi
mov dword [ebp - 4], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4cb66c
lea eax, [edi + edi]
push eax
call fcn.0040b0b0
mov ecx, dword [0x4cb664]
lea eax, [edi - 1]
mov dword [0x4cb678], eax
mov dword [0x4cb67c], edi
mov ecx, dword [ecx]
mov edx, ecx
mov dword [ebp - 8], ecx
cmp ecx, esi
je 0x40d0c7
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 0x40ceff
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 0x40cf38
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 0x40cf18
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 [0x4cb678]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4cb66c]
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi*8]
mov dword [ebp - 0x18], eax
cmp dword [eax], esi
jne 0x40cf5d
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40d0ba
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 0x40cf7a
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 0x40cf94
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 0x40d016
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x40cfdb
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 0x40d016
mov edi, dword [ebp - 0xc]
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], edi
ja 0x40cfb0
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x40d00b
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 0x40d0ba
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
je 0x40d08e
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 0x40d034
mov edi, dword [edi]
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov dword [ebp - 0x10], esi
jb 0x40d046
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 0x40d087
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x40d0d2
mov esi, dword [ebp - 0x10]
sub esi, edi
mov dword [ebp - 0x10], esi
movzx esi, word [edi + esi]
mov dword [ebp - 0x20], esi
movzx esi, word [edi]
cmp word [ebp - 0x20], si
jne 0x40d087
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
jbe 0x40d0d2
mov esi, dword [ebp - 0x10]
jmp 0x40d066
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
jne 0x40d020
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 0x40cee0
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 0x40d0b7
push str.invalid_hash_bucket_count
call fcn.00433ecc
int3