If we want to insert 0x322..322 into memory from bytecode we need to do PUSH32 __, MSTORE, PUSH20 __, MSTORE etc. Make a utility fn that would take arbitrary input and offset and would make return arrey of opcodes that would push mstore this input into memory.