Loop cut + slide to draw a 2d cube on the corners of the cube. after that bevel that with profile settings as 1.000. last the is to inset that with ctrl.
the last thing to do is to CTRL + SHIFT + B the corners and your cube is ready. (not including two cuts middle of the cube, but its the same process.)