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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1fffffff
sub esp, 0x24
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1000439f
lea eax, [ecx - 1]
mov esi, dword [0x1002b574]
or eax, edi
mov dword [esp + 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1002b57c
lea eax, [edi + edi]
push eax
call fcn.10003a60
mov ecx, dword [0x1002b574]
lea eax, [edi - 1]
mov dword [0x1002b588], eax
mov dword [0x1002b58c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x10004370
nop
mov edi, dword [ecx + 0x1c]
lea eax, [ecx + 8]
mov edx, dword [edx]
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
cmp edi, 0xf
jbe 0x100040c2
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x28], esi
mov eax, 0x811c9dc5
mov esi, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x10004116
mov edx, dword [esp + 0x20]
mov esi, eax
movzx eax, byte [edx + edi]
inc edi
xor eax, esi
imul esi, eax, 0x1000193
cmp edi, ebx
jb 0x100040e3
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
and eax, dword [0x1002b588]
mov dword [esp + 0x14], eax
mov eax, dword [0x1002b57c]
mov edi, dword [esp + 0x14]
lea eax, [eax + edi*8]
mov dword [esp + 0x1c], eax
cmp dword [eax], esi
jne 0x1000413e
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x10004366
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea edi, [eax + 8]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], esi
jbe 0x1000415b
mov edi, dword [edi]
mov dword [esp + 0x14], edi
cmp dword [esp + 0x18], 0xf
lea edi, [ecx + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], ebx
jbe 0x1000418c
mov edi, dword [ecx + 8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
cmp ebx, dword [esp + 0x2c]
jne 0x10004267
sub ebx, 4
mov dword [esp + 0x28], ebx
jb 0x100041c6
jmp 0x100041a5
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [edi]
cmp edi, dword [esi]
mov esi, dword [esp + 0xc]
jne 0x100041cb
add dword [esp + 0x10], 4
add dword [esp + 0x14], 4
sub ebx, 4
mov dword [esp + 0x28], ebx
jae 0x100041a1
cmp ebx, 0xfffffffc
je 0x1000422b
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov bl, byte [ebx]
cmp bl, byte [edi]
jne 0x10004224
mov edi, dword [esp + 0x28]
cmp edi, 0xfffffffd
je 0x1000422b
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
mov esi, dword [esp + 0xc]
jne 0x10004224
cmp edi, 0xfffffffe
je 0x1000422b
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
mov esi, dword [esp + 0xc]
jne 0x10004224
cmp edi, 0xffffffff
je 0x1000422b
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov bl, byte [ebx + 3]
cmp bl, byte [edi + 3]
je 0x1000422b
sbb edi, edi
or edi, 1
jmp 0x1000422d
xor edi, edi
test edi, edi
jne 0x10004267
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x1000425b
mov ebx, dword [ecx + 4]
mov esi, dword [esp + 0x2c]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [esp + 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x10004366
mov edi, dword [esp + 0x1c]
cmp dword [edi], eax
je 0x10004340
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea edi, [eax + 8]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x2c], ebx
jbe 0x10004288
mov edi, dword [edi]
cmp dword [esp + 0x18], 0xf
lea ebx, [ecx + 8]
mov dword [esp + 0x10], ebx
jbe 0x1000429d
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
jne 0x10004334
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], esi
sub dword [esp + 0x14], 4
mov esi, dword [esp + 0xc]
jb 0x100042dd
mov ebx, dword [ebx]
cmp ebx, dword [edi]
jne 0x100042e4
mov ebx, dword [esp + 0x10]
add edi, 4
add ebx, 4
sub dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
jae 0x100042c2
cmp dword [esp + 0x14], 0xfffffffc
je 0x1000432e
mov ebx, dword [esp + 0x10]
mov bl, byte [ebx]
cmp bl, byte [edi]
jne 0x10004327
cmp dword [esp + 0x14], 0xfffffffd
je 0x1000432e
mov ebx, dword [esp + 0x10]
mov bl, byte [ebx + 1]
cmp bl, byte [edi + 1]
jne 0x10004327
cmp dword [esp + 0x14], 0xfffffffe
je 0x1000432e
mov ebx, dword [esp + 0x10]
mov bl, byte [ebx + 2]
cmp bl, byte [edi + 2]
jne 0x10004327
cmp dword [esp + 0x14], 0xffffffff
je 0x1000432e
mov ebx, dword [esp + 0x10]
mov bl, byte [ebx + 3]
cmp bl, byte [edi + 3]
je 0x1000432e
sbb edi, edi
or edi, 1
jmp 0x10004330
xor edi, edi
test edi, edi
je 0x10004379
mov ebx, dword [esp + 0x1c]
cmp dword [ebx], eax
jne 0x10004273
mov ebx, dword [ecx + 4]
mov dword [esp + 0x2c], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x100040a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [esp + 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x10004366
push str.invalid_hash_bucket_count
call fcn.10007626
int3