Function at 0x10006410
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x106499c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x15], 1
test eax, eax
jne 0x10006654
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000683e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000683e
lea ebx, [esi + 1]
mov dword [ebp - 0x10], ebx
cmp ebx, 0x8000
jg 0x1039754f
mov byte [ebp - 9], al
mov eax, ebx
call fcn.10312260
mov eax, esp
mov dword [ebp - 0x14], esp
add esi, edi
mov dword [ebp - 0x20], eax
mov edx, eax
cmp edi, esi
jae 0x10006491
mov eax, edi
lea ecx, [ecx]
movzx ecx, byte [eax]
inc eax
mov cl, byte [ecx + 0x10545478]
mov byte [edx], cl
inc edx
cmp eax, esi
jb 0x10006480
mov byte [edx], 0
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0x5c
je 0x10397564
mov eax, ebx
mov dword [ebp - 0x28], eax
mov esi, edx
mov edi, 0x1505
cmp ebx, 8
jb switch.0x1000652d
shr ebx, 3
movsx eax, byte [esi]
mov ecx, edi
shl ecx, 5
add ecx, edi
add ecx, eax
movsx eax, byte [esi + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 7]
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, 8
add esi, 8
mov dword [ebp - 0x28], eax
dec ebx
jne 0x100064b4
mov edx, dword [ebp - 0x14]
jmp dword [eax*4 + 0x100068c4]
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
mov esi, dword [ebp - 0x10]
mov eax, dword [0x1066924c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
and ecx, edi
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x10006681
lea esp, [esp]
mov ecx, dword [ebx + 0x20]
cmp ecx, edx
je 0x1000662d
cmp dword [ebx], edi
jne 0x10006673
cmp dword [ebx + 4], esi
jne 0x10006673
sub esi, 4
jb 0x100065e1
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100065e6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100065d0
cmp esi, 0xfffffffc
je 0x10006623
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10006896
cmp esi, 0xfffffffd
je 0x10006623
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10006896
cmp esi, 0xfffffffe
je 0x10006623
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10006896
cmp esi, 0xffffffff
je 0x10006623
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10006896
xor eax, eax
test eax, eax
jne 0x100068a0
cmp byte [ebp - 9], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
jne 0x10006668
xor eax, eax
lea esp, [ebp - 0x84]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10311bec
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov edi, dword [eax + 0x10]
inc esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], esi
jmp 0x10006591
cmp dword [ebp + 0x10], 0
jne 0x1000663b
jmp 0x10397571
mov ebx, dword [ebx + 0x18]
mov esi, dword [ebp - 0x10]
test ebx, ebx
jne 0x100065b0
cmp byte [0x10668fd1], 0
jne 0x10006846
cmp dword [ebp + 0x14], 0
je 0x10006846
push str.0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_strspn]
mov esi, dword [ebp + 0xc]
add esp, 8
cmp eax, esi
jne 0x10006838
mov eax, dword [0x1066926c]
test eax, eax
je 0x1000686e
mov ebx, dword [ebp - 0x10]
push 2
push 0
push 1
lea ecx, [ebp - 0x15]
push ecx
push edi
push ebx
push dword [ebp - 0x14]
push eax
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
cmp eax, 0xffffffff
je 0x10006838
push 0x18
mov dword [ebp - 0x70], 0xa
mov dword [ebp - 0x74], str.__autoload
mov byte [ebp - 0x68], 6
call sym.php5.dll__emalloc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xd], 0
cmp byte [ecx], 0x5c
je 0x10397581
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
push eax
mov dword [esi + 4], eax
push ecx
call sym.php5.dll__estrndup
mov byte [esi + 0xc], 6
mov dword [esi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10669248]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x10669270]
add esp, 8
mov dword [ebp - 0x64], 0x24
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 1
test eax, eax
je 0x10006865
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call sym.php5.dll_zend_exception_save
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
push eax
call sym.php5.dll_zend_call_function
mov dword [ebp - 0x10], eax
call sym.php5.dll_zend_exception_restore
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
mov dword [0x10669270], ecx
call sym.php5.dll__zval_ptr_dtor
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 2
push edi
push ebx
push esi
push dword [0x1066926c]
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
cmp dword [ebp - 0x24], 0
je 0x10006801
lea eax, [ebp - 0x24]
push eax
call sym.php5.dll__zval_ptr_dtor
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000681f
push dword [ebp + 0x18]
push edi
push ebx
push esi
push dword [0x1066924c]
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x1000663d
cmp byte [ebp - 9], 0
je 0x1000663d
jmp 0x10397594
cmp byte [ebp - 9], 0
jne 0x100068a8
or eax, 0xffffffff
jmp 0x1000663d
cmp byte [ebp - 9], 0
je 0x1000683e
cmp dword [ebp + 0x10], 0
jne 0x1000683e
push dword [ebp - 0x20]
call sym.php5.dll__efree
add esp, 4
or eax, 0xffffffff
jmp 0x1000663d
mov byte [ebp - 0x40], 0
jmp 0x10006792
push 0x28
call sym.php5.dll__emalloc
add esp, 4
mov dword [0x1066926c], eax
push 0
push 0
push 0
push eax
call sym.php5.dll__zend_hash_init
mov eax, dword [0x1066926c]
add esp, 0x10
jmp 0x100066c1
sbb eax, eax
or eax, 1
jmp 0x10006625
mov edx, dword [ebp - 0x14]
jmp 0x10006673
cmp dword [ebp + 0x10], 0
jne 0x1000683e
push dword [ebp - 0x20]
call sym.php5.dll__efree
add esp, 4
or eax, 0xffffffff
jmp 0x1000663d
push ebx
mov byte [ebp - 9], 1
call sym.php5.dll__emalloc
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x10006470
inc edx
dec ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
jmp 0x100064a0
push dword [ebp - 0x20]
call sym.php5.dll__efree
add esp, 4
jmp 0x1000663b
lea eax, [esi - 1]
mov esi, dword [ebp - 0x1c]
push eax
mov dword [esi + 4], eax
lea eax, [ecx + 1]
push eax
jmp 0x10006733
push dword [ebp - 0x20]
call sym.php5.dll__efree
mov eax, dword [ebp - 0x10]
add esp, 4
jmp 0x1000663d