Set up the dimensions and segments of the base cube so that its polygons will be squares when it’s made editable and you’ll be able to select a square of polygons to extrude. In your case, the Y segments aren’t important, but for my example I made them all proportional.