Chop the prawns, garlic, ginger, onions and chilli and stick the lot in a food processor with the egg, soy and sesame oil. Pulse a few times until you have a lumpy paste (NOT a puree) - add some flour and stir in if too wet. Do not keep pulse or you end up with a runny mess.