To register a new binary format you have to issue the command

echo :name:type:offset:magic:mask:interpreter: > /proc/sys/fs/binfmt_misc/register

with appropriate name (the name for the /proc-dir entry), offset (defaults to 0, if omitted), magic, mask (which can be omitted, defaults to all 0xff) and last but not least, the interpreter that is to be invoked (for example and testing /bin/echo). Type can be M for usual magic matching or E for filename extension matching (give extension in place of magic).