This looks like an igneous rock, maybe along the line of some gabbro variant. The quartz was introduced later after the original darker rock cooled, fractured, and got intruded upon by the quartz rich material.
Not uncommon in areas where there's been some orogenic activity.