Is it necessary to cook soaked dried soy beans before fermenting them? 
No.  Both tofu and miso require cooking the soybeans to work. For miso, the soybeans must be mashed into a paste, which doesn't really work with raw soybeans.  Further, the koji culture grows on the starches and sugars present in cooked soybeans, not raw ones.  So creating a miso from raw soybeans would require you to obtain a different fungal culture designed for them, and the result probably wouldn't be miso. Tofu is made through soymilk, which must then be boiled to make it coagulate.  So while the soymilk itself is made with raw soybeans, if you don't boil it, you don't get tofu, just thickened soymilk. Also note that raw soybeans are poisonous, so in addition to producing a product, you'd have to be sure that any fermentation process you cultivated would successfully breakdown all lectins and protease inhibitors in the beans.  While fermentation is known to break down the saponins, the other two unhealthful chemicals usually require heat. 