Can't the pilot just cut the oxygen in the plane (but the cockpit)?
He can depresurize the plane but only the whole plane. That would automatically deploy the little oxygen masks in the passenger cabin, however each of those only has about 20 minutes of air. The pilots have their own separate air mask supply.
As for the door, Air Malaysia does have hardened doors so you cant get through.
If you were bent on doing this kind of horrible thing, here is how you would do it.
Step 1. Kill the other pilot - there is a fire axe in the cockpit
Step 2. Put on your air mask
Step 3. Depressurize the plane to kill the passengers (take it up to max altitude to speed things up)
But the whole suicide thing doesn't really account for why the pilot would fly around for 7 hours. Why not go from Step 1 above to "dive plane into the ocean". The only plausible thing I could think of is if one of the pilots wanted to kill himself but didn't want anyone to know he killed himself, maybe due to shame to his family or possibly insurance money.
Bottom line is that if you take all the apparent facts for this thing, they don't match any other air incident. This is a whole new kind of thing. Either that, or some of the 'confirmed' info isn't actually correct.