Answer: The sartorius muscle.
The sartorius muscle can move the hip joint and the knee joint, but it's not very strong. However, it can flex the hip, abduct it a little, and laterally rotate the thigh. It can also flex the leg, when the knee is flexed and rotate medially the leg. This actions together, helps a person to cross a leg when seated.