The curling nucleation mode in a ferromagnetic cube