Function at 0x103475d0
Capabilities:
Hash data using djb2
Terminate process

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
test esi, esi
je 0x103475e7
mov esi, dword [esi]
jmp 0x103475ea
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x18], esi
test esi, esi
je 0x10347885
cmp dword [esp + 0x24], 2
jne 0x1034764a
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esi + 4], eax
jne 0x10347617
cmp dword [esi], edx
jne 0x10347617
xor eax, eax
jmp 0x10347888
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
and ecx, edx
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x10347641
cmp dword [ebp + 4], 0
jne 0x10347631
cmp dword [ebp], edx
je 0x10347638
mov ebp, dword [ebp + 0x18]
test ebp, ebp
jne 0x10347626
mov edi, dword [esp + 0x38]
jmp 0x103477a2
mov edi, dword [esp + 0x38]
jmp 0x10347941
cmp dword [esp + 0x24], 1
jne 0x10347885
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
cmp edx, dword [0x106690bc]
jb 0x10347679
cmp edx, dword [0x106690c0]
jae 0x10347679
mov edi, dword [edx - 0x24]
jmp 0x10347731
mov ebp, eax
mov ecx, edx
mov edi, 0x1505
cmp eax, 8
jb switch.0x103476e8
shr ebp, 3
mov ebx, eax
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 1]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 2]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 3]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 4]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 5]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 6]
imul edi, edi, 0x21
add edi, eax
movsx eax, byte [ecx + 7]
imul edi, edi, 0x21
add edi, eax
add ecx, 8
sub ebx, 8
dec ebp
jne 0x1034768c
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
jmp dword [ebp*4 + 0x10347b2c]
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
inc ecx
movsx eax, byte [ecx]
imul edi, edi, 0x21
add edi, eax
mov eax, dword [esp + 0x2c]
cmp dword [esi + 0x20], edx
je 0x10347610
cmp dword [esi + 4], eax
jne 0x10347758
cmp dword [esi], edi
jne 0x10347758
push eax
push edx
push dword [esi + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10347610
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
and ecx, edi
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x10347941
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
cmp dword [ebp + 0x20], ebx
je 0x1034779a
cmp dword [ebp], edi
jne 0x10347793
cmp dword [ebp + 4], esi
jne 0x10347793
push esi
push ebx
push dword [ebp + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1034779a
mov ebp, dword [ebp + 0x18]
test ebp, ebp
jne 0x10347773
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x10347941
mov ecx, dword [esp + 0x34]
cmp ecx, 3
je 0x10347890
mov eax, dword [esi + 0x14]
xor edx, edx
inc edx
jmp 0x103477c6
cmp eax, ebp
je 0x103477cc
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x103477bf
jmp 0x103477cf
push 2
pop edx
test ecx, edx
je 0x10347890
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
je 0x103477e2
call eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
test ecx, ecx
je 0x103477f1
mov dword [ecx + 0x18], eax
jmp 0x103477fc
mov edx, dword [ebx + 4]
and edx, dword [esi]
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10347809
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ecx, ecx
je 0x10347818
mov dword [ecx + 0x10], eax
jmp 0x1034781b
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
test ecx, ecx
je 0x1034782a
mov dword [ecx + 0x14], eax
jmp 0x1034782d
mov dword [ebx + 0x18], eax
cmp dword [ebx + 0x10], esi
jne 0x10347838
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x20]
dec dword [ebx + 8]
test eax, eax
je 0x10347848
push dword [esi + 8]
call eax
pop ecx
mov edi, dword [sym.imp.MSVCR110.dll_free]
lea eax, [esi + 0xc]
cmp dword [esi + 8], eax
je 0x10347869
cmp byte [ebx + 0x24], 0
push dword [esi + 8]
je 0x10347863
call edi
jmp 0x10347868
call sym.php5.dll__efree
pop ecx
cmp byte [ebx + 0x24], 0
push esi
je 0x10347874
call edi
jmp 0x10347879
call sym.php5.dll__efree
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
pop ecx
test eax, eax
je 0x10347885
call eax
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
je 0x1034789b
call eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
test ecx, ecx
je 0x103478aa
mov dword [ecx + 0x18], eax
jmp 0x103478b6
mov edx, dword [ebx + 4]
and edx, dword [ebp]
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x103478c3
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
test ecx, ecx
je 0x103478d2
mov dword [ecx + 0x10], eax
jmp 0x103478d5
mov dword [ebx + 0x14], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x103478e4
mov dword [ecx + 0x14], eax
jmp 0x103478e7
mov dword [ebx + 0x18], eax
cmp dword [ebx + 0x10], ebp
jne 0x103478f2
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x20]
dec dword [ebx + 8]
test eax, eax
je 0x10347902
push dword [ebp + 8]
call eax
pop ecx
lea eax, [ebp + 0xc]
cmp dword [ebp + 8], eax
je 0x10347921
cmp byte [ebx + 0x24], 0
push dword [ebp + 8]
je 0x1034791b
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x10347920
call sym.php5.dll__efree
pop ecx
cmp byte [ebx + 0x24], 0
push ebp
je 0x10347930
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x10347935
call sym.php5.dll__efree
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
pop ecx
test eax, eax
je 0x10347941
call eax
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
je 0x1034794c
call eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10347959
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
test ecx, ecx
je 0x10347968
mov dword [ecx + 0x18], eax
jmp 0x10347973
mov edx, dword [ebx + 4]
and edx, dword [esi]
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x20]
mov edx, dword [0x106690bc]
mov ebp, dword [0x106690c0]
cmp eax, edx
jb 0x10347994
cmp eax, ebp
jae 0x10347994
mov dword [esp + 0x18], 1
jmp 0x10347999
and dword [esp + 0x18], 0
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jb 0x103479af
cmp ecx, ebp
jae 0x103479af
mov dword [esp + 0x14], 1
jmp 0x103479b4
and dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
jne 0x103479dd
cmp eax, edx
jb 0x103479ce
cmp eax, ebp
jb 0x10347aa2
mov edx, dword [esp + 0x10]
cmp dword [esi + 4], edx
je 0x10347aa6
jmp 0x103479e1
mov edx, dword [esp + 0x10]
cmp ecx, dword [0x106690bc]
jb 0x10347a21
cmp ecx, ebp
jae 0x10347a21
push 0x24
cmp byte [ebx + 0x24], 0
je 0x10347a27
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x10347a2f
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [edx + 0x24]
push eax
jmp 0x103479ef
call sym.php5.dll__emalloc
mov ebp, eax
pop ecx
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
cmp eax, ecx
jne 0x10347a43
lea eax, [ebp + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10347a63
mov dword [eax + 0x10], ebp
jmp 0x10347a66
mov dword [ebx + 0x14], ebp
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10347a72
mov dword [eax + 0x14], ebp
jmp 0x10347a75
mov dword [ebx + 0x18], ebp
cmp dword [ebx + 0x10], esi
jne 0x10347a7d
mov dword [ebx + 0x10], ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10347a87
mov dword [eax], ebp
cmp byte [ebx + 0x24], 0
push esi
je 0x10347a96
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x10347a9b
call sym.php5.dll__efree
pop ecx
mov ecx, dword [esp + 0x28]
mov esi, ebp
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], 2
jne 0x10347ac9
mov ecx, dword [esp + 0x30]
mov dword [esi], ecx
cmp ecx, dword [ebx + 0xc]
jl 0x10347af4
mov eax, bind
cmp ecx, eax
jae 0x10347ac4
lea eax, [ecx + 1]
mov dword [ebx + 0xc], eax
jmp 0x10347af4
mov dword [esi], edi
mov dword [esi + 4], edx
cmp ecx, dword [0x106690bc]
jb 0x10347ae3
cmp ecx, dword [0x106690c0]
jae 0x10347ae3
mov dword [esi + 0x20], ecx
jmp 0x10347af4
push edx
lea eax, [esi + 0x24]
push ecx
push eax
mov dword [esi + 0x20], eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 4]
and ecx, dword [esi]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + ecx*4]
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
test eax, eax
je 0x10347b0d
mov dword [eax + 0x1c], esi
mov ecx, dword [ebx + 4]
and ecx, dword [esi]
mov eax, dword [ebx + 0x1c]
mov dword [eax + ecx*4], esi
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
test eax, eax
je 0x10347610
call eax
jmp 0x10347610