It's just a manner of being careful with the indices. Thake the Euler-Lagrange equation in covariant formulation
$$\partial_\rho \frac{\delta \mathcal{L}}{\delta \partial_\rho A_\sigma}-\frac{\delta\mathcal{L}}{\delta A_\sigma}=0$$ and let us start from the second bit. Clearly, the only part in the lagrangian which does not depend on the derivative of the field is the $d$-term which gives simply
$$\frac{\delta}{\delta A_\sigma}\frac{d}{2}A_\mu A^\mu = d\delta^{\sigma}_\mu A^\mu = dA^\sigma$$ where the factor $1/2$ is cancelled by the factor $2$ of the derivative. As you can see the free index on the right is $\sigma$ as well as on the left, which is what we want.
The other bit is the more involved one. Take it bit by bit
$$\frac{\delta}{\delta\partial_\rho A_\sigma}\frac{a}{2}\partial_\mu A_\nu \partial^\mu A^\nu = a\delta_\mu^\rho\delta_\nu^\sigma \partial^\mu A^\nu = a\partial^\rho A^\sigma$$ where one Kroneker delta comes from the derivative and the other from the field. Again the factor $1/2$ is cancelled by the derivative since it is a quadratic term. Then,
$$\frac{\delta}{\delta\partial_\rho A_\sigma} \frac{b}{2}\partial_\mu A_\nu\partial^\nu A^\mu = b\delta_\mu^\rho\delta_\nu^\sigma \partial^\nu A^\mu = b\partial^\sigma A^\rho$$
notice that the index are swapped with respect to the previous one. The last bit remaining is
$$\frac{\delta}{\delta\partial_\rho A_\sigma}\frac{c}{2}(\partial_\mu A^\mu)^2 = c\delta_\mu^\rho \delta^\mu_\sigma\partial_\mu A^\mu = c\partial^\sigma A^\rho.$$
Now it is just a manner of putting all together taking the other derivative from the first bit of the EL-equations
$$\partial_\rho [a\partial^\rho A^\sigma + (b+c)\partial^\sigma A^\rho] = a\partial^\rho\partial_\rho A^\sigma+ (b+c)\partial_\rho\partial^\sigma A^\rho.$$
Putting it all back together being wary of the signs and you get the desired result. You can clearly rename the indices however you want.