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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push esi
mov esi, ecx
bsr ecx, eax
push edi
mov edi, 1
mov dword [ebp - 0x10], esi
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x10015563
mov esi, dword [esi + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, dword [ebp - 0x10]
lea eax, [edi + edi]
lea ecx, [ecx + 0xc]
push eax
call fcn.100104b0
mov ecx, dword [ebp - 0x10]
lea eax, [edi - 1]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x10015530
mov edx, dword [edx]
xor edi, edi
mov eax, 0x811c9dc5
mov dword [ebp - 4], edx
cmp dword [ecx + 0xc], edi
jbe 0x10015340
mov edx, dword [ecx + 0xc]
mov esi, eax
nop dword [eax]
mov eax, dword [ecx + 8]
movzx eax, byte [eax + edi]
inc edi
xor eax, esi
imul esi, eax, 0x1000193
cmp edi, edx
jb 0x10015320
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
and eax, dword [edi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi*8]
mov edi, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
cmp edi, esi
jne 0x10015368
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x10015525
mov eax, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ecx + 0xc]
cmp edi, dword [eax + 0xc]
jne 0x10015450
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov dword [ebp - 8], esi
sub dword [ebp - 8], 4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
jb 0x100153b1
mov esi, dword [ebp - 0xc]
mov edi, dword [edi]
cmp edi, dword [esi]
mov edi, dword [ebp - 0x14]
jne 0x100153b7
add dword [ebp - 0xc], 4
add edi, 4
sub dword [ebp - 8], 4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
jae 0x10015392
cmp dword [ebp - 8], 0xfffffffc
je 0x1001540f
mov esi, dword [ebp - 0xc]
mov dl, byte [edi]
cmp dl, byte [esi]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
jne 0x10015408
cmp dword [ebp - 8], 0xfffffffd
je 0x1001540f
mov esi, dword [ebp - 0xc]
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
jne 0x10015408
cmp dword [ebp - 8], 0xfffffffe
je 0x1001540f
mov esi, dword [ebp - 0xc]
mov dl, byte [edi + 2]
cmp dl, byte [esi + 2]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
jne 0x10015408
cmp dword [ebp - 8], 0xffffffff
je 0x1001540f
mov dl, byte [edi + 3]
mov edi, dword [ebp - 0xc]
cmp dl, byte [edi + 3]
mov edx, dword [ebp - 4]
je 0x1001540f
sbb edi, edi
or edi, 1
jmp 0x10015411
xor edi, edi
test edi, edi
jne 0x10015450
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x10015445
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
jmp 0x10015525
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], eax
je 0x100154f9
nop dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edi, dword [eax + 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ecx + 0xc]
cmp edi, dword [eax + 0xc]
jne 0x100154f0
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov dword [ebp - 8], esi
sub dword [ebp - 8], 4
jb 0x1001549c
mov edx, dword [ebp - 0xc]
mov esi, dword [edi]
cmp esi, dword [edx]
mov edx, dword [ebp - 4]
jne 0x100154a2
add dword [ebp - 0xc], 4
add edi, 4
sub dword [ebp - 8], 4
jae 0x10015483
cmp dword [ebp - 8], 0xfffffffc
je 0x100154ea
mov esi, dword [ebp - 0xc]
mov dl, byte [edi]
cmp dl, byte [esi]
mov edx, dword [ebp - 4]
jne 0x100154e3
cmp dword [ebp - 8], 0xfffffffd
je 0x100154ea
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
mov edx, dword [ebp - 4]
jne 0x100154e3
cmp dword [ebp - 8], 0xfffffffe
je 0x100154ea
mov dl, byte [edi + 2]
cmp dl, byte [esi + 2]
mov edx, dword [ebp - 4]
jne 0x100154e3
cmp dword [ebp - 8], 0xffffffff
je 0x100154ea
mov dl, byte [edi + 3]
mov edi, esi
cmp dl, byte [edi + 3]
mov edx, dword [ebp - 4]
je 0x100154ea
sbb edi, edi
or edi, 1
jmp 0x100154ec
xor edi, edi
test edi, edi
je 0x10015538
cmp dword [ebp - 0x18], eax
jne 0x10015460
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x18]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
mov ecx, edx
cmp edx, esi
jne 0x10015307
nop
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [eax], edx
mov edi, dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x1c]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x10015522
push str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3