Function at 0x10008760
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x10
and dword [esp], 0
push ebx
push ebp
mov ebx, ecx
push esi
mov ebp, dword [ebx]
mov esi, edx
cmp byte [ebp], 0x5c
push edi
mov dword [esp + 0x1c], esi
je 0x1037acae
mov edx, dword [ebx + 4]
inc edx
mov dword [esp + 0x18], edx
mov eax, edx
mov ecx, ebp
mov esi, 0x1505
cmp edx, 8
jae case.default.0x10008799
jmp dword [eax*4 + 0x10008914]
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
mov eax, dword [0x10669250]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
and ecx, esi
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x1000883b
cmp dword [edi + 0x20], ebp
je 0x1000880b
cmp dword [edi], esi
jne 0x1000890c
cmp dword [edi + 4], edx
jne 0x1000890c
push edx
push ebp
push dword [edi + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10008908
mov eax, dword [edi + 8]
mov esi, dword [esp + 0x1c]
test byte [eax + 0x10], 4
je 0x100088f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
jmp case.0x10008799.4
push dword [ebx + 4]
push ebp
call sym.php5.dll_zend_str_tolower_dup
mov ecx, dword [ebx + 4]
mov edi, eax
lea eax, [esp + 0x18]
push eax
inc ecx
push ecx
push edi
push dword [0x10669250]
call sym.php5.dll_zend_hash_find
add esp, 0x18
test eax, eax
jne 0x10008901
mov esi, dword [esp + 0x10]
test byte [esi + 0x10], 4
je 0x10008901
test byte [esi + 0x10], 1
jne 0x10008901
push edi
call sym.php5.dll__efree
mov eax, esi
pop ecx
jmp 0x1000881c
mov edi, edx
shr edi, 3
mov edx, eax
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 1]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 2]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 3]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 4]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 5]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 6]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 7]
imul esi, esi, 0x21
add esi, eax
add ecx, 8
sub edx, 8
dec edi
jne 0x10008891
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp switch.0x10008799
test esi, esi
jne 0x1037acf3
xor eax, eax
jmp 0x1000881c
xor esi, esi
jmp 0x1000887f
mov edx, dword [esp + 0x18]
mov edi, dword [edi + 0x18]
jmp 0x100087dc
lea eax, [esp + 0x10]
push eax
push dword [ebx + 4]
lea eax, [ebp + 1]
push eax
push dword [0x10669250]
call sym.php5.dll_zend_hash_find
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1037acea
mov eax, dword [ebx + 4]
dec eax
push eax
mov eax, dword [ebx]
inc eax
push eax
call sym.php5.dll_zend_str_tolower_dup
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
jmp 0x10008850
mov eax, dword [esp + 0x10]
jmp 0x10008812
test byte [eax + 0x10], 2
je 0x100088fa
test byte [0x1066904c], 0x20
jne 0x100088fa
mov cl, byte [eax + 0xc]
and cl, 0xf
cmp cl, 8
jb 0x1000881c
cmp cl, 9
ja 0x1000881c
jmp 0x100088fa