[Scripting][asm] Added a stats and executable building function.