Function at 0x10006ae0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0x78]
mov ebp, edx
mov dword [esp + 0x10], esi
test ebx, ebx
jle 0x10006b09
mov ecx, dword [esi + 0x74]
lea eax, [ebx - 1]
imul eax, eax, 0x18
add eax, ecx
cmp eax, ebp
je 0x103767d7
lea eax, [ebx + 1]
mov dword [esi + 0x78], eax
mov ecx, dword [0x10669094]
cmp ebx, ecx
jge 0x10006c4c
mov al, byte [ebp + 0xc]
cmp al, 6
jne 0x103767ed
mov eax, dword [ebp + 4]
push 1
inc eax
push eax
push dword [ebp]
call dword [sym.php5.dll_zend_new_interned_string]
add esp, 0xc
mov dword [ebp], eax
mov edi, dword [esi + 0x74]
mov edx, dword [esp + 0x10]
mov ecx, ebx
imul ecx, ecx, 0x18
add edi, ecx
mov esi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x74]
mov dword [eax + ecx + 8], 2
mov eax, dword [edx + 0x74]
mov byte [eax + ecx + 0xd], 1
mov eax, dword [edx + 0x74]
and dword [eax + ecx + 0x10], 0
mov eax, dword [edx + 0x74]
or dword [eax + ecx + 0x14], 0xffffffff
mov esi, dword [ebp + 4]
mov edi, dword [ebp]
lea eax, [esi + 1]
push eax
call sym.php5.dll__emalloc
pop ecx
mov dword [esp + 0x10], eax
mov ecx, eax
lea edx, [edi + esi]
jmp 0x10006b9d
movzx eax, byte [edi]
mov al, byte [eax + 0x10545478]
mov byte [ecx], al
inc ecx
inc edi
cmp edi, edx
jb 0x10006b90
mov byte [ecx], 0
mov esi, dword [ebp + 4]
mov ebp, dword [0x10668f98]
mov dword [esp + 0x1c], esi
mov ecx, dword [ebp + 0x78]
mov byte [esp + 0x24], 6
lea eax, [ecx + 1]
mov dword [ebp + 0x78], eax
mov edx, dword [0x10669094]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jge 0x10006c76
push 1
lea eax, [esi + 1]
push eax
push dword [esp + 0x18]
call dword [sym.php5.dll_zend_new_interned_string]
mov ecx, dword [esp + 0x20]
mov edi, dword [ebp + 0x74]
imul ecx, ecx, 0x18
mov dword [esp + 0x24], eax
add edi, ecx
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x74]
add esp, 0xc
mov dword [eax + ecx + 8], 2
mov eax, dword [ebp + 0x74]
mov byte [eax + ecx + 0xd], 1
mov eax, dword [ebp + 0x74]
and dword [ecx + eax + 0x10], 0
mov eax, dword [ebp + 0x74]
or dword [ecx + eax + 0x14], 0xffffffff
mov eax, dword [0x10668f98]
mov ebp, dword [eax + 0x74]
add ebp, ecx
mov ecx, dword [ebp]
cmp ecx, dword [0x106690c0]
jae 0x10006ca0
cmp ecx, dword [0x106690bc]
jb 0x10006ca0
mov edx, dword [ecx - 0x24]
pop edi
pop esi
mov dword [ebp + 0x10], edx
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
mov eax, ebx
sub eax, ecx
and eax, 0xfffffff0
add eax, 0x10
add eax, ecx
mov dword [0x10669094], eax
imul eax, eax, 0x18
push 0
push eax
push dword [esi + 0x74]
call sym.php5.dll__erealloc
add esp, 0xc
mov dword [esi + 0x74], eax
jmp 0x10006b1d
mov eax, ecx
sub eax, edx
and eax, 0xfffffff0
add eax, 0x10
add eax, edx
mov dword [0x10669094], eax
imul eax, eax, 0x18
push 0
push eax
push dword [ebp + 0x74]
call sym.php5.dll__erealloc
add esp, 0xc
mov dword [ebp + 0x74], eax
jmp 0x10006bd1
mov esi, dword [ebp + 4]
inc esi
mov edx, 0x1505
cmp esi, 8
jb switch.0x10006d03
mov edi, esi
shr edi, 3
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 1]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 2]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 3]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 4]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 5]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 6]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 7]
imul edx, edx, 0x21
add edx, eax
add ecx, 8
sub esi, 8
dec edi
jne 0x10006cb3
jmp dword [esi*4 + 0x10006d50]
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx ecx, byte [ecx]
imul edx, edx, 0x21
add edx, ecx
jmp 0x10006c3f
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
jmp case.0x10006d03.3
mov eax, ebx
imul eax, eax, 0x18
cmp dword [eax + ecx - 4], 0xffffffff
jne 0x10006b09
dec ebx
jmp 0x10006b75
cmp al, 8
jne 0x10006b3e
jmp 0x10006b28