Hold your cube so that the pieces are in the upper-front and upper-back position. In the case here, have the orange face pointed directly at you and yellow pointed up. This should put the cube in the correct orientation. Use: R' U2 R U R' U R U' R' U2 R U R' U R
This will swap the front-middle-upper and front-middle-back edge pieces and keep their orientation. However, the corner pieces will be repositioned and you will need to redo those steps. You're supposed to get the edge pieces correct before working on the corners anyways.
EDIT
I decided to cheat and put it onto an online solver. It said it wasn't solvable. At first I thought that those moves would leave the corner pieces alone, but apparently not. I punched in a very similar pattern I had once and it solved it. So apparently your cube really is improperly manufactured. Just take the two pieces off of the cube and put them back in correctly.
/EDIT
For those who don't understand cube notation:
R = right face of the cube
U = upper face
X means to rotate that face in a clockwise rotation (90')
X' means to rotate the face in a counter-clockwise rotation (-90')
X2 means to rotate the face twice (180')