1. Preheat oven to 425 degrees F. Grease a 9 x 13-inch baking dish.
2. Heat butter in skillet over medium-high heat and sauté onions until golden. Set aside.
3. Combine eggs and buttermilk in a large bowl and mix until smooth. Stir in corn and muffin mix, blending well.
4. Turn into baking dish and spoon onion evenly over batter. Spread sour cream over onion and top with cheese. Bake until golden, about 30 minutes. Let stand 10 minutes before cutting.