Consider the edge far from the applied force (i.e. the one against the table that it would intuitively tip around) as an axis of rotation...then you can find the torque applied by the force at that point a distance from the axis at an angle (associated with the geometry of the cube). Also, remember gravity would provide another torque at the center of mass, which is also another distance from the axis at a different angle. Hope that helps some.