Function at 0x1000ba40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push ebp
push esi
mov esi, 1
mov dword [esp + 0x20], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [esp + 0x28]
push edi
cmp ecx, eax
ja 0x1000bc17
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.100013e0
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x1000bbf1
mov ecx, dword [esi + 0x18]
lea ebp, [esi + 8]
mov edi, dword [edi]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
cmp ecx, 0xf
jbe 0x1000baca
mov ecx, dword [ebp]
mov dword [esp + 0x18], ecx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [esp + 0x10], edx
jbe 0x1000bb06
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
nop
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, ebp
jb 0x1000bae0
mov eax, dword [esi + 0x18]
lea ebp, [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
cmp edx, eax
jne 0x1000bb2d
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1000bbe7
mov ebx, dword [ecx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x1000bb3e
mov eax, dword [eax]
cmp dword [ebp + 0x14], 0xf
mov ecx, ebp
jbe 0x1000bb49
mov ecx, dword [ebp]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.1000cc90
add esp, 8
test al, al
je 0x1000bb82
mov ebx, dword [ebx]
cmp ebx, esi
je 0x1000bb79
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], esi
jmp 0x1000bbe3
cmp dword [esp + 0x18], ebx
je 0x1000bbc5
nop dword [eax + eax]
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x1000bba1
mov eax, dword [eax]
cmp dword [esp + 0x1c], 0xf
mov ecx, ebp
jbe 0x1000bbad
mov ecx, dword [ebp]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.1000cc90
add esp, 8
test al, al
jne 0x1000bbfb
cmp dword [esp + 0x18], ebx
jne 0x1000bb90
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov esi, edi
cmp edi, eax
jne 0x1000baa7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x1000bbe3
push str.invalid_hash_bucket_count
call fcn.101086b7
int3