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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101521ed
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1070fd80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, 0x1fffffff
mov esi, 1
bsr ecx, eax
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10022485
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x18], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x2c], ecx
lea eax, [esi + esi]
push eax
call fcn.1001d200
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 0x18]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10022447
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ecx
cmp ecx, 0xf
jbe 0x10022322
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp - 0x14], edx
jbe 0x1002235f
mov ebx, dword [ebp - 0x14]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
movzx ecx, byte [edi + edx]
inc edx
xor ecx, eax
imul eax, ecx, 0x1000193
cmp edx, ebx
jb 0x10022336
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
and edx, ecx
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
cmp edx, eax
jne 0x10022385
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1002243d
mov ebx, dword [ecx + 4]
cmp dword [ebx + 0x1c], 0xf
lea ecx, [ebx + 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
jbe 0x10022399
mov ecx, dword [ecx]
cmp dword [esi + 0x1c], 0xf
lea edx, [esi + 8]
jbe 0x100223a5
mov edx, dword [esi + 8]
push dword [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
push edx
call fcn.10017b50
add esp, 0x10
test al, al
je 0x100223df
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100223d7
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 [ebp - 0x10]
mov dword [eax + 4], esi
jmp 0x1002243a
cmp dword [ebp - 0x1c], ebx
je 0x1002241d
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x20], ecx
jbe 0x100223f8
mov eax, dword [eax]
cmp dword [ebp - 0x24], 0xf
lea edx, [esi + 8]
jbe 0x10022404
mov edx, dword [esi + 8]
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push edx
call fcn.10017b50
add esp, 0x10
test al, al
jne 0x10022469
cmp dword [ebp - 0x1c], ebx
jne 0x100223e4
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 [ebp - 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x18]
mov esi, edi
cmp edi, eax
jne 0x10022301
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x1002243a
push str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3