Function at 0x10052130
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [0x10668f98]
push esi
mov esi, dword [ecx + 0x28]
mov ebx, edx
lea eax, [esi + 1]
mov dword [ecx + 0x28], eax
mov edx, dword [0x1066908c]
mov dword [esp + 0x18], ecx
cmp esi, edx
jae 0x100525f0
push edi
lea edi, [esi*8]
sub edi, esi
mov esi, dword [ecx + 0x24]
xorps xmm0, xmm0
movq qword [esi + edi*4], xmm0
movq qword [esi + edi*4 + 8], xmm0
movq qword [esi + edi*4 + 0x10], xmm0
mov dword [esi + edi*4 + 0x18], 0
mov eax, dword [0x10668f94]
mov byte [esi + edi*4 + 0x1b], 8
mov dword [esi + edi*4 + 0x14], eax
mov byte [esi + edi*4 + 0x18], 0x48
mov al, byte [ebp]
mov byte [esi + edi*4 + 0x1b], al
cmp dword [ebp], 1
mov dword [esp + 0x20], edi
je 0x10376976
mov eax, dword [ebp + 8]
mov dword [esi + edi*4 + 0xc], eax
mov al, byte [ebx]
mov byte [esi + edi*4 + 0x19], al
cmp dword [ebx], 1
jne 0x10052362
mov ebp, dword [0x10668f98]
mov edx, dword [ebp + 0x78]
mov dword [esp + 0x18], edx
lea eax, [edx + 1]
mov dword [ebp + 0x78], eax
mov ecx, dword [0x10669094]
cmp edx, ecx
jge 0x10052488
mov al, byte [ebx + 0x14]
cmp al, 6
jne 0x1005244a
mov eax, dword [ebx + 0xc]
push 1
inc eax
push eax
push dword [ebx + 8]
call dword [sym.php5.dll_zend_new_interned_string]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x74]
movq xmm0, qword [ebx + 8]
lea ecx, [edx + edx*2]
movq qword [eax + ecx*8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [eax + ecx*8 + 8], xmm0
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 8], 2
mov eax, dword [ebp + 0x74]
mov byte [eax + ecx*8 + 0xd], 1
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 0x10], 0
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 0x14], 0xffffffff
mov dword [esi + edi*4 + 4], edx
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x1005236e
mov al, byte [ebx]
mov byte [esi + edi*4 + 0x1a], al
cmp dword [ebx], 1
jne 0x100524c6
mov ebp, dword [0x10668f98]
mov edx, dword [ebp + 0x78]
mov dword [esp + 0x18], edx
lea eax, [edx + 1]
mov dword [ebp + 0x78], eax
mov ecx, dword [0x10669094]
cmp edx, ecx
jge 0x10052457
mov al, byte [ebx + 0x14]
cmp al, 6
jne 0x100524b9
mov eax, dword [ebx + 0xc]
push 1
inc eax
push eax
push dword [ebx + 8]
call dword [sym.php5.dll_zend_new_interned_string]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x74]
movq xmm0, qword [ebx + 8]
lea ecx, [edx + edx*2]
movq qword [eax + ecx*8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [eax + ecx*8 + 8], xmm0
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 8], 2
mov eax, dword [ebp + 0x74]
mov byte [eax + ecx*8 + 0xd], 1
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 0x10], 0
mov eax, dword [ebp + 0x74]
mov dword [eax + ecx*8 + 0x14], 0xffffffff
mov dword [esi + edi*4 + 8], edx
cmp byte [esi + edi*4 + 0x1a], 1
jne 0x10052351
mov eax, dword [esi + edi*4 + 8]
lea ecx, [eax + eax*2]
mov eax, dword [0x10668f98]
mov eax, dword [eax + 0x74]
cmp byte [eax + ecx*8 + 0xc], 6
lea ebx, [eax + ecx*8]
mov dword [esp + 0x1c], ebx
jne 0x10052351
mov ebp, dword [ebx]
mov edx, ebp
cmp byte [edx], 0x2d
je 0x1005261e
mov cl, byte [edx]
cmp cl, 0x39
jle 0x10052384
mov ebp, dword [ebx]
cmp ebp, dword [0x106690c0]
jae 0x100524d2
cmp ebp, dword [0x106690bc]
jb 0x100524d2
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x10], edx
movzx eax, byte [esp + 0x2c]
mov dword [esi + edi*4 + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebx + 8]
mov dword [esi + edi*4 + 4], eax
jmp 0x10052250
movzx eax, byte [esp + 0x2c]
mov byte [esi + edi*4 + 0x1a], 8
mov dword [esi + edi*4 + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp cl, 0x30
jl 0x10052331
mov eax, dword [ebx + 4]
add eax, ebp
mov dword [esp + 0x14], eax
cmp byte [eax], 0
jne 0x10052331
cmp cl, 0x30
je 0x1005263d
sub eax, edx
cmp eax, 0xa
jg 0x10052331
je 0x10376989
mov eax, dword [esp + 0x14]
movsx ecx, cl
sub ecx, 0x30
inc edx
mov dword [esp + 0x18], ecx
cmp edx, eax
je 0x100523f9
mov bl, byte [edx]
mov byte [esp + 0x13], bl
cmp bl, 0x30
mov ebx, dword [esp + 0x1c]
jl 0x10052611
cmp byte [esp + 0x13], 0x39
jg 0x10052611
movsx eax, byte [esp + 0x13]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp edx, eax
jne 0x100523c0
cmp byte [ebp], 0x2d
je 0x10052624
cmp ecx, 0x7fffffff
ja 0x10052331
cmp byte [ebx + 0xc], 3
jbe 0x1005241e
push ebx
call sym.php5.dll__zval_dtor_func
add esp, 4
mov eax, dword [esi + edi*4 + 8]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [0x10668f98]
mov eax, dword [eax + 0x74]
mov dword [eax + ecx*8], edx
mov byte [eax + ecx*8 + 0xc], 1
movzx eax, byte [esp + 0x2c]
mov dword [esi + edi*4 + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp al, 8
jne 0x10052208
jmp 0x100521ee
mov eax, edx
sub eax, ecx
and eax, 0xfffffff0
add eax, 0x10
add eax, ecx
mov dword [0x10669094], eax
lea eax, [eax + eax*2]
push 0
shl eax, 3
push eax
push dword [ebp + 0x74]
call sym.php5.dll__erealloc
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebp + 0x74], eax
jmp 0x1005228c
mov eax, edx
sub eax, ecx
and eax, 0xfffffff0
add eax, 0x10
add eax, ecx
mov dword [0x10669094], eax
lea eax, [eax + eax*2]
push 0
shl eax, 3
push eax
push dword [ebp + 0x74]
call sym.php5.dll__erealloc
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebp + 0x74], eax
jmp 0x100521e3
cmp al, 8
jne 0x100522b1
jmp 0x10052297
mov eax, dword [ebx + 8]
mov dword [esi + edi*4 + 8], eax
jmp 0x100522f9
mov eax, dword [ebx + 4]
inc eax
mov dword [esp + 0x18], eax
mov edx, 0x1505
cmp eax, 8
jb switch.0x10052574
mov ebx, eax
shr eax, 3
mov dword [esp + 0x18], eax
mov edi, eax
movsx eax, byte [ebp]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebp + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebp + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebp + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebp + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebp + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebp + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebp + 7]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
add ebp, 8
sub ebx, 8
dec edi
jne 0x100524f3
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp dword [eax*4 + 0x10052654]
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
inc ebp
mov eax, edx
shl edx, 5
add edx, eax
movsx eax, byte [ebp]
add edx, eax
movzx eax, byte [esp + 0x2c]
mov dword [ebx + 0x10], edx
mov dword [esi + edi*4 + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test byte [ecx + 0xc], 0x10
jne 0x10376959
shl edx, 2
mov dword [0x1066908c], edx
call fcn.10052680
mov ecx, dword [esp + 0x18]
jmp 0x1005215b
cmp edx, eax
jne 0x10052331
jmp 0x100523f9
inc edx
jmp 0x1005232a
lea eax, [ecx - 1]
cmp eax, 0x7fffffff
ja 0x10052331
neg ecx
mov dword [esp + 0x18], ecx
jmp 0x1005240f
mov eax, dword [ebx + 4]
inc eax
cmp eax, 2
jg 0x10052331
mov eax, dword [esp + 0x14]
jmp 0x100523a0
push str.Ran_out_of_opcode_space__nYou_should_probably_consider_writing_this_huge_script_into_a_file__n
call dword [sym.php5.dll_zend_printf]
add esp, 4
push 0x1b5
push str.Zendzend_opcode.c
call sym.php5.dll__zend_bailout
mov ecx, dword [0x10668f98]
lea edx, [ebp + 8]
call fcn.10008bd0
jmp 0x100521af
cmp cl, 0x32
jg 0x10052331
jmp 0x100523ad