Function at 0x401ae0
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 0x401d7d
lea eax, [ecx - 1]
mov esi, dword [0x417384]
or eax, edi
mov dword [ebp - 4], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x41738c
lea eax, [edi + edi]
push eax
call fcn.004015a0
mov ecx, dword [0x417384]
lea eax, [edi - 1]
mov dword [0x417398], eax
mov dword [0x41739c], edi
mov ecx, dword [ecx]
mov edx, ecx
mov dword [ebp - 8], ecx
cmp ecx, esi
je 0x401d47
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 0x401b7f
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 0x401bb8
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 0x401b98
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 [0x417398]
mov dword [ebp - 0xc], eax
mov eax, dword [0x41738c]
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi*8]
mov dword [ebp - 0x18], eax
cmp dword [eax], esi
jne 0x401bdd
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x401d3a
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 0x401bfa
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 0x401c14
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 0x401c96
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x401c5b
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 0x401c96
mov edi, dword [ebp - 0xc]
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], edi
ja 0x401c30
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x401c8b
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 0x401d3a
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
je 0x401d0e
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 0x401cb4
mov edi, dword [edi]
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov dword [ebp - 0x10], esi
jb 0x401cc6
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 0x401d07
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x401d52
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 0x401d07
dec dword [ebp - 0x1c]
add edi, 2
cmp dword [ebp - 0x1c], 0
jbe 0x401d52
mov esi, dword [ebp - 0x10]
jmp 0x401ce6
mov edi, dword [ebp - 0x18]
cmp dword [edi], eax
jne 0x401ca0
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 0x401b60
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 0x401d37
push str.invalid_hash_bucket_count
call fcn.00401f32
int3