Function at 0x10067610
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [0x10668f98]
push esi
push edi
mov ebx, edx
mov dword [esp + 0x14], ebp
call fcn.10009fe0
mov esi, dword [ebx]
dec esi
cmp esi, 1
seta dl
mov edi, eax
add dl, 0x41
mov byte [edi + 0x18], dl
mov cl, byte [ebx]
mov byte [edi + 0x19], cl
cmp dword [ebx], 1
jne 0x10067782
mov ecx, dword [0x10668f98]
lea edx, [ebx + 8]
call fcn.10008bd0
mov dword [edi + 4], eax
mov dword [edi + 8], 1
mov dword [edi + 0x10], 0x3c
mov byte [edi + 0x1a], 8
mov ecx, dword [0x10668f98]
call fcn.10009fe0
mov edi, eax
push 0xfffffffffffffff0
mov byte [edi + 0x18], 0x3c
mov esi, dword [0x10668f98]
pop edx
mov eax, dword [esi + 0x34]
mov ecx, eax
shl ecx, 4
sub edx, ecx
inc eax
mov dword [esi + 0x34], eax
push 0xa
pop esi
push esi
push str.shell_exec
mov dword [edi + 0xc], edx
mov byte [edi + 0x1b], 4
call sym.php5.dll__estrndup
pop ecx
pop ecx
mov ecx, dword [0x10668f98]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 6
call fcn.10008bd0
mov ebx, eax
mov dword [edi + 4], ebx
imul ebx, ebx, 0x18
mov ecx, dword [0x10668f98]
add ebx, dword [ecx + 0x74]
mov edx, dword [ebx]
cmp edx, dword [0x106690bc]
jb 0x1037a9d3
cmp edx, dword [0x106690c0]
jae 0x1037a9d3
mov ecx, dword [edx - 0x24]
mov dword [ebx + 0x10], ecx
mov edx, dword [edi + 4]
imul edx, edx, 0x18
xor ebx, ebx
inc ebx
mov byte [edi + 0x19], bl
mov eax, dword [0x10668f98]
xor esi, esi
mov ecx, dword [eax + 0x74]
mov eax, dword [eax + 0x80]
mov dword [ecx + edx + 0x14], eax
mov eax, dword [0x10668f98]
inc dword [eax + 0x80]
mov eax, dword [0x10668f98]
test byte [eax + 0xc], 0x10
jne 0x1037aa86
mov dword [edi + 0x10], ebx
mov byte [edi + 0x1a], 8
mov eax, dword [0x106690a0]
mov dword [edi + 8], eax
movzx eax, byte [edi + 0x1b]
mov dword [ebp], eax
cmp eax, ebx
je 0x1037aac5
mov eax, dword [edi + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp + 0x18], esi
mov eax, dword [0x106690a0]
mov ecx, dword [0x10668f98]
inc eax
cmp eax, dword [ecx + 0x38]
ja 0x1006778a
mov eax, dword [0x106690a4]
add eax, 2
cmp eax, dword [ecx + 0x3c]
jbe 0x1006777a
mov dword [ecx + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 8]
jmp 0x10067657
mov dword [ecx + 0x38], eax
mov ecx, dword [0x10668f98]
jmp 0x1006776a
mov esi, dword [ebx + 4]
inc esi
mov ecx, 0x1505
cmp esi, 8
jb switch.0x1037aa3c
mov eax, esi
shr eax, 3
mov ebp, eax
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 1]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 2]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 3]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 4]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 5]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 6]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 7]
imul ecx, ecx, 0x21
add ecx, eax
add edx, 8
sub esi, 8
dec ebp
jne 0x1037a9e8
mov ebp, dword [esp + 0x14]
jmp dword [esi*4 + 0x1037aadf]
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
jmp 0x100676f5
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x10067732
mov eax, dword [eax + 0x80]
push esi
shl eax, 2
push eax
push ecx
call sym.php5.dll__erealloc
mov ecx, dword [0x10668f98]
add esp, 0xc
mov dword [ecx + 0x7c], eax
mov eax, dword [0x10668f98]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x7c]
mov dword [eax + ecx*4 - 4], esi
jmp 0x10067732
mov esi, dword [edi + 0xc]
mov eax, dword [0x10668f98]
imul esi, esi, 0x18
add esi, dword [eax + 0x74]
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10067759