I believe you should have attached the photo indicated in the problem. Nevertheless this problem can still be solved without the photo.
When I think about a sulphide mineral and which forms a cube shaped crystal, the answer to this question must be Pyrite.
Answer:
Pyrite (FeS2)