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

Disassembly:
push 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 [ebp + 8]
cmp ecx, eax
ja 0x40f49a
lea eax, [ecx - 1]
mov esi, dword [0x4ff8d4]
or eax, edi
mov dword [ebp - 0x14], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4ff8dc
lea eax, [edi + edi]
push eax
call fcn.0040ebd0
mov ecx, dword [0x4ff8d4]
lea eax, [edi - 1]
mov dword [0x4ff8e8], eax
mov dword [0x4ff8ec], edi
mov ecx, dword [ecx]
mov edx, ecx
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x40f467
nop dword [eax]
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 - 8], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], eax
jb 0x40f29f
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, edi
mov eax, 0x811c9dc5
mov dword [ebp - 0x1c], edi
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x40f2d8
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + edx]
inc edi
xor eax, esi
imul esi, eax, 0x1000193
cmp edi, ecx
jb 0x40f2b8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
and eax, dword [0x4ff8e8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4ff8dc]
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi*8]
mov dword [ebp - 0x1c], eax
cmp dword [eax], esi
jne 0x40f2fd
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40f45a
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jb 0x40f31a
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 - 0x14]
jb 0x40f334
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
cmp edi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
jne 0x40f3b6
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x18]
je 0x40f37b
sub dword [ebp - 0x10], edi
nop
mov ecx, dword [ebp - 0x10]
movzx edi, word [edi + ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
movzx edi, word [edi]
cmp word [ebp - 8], di
jne 0x40f3b6
mov edi, dword [ebp - 0xc]
dec dword [ebp - 4]
add edi, 2
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
ja 0x40f350
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x40f3ab
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
jmp 0x40f45a
mov edi, dword [ebp - 0x1c]
cmp dword [edi], eax
je 0x40f42e
nop dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov esi, dword [edi + 0x10]
mov dword [ebp - 8], esi
jb 0x40f3d4
mov edi, dword [edi]
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov dword [ebp - 0x10], esi
jb 0x40f3e6
mov esi, dword [ecx + 8]
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
jne 0x40f427
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x18]
je 0x40f46f
mov esi, dword [ebp - 0x10]
sub esi, edi
mov dword [ebp - 0x10], esi
movzx esi, word [esi + edi]
mov dword [ebp - 8], esi
movzx esi, word [edi]
cmp word [ebp - 8], si
jne 0x40f427
dec dword [ebp - 4]
add edi, 2
cmp dword [ebp - 4], 0
jbe 0x40f46f
mov esi, dword [ebp - 0x10]
jmp 0x40f406
mov edi, dword [ebp - 0x1c]
cmp dword [edi], eax
jne 0x40f3c0
mov esi, dword [ecx + 4]
mov dword [ebp - 4], esi
mov dword [esi], edx
mov edi, dword [edx + 4]
mov dword [ebp - 8], edi
mov esi, dword [ebp - 8]
mov dword [edi], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], esi
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov esi, dword [ebp - 0x14]
mov ecx, edx
mov dword [ebp - 0x18], ecx
cmp edx, esi
jne 0x40f280
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x40f457
push str.invalid_hash_bucket_count
call fcn.0047c57f
int3