I put a stick of butter in my wok at low heat, add 3-4 cloves of chopped garlic until it becomes aromatic. Add a couple teaspoons of black pepper and chicken bouillon and a pinch of sugar. Add pieces of cracked crab, turn heat up to medium and swish everything around until the seasoning has permeated into the meat of the crab. I then transfer the contents of the wok to a baking pan and bake in the oven at 350 degrees for about 30 minutes. I serve the crab with garlic noodles.
Do a Goggle search and you will find many recipes on the web. Choose one that appeals to you most and/or improvise to the easiest approach. It's not all that strictly critical or difficult to make oven roasted garlic crab.