I took a closer look at the cord and noticed that the micro USB adapter was actually a little bent from the part sticking out of the plastic cover. The problem was, indeed, in the cord.
Luckily my brother has Samsung s3 with micro USB charger. I plugged it to my HTC and the other end to the...