This is a Fe-concretion (about 2 cm in diameter) of possible sedimentary origin (Carpathian Flysch; reflected light microscopy). I suppose the dark grains are could be quartz, subsequently surrounded by crystallizing magnetite and haematite when filling a void.