Function at 0x10031d40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov ecx, dword [eax]
mov eax, dword [0x106693c4]
push ebx
shl ecx, 5
cmp byte [edx + 0xc], 6
push esi
mov esi, dword [ecx + eax + 4]
push edi
mov dword [esp + 0x14], esi
jne 0x103a3eac
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi]
mov dword [esp + 0x20], eax
cmp dword [ebx + 0xb4], 0
mov dword [esp + 0x1c], ebx
jne 0x100324c2
mov dword [esp + 0x2c], 0
mov byte [esp + 0xf], 0
test eax, eax
je 0x10031dc1
mov ecx, dword [eax + 0x14]
mov eax, dword [0x10669244]
mov eax, dword [eax + 0x7c]
cmp dword [eax + ecx*4], ebx
jne 0x10031dbd
mov edi, dword [eax + ecx*4 + 4]
test edi, edi
jne 0x10031f60
mov eax, dword [esp + 0x20]
mov ecx, dword [edx]
mov dword [esp + 0x34], ecx
cmp byte [ecx], 0
je 0x10032538
xor edi, edi
mov dword [esp + 0x18], edi
test eax, eax
jne 0x1003207e
mov eax, dword [edx + 4]
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov esi, 0x1505
cmp eax, 8
jb switch.0x10031e91
mov edi, eax
shr eax, 3
mov dword [esp + 0x30], eax
mov ebx, ecx
movsx eax, byte [ebx]
mov ecx, esi
shl ecx, 5
add ecx, esi
add ecx, eax
movsx eax, byte [ebx + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 7]
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, eax
add ebx, 8
sub edi, 8
dec dword [esp + 0x30]
jne 0x10031e03
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
jmp dword [eax*4 + 0x10032568]
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0x44]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x5c]
and ecx, esi
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x10032086
mov eax, dword [0x10669254]
cmp eax, ebx
je 0x10031f1c
test eax, eax
je 0x10031f1c
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x10032320
test edi, edi
jne 0x10032436
mov dword [0x1066943c], 0x100
mov eax, dword [edx]
mov dword [0x10669440], eax
mov eax, dword [edx + 4]
mov dword [0x10669444], eax
mov dword [0x10669448], esi
mov dword [0x10669458], ebx
mov dword [0x1066944c], 0xffffffff
mov edi, 0x1066943c
mov esi, dword [esp + 0x14]
test edi, edi
je 0x10031fae
test byte [edi], 1
jne 0x10031f70
mov ecx, dword [edi + 0x10]
test ecx, ecx
jns 0x1003202c
mov eax, dword [esi + 4]
test eax, eax
je 0x10031fae
mov ecx, dword [eax + 4]
and ecx, dword [edi + 0xc]
mov eax, dword [eax + 0x1c]
mov ebx, dword [edi + 8]
mov ecx, dword [eax + ecx*4]
inc ebx
test ecx, ecx
je 0x10031fae
jmp 0x10031f90
mov edx, dword [ecx + 0x20]
cmp edx, dword [edi + 4]
je 0x100321f3
mov eax, dword [edi + 0xc]
cmp dword [ecx], eax
je 0x10032147
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x10031f90
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [eax + 0xb4], ecx
jne 0x103a3fae
test edi, edi
je 0x103a4097
mov ebx, dword [ebp + 0x10]
inc dword [ebx + 8]
cmp byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
jne 0x1003246d
test byte [edi], 1
jne 0x10031ff0
mov ecx, dword [edi + 0x10]
test ecx, ecx
jns 0x10032457
cmp dword [esi + 4], 0
je 0x1003212f
push 1
push 0
push 4
lea eax, [ebp + 0x10]
push eax
push dword [edi + 0xc]
mov eax, dword [edi + 8]
inc eax
push eax
push dword [edi + 4]
push dword [esi + 4]
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
cmp dword [esp + 0x10], 0
jne 0x103a40f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0
mov eax, dword [esi + 8]
jne 0x1003213d
cmp dword [eax + ecx*4], 0
lea ebx, [eax + ecx*4]
je 0x10031fae
mov ecx, dword [ebx]
mov esi, dword [ebp + 0x10]
cmp ecx, esi
je 0x1003201a
cmp byte [ecx + 0xd], 0
jne 0x100324cf
mov dword [esp + 0x34], ecx
inc dword [esi + 8]
cmp byte [esi + 0xd], 0
mov eax, dword [esi + 8]
jne 0x1003237c
lea eax, [esp + 0x34]
push eax
mov dword [ebx], esi
call sym.php5.dll__zval_ptr_dtor
add esp, 4
jmp 0x1003201a
mov esi, dword [eax + 0x10]
jmp 0x10031ee5
mov eax, dword [edx]
mov ecx, dword [ecx + 0x20]
cmp ecx, eax
je 0x100320b3
mov ebx, dword [esp + 0x28]
cmp dword [ebx], esi
mov ebx, dword [esp + 0x1c]
je 0x1003225f
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x10032088
jmp 0x10031f04
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 8]
mov ecx, dword [edi]
test ecx, 0x20000
jne 0x1003242f
mov eax, ecx
and eax, 0x700
cmp eax, 0x100
jne 0x100321fb
test ecx, 0x800
jne 0x103a3f53
test cl, 1
jne 0x103a3f64
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10031f58
mov eax, dword [0x10669244]
mov ecx, dword [edx + 0x14]
mov eax, dword [eax + 0x7c]
mov dword [eax + ecx*4], ebx
mov eax, dword [0x10669244]
mov ecx, dword [edx + 0x14]
mov eax, dword [eax + 0x7c]
mov dword [eax + ecx*4 + 4], edi
jmp 0x10031f58
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ecx]
add esi, eax
inc ecx
jmp case.0x10031e91.5
push esi
call sym.php5.dll_rebuild_object_properties
add esp, 4
jmp 0x10031ffa
mov ebx, dword [eax + ecx*4]
test ebx, ebx
jmp 0x10032040
cmp dword [ecx + 4], ebx
jne 0x10031fa7
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, ebx
sub eax, 4
mov dword [esp + 0x28], eax
jb 0x10032185
mov esi, dword [esp + 0x18]
mov eax, dword [edx]
cmp eax, dword [esi]
mov esi, dword [esp + 0x14]
jne 0x1003218a
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], 4
add edx, 4
sub eax, 4
mov dword [esp + 0x28], eax
jae 0x10032162
cmp eax, 0xfffffffc
je 0x100321e9
mov esi, dword [esp + 0x18]
mov al, byte [edx]
cmp al, byte [esi]
mov esi, dword [esp + 0x14]
jne 0x10032554
cmp dword [esp + 0x28], 0xfffffffd
je 0x100321e9
mov esi, dword [esp + 0x18]
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
mov esi, dword [esp + 0x14]
jne 0x10032554
cmp dword [esp + 0x28], 0xfffffffe
je 0x100321e9
mov esi, dword [esp + 0x18]
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
mov esi, dword [esp + 0x14]
jne 0x10032554
cmp dword [esp + 0x28], 0xffffffff
je 0x100321e9
mov al, byte [edx + 3]
mov edx, dword [esp + 0x18]
cmp al, byte [edx + 3]
jne 0x10032554
xor eax, eax
test eax, eax
jne 0x10031fa7
mov ebx, dword [ecx + 8]
jmp 0x10032046
cmp eax, 0x200
jne 0x10032352
mov edx, dword [edi + 0x1c]
mov eax, dword [0x10669254]
mov dword [esp + 0x28], edx
test edx, edx
mov edx, dword [ebp + 0xc]
je 0x10032241
lea esp, [esp]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x28], eax
je 0x100320da
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x28], ebx
test ebx, ebx
mov ebx, dword [esp + 0x1c]
jne 0x10032220
test eax, eax
je 0x10032255
cmp eax, dword [edi + 0x1c]
je 0x100320da
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x10032245
mov byte [esp + 0xf], 1
jmp 0x10031f04
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
cmp dword [ebx + 4], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
jne 0x1003209f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
sub eax, 4
mov dword [esp + 0x24], eax
jb 0x100322aa
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, dword [edx]
mov edx, dword [ebp + 0xc]
jne 0x100322af
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 4
add ecx, 4
sub eax, 4
mov dword [esp + 0x24], eax
jae 0x10032288
cmp eax, 0xfffffffc
je 0x1003230c
mov edx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, byte [edx]
mov edx, dword [ebp + 0xc]
jne 0x1003254a
cmp dword [esp + 0x24], 0xfffffffd
je 0x1003230c
mov edx, dword [esp + 0x18]
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov edx, dword [ebp + 0xc]
jne 0x1003254a
cmp dword [esp + 0x24], 0xfffffffe
je 0x1003230c
mov ebx, dword [esp + 0x18]
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
mov ebx, dword [esp + 0x1c]
jne 0x1003254a
cmp dword [esp + 0x24], 0xffffffff
je 0x1003230c
mov al, byte [ecx + 3]
mov ecx, dword [esp + 0x18]
cmp al, byte [ecx + 3]
jne 0x1003254a
xor eax, eax
test eax, eax
je 0x100320b3
mov eax, dword [edx]
jmp 0x1003209f
cmp ecx, eax
jne 0x100323dd
lea ecx, [esp + 0x28]
push ecx
push esi
push dword [esp + 0x38]
add eax, 0x40
push dword [esp + 0x40]
push eax
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
je 0x100323ed
mov edx, dword [ebp + 0xc]
jmp 0x10031f1c
cmp eax, 0x400
jne 0x10032255
mov eax, dword [0x10669254]
cmp ebx, eax
jne 0x1003252a
test eax, eax
jne 0x100320da
mov byte [esp + 0xf], 1
jmp 0x10031f04
cmp eax, 1
jbe 0x1003206d
dec eax
push 0x18
mov dword [esi + 8], eax
call sym.php5.dll__emalloc
mov dword [eax + 0x10], 0
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov cl, byte [esi + 0xc]
add esp, 4
mov byte [eax + 0xc], cl
mov dword [eax + 8], 1
mov byte [eax + 0xd], 0
mov esi, eax
cmp cl, 3
jbe 0x1003206d
push eax
call sym.php5.dll__zval_copy_ctor_func
add esp, 4
lea eax, [esp + 0x34]
push eax
mov dword [ebx], esi
call sym.php5.dll__zval_ptr_dtor
add esp, 4
jmp 0x1003201a
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x10032320
jmp 0x10031f1c
mov eax, dword [esp + 0x28]
test dword [eax], 0x400
je 0x1003234a
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10032428
mov eax, dword [0x10669244]
mov ecx, dword [edx + 0x14]
mov eax, dword [eax + 0x7c]
mov dword [eax + ecx*4], ebx
mov eax, dword [0x10669244]
mov ecx, dword [edx + 0x14]
mov eax, dword [eax + 0x7c]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov eax, edx
mov edi, eax
jmp 0x10031f58
xor edi, edi
jmp 0x10031f04
cmp byte [esp + 0xf], 0
je 0x100320ef
cmp dword [esp + 0x2c], 0
je 0x103a3f8d
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x10031fae
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
test edx, edx
jne 0x103a4065
mov dword [eax + ecx*4], ebx
jmp 0x1003201a
cmp eax, 1
jbe 0x10031fe0
dec eax
push 0x18
mov dword [ebx + 8], eax
call sym.php5.dll__emalloc
mov dword [eax + 0x10], 0
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov cl, byte [ebx + 0xc]
add esp, 4
mov ebx, eax
mov byte [eax + 0xc], cl
mov dword [eax + 8], 1
mov byte [eax + 0xd], 0
mov dword [ebp + 0x10], ebx
cmp cl, 3
jbe 0x10031fe0
push eax
call sym.php5.dll__zval_copy_ctor_func
add esp, 4
jmp 0x10031fe0
mov dword [esp + 0x2c], 1
jmp 0x10031d98
movq xmm0, qword [ecx]
movq qword [esp + 0x38], xmm0
movq xmm0, qword [ecx + 8]
movq qword [esp + 0x40], xmm0
mov al, byte [esi + 0xc]
mov byte [ecx + 0xc], al
mov ecx, dword [ebx]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
cmp dword [esi + 8], 0
jbe 0x1003255e
mov eax, dword [ebx]
cmp byte [eax + 0xc], 3
jbe 0x1003250d
push eax
call sym.php5.dll__zval_copy_ctor_func
add esp, 4
cmp byte [esp + 0x44], 3
jbe 0x1003201a
lea eax, [esp + 0x38]
push eax
call sym.php5.dll__zval_dtor_func
add esp, 4
jmp 0x1003201a
cmp dword [edi + 0x1c], eax
jne 0x10032255
jmp 0x1003236a
cmp dword [esp + 0x2c], 0
je 0x103a3f25
xor edi, edi
jmp 0x10031fae
sbb eax, eax
or eax, 1
jmp 0x1003230e
sbb eax, eax
or eax, 1
jmp 0x100321eb
push esi
call sym.php5.dll__efree
jmp 0x1003250a
push 0x18
call sym.php5.dll__emalloc
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [eax + 0x10], 0
mov eax, dword [esp + 0x14]
movq xmm0, qword [ebx]
movq qword [eax], xmm0
mov eax, dword [esp + 0x14]
movq xmm0, qword [ebx + 8]
movq qword [eax + 8], xmm0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 8], 1
mov eax, dword [esp + 0x10]
mov byte [eax + 0xd], 0
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xc], 3
jbe 0x103a3f04
push eax
call sym.php5.dll__zval_copy_ctor_func
add esp, 4
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xc], 6
je 0x103a3f17
push eax
call sym.php5.dll__convert_to_string
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xc], edx
xor eax, eax
jmp 0x10031d79
cmp dword [edx + 4], 0
jne 0x103a3f3f
push str.Cannot_access_empty_property
push 1
call sym.php5.dll_zend_error
add esp, 8
jmp 0x10032543
push str.Cannot_access_property_started_with_0
push 1
call sym.php5.dll_zend_error
add esp, 8
jmp 0x10032543
test ecx, 0x400
je 0x10031f04
jmp 0x100320e6
cmp dword [esp + 0x2c], 0
jne 0x100320ef
push dword [esp + 0x34]
push dword [ebx + 4]
push str.Accessing_static_property__s::__s_as_non_static
push 0x800
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x100320ef
push dword [edx]
mov ecx, dword [edi]
push dword [ebx + 4]
call fcn.1031d460
push eax
push str.Cannot_access__s_property__s::__s
push 1
call sym.php5.dll_zend_error
add esp, 0x14
jmp 0x1003244c
lea eax, [esp + 0x20]
push eax
push ebx
mov edx, edi
mov ecx, esi
call fcn.10065a00
mov ecx, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x10031fc5
cmp byte [ecx + 1], al
jne 0x10031fc5
mov eax, dword [ebp + 8]
inc dword [eax + 8]
mov edx, dword [ebp + 8]
cmp byte [edx + 0xd], 0
je 0x103a4038
mov eax, dword [edx + 8]
cmp eax, 1
jbe 0x103a4038
dec eax
push 0x18
mov dword [edx + 8], eax
call sym.php5.dll__emalloc
mov dword [eax + 0x10], 0
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + 0xc]
mov byte [eax + 0xc], cl
mov dword [eax + 8], 1
mov byte [eax + 0xd], 0
mov dword [ebp + 8], eax
cmp byte [eax + 0xc], 3
jbe 0x103a4034
push eax
call sym.php5.dll__zval_copy_ctor_func
add esp, 4
mov ecx, dword [esp + 0x20]
push dword [ebp + 0x10]
mov byte [ecx + 1], 1
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.10349e90
mov eax, dword [esp + 0x24]
add esp, 4
mov byte [eax + 1], 0
lea eax, [ebp + 8]
push eax
call sym.php5.dll__zval_ptr_dtor
add esp, 4
jmp 0x1003201a
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
test eax, eax
je 0x103a4075
mov dword [eax], ebx
jmp 0x1003201a
push 1
push ecx
push 4
lea eax, [ebp + 0x10]
push eax
push dword [edi + 0xc]
mov eax, dword [edi + 8]
inc eax
push eax
push dword [edi + 4]
push edx
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
jmp 0x1003201a
mov eax, dword [esi]
cmp dword [eax + 0xb4], 0
je 0x1003201a
test ecx, ecx
je 0x1003201a
cmp byte [ecx + 1], 1
jne 0x1003201a
mov eax, dword [ebx]
cmp byte [eax], 0
jne 0x1003201a
cmp dword [ebx + 4], 0
jne 0x103a40dd
push str.Cannot_access_empty_property
push 1
call sym.php5.dll_zend_error
add esp, 8
jmp 0x1003201a
push str.Cannot_access_property_started_with_0
push 1
call sym.php5.dll_zend_error
add esp, 8
jmp 0x1003201a
lea eax, [esp + 0x10]
push eax
call sym.php5.dll__zval_ptr_dtor
add esp, 4
jmp 0x10032025