Our extraction method for the M4 file structure is currently incomplete, but our tools are sufficient for extracting apps.
Step 1: assemble_m4.py (backup link)
The assemble_m4.py will divide the regions of the nor dump
python assemble_m4.py <file name>.bin
Example
python assemble_m4.py N506i-2_PF38F4462LLYDB0-f1.bin
NOTE: For V601N, you need to add the V601N extension.
python assemble_m4.py --add-extension --V601N-mode <file name>.bin
Example
python assemble_m4.py --add-extension --V601N-mode V601N_PF38F3352LLZDQ0-f1.bin
Step 2: For DoCoMo phones ONLY: convertForEmulator_mova_nec.py (backup link)
The convertForEmulator_mova_nec.py script will extract the DoJa files from the regions inside the firmware dump.
python convertForEmulator_mova_nec.py m4_out_dir model_name
Example
python convertForEmulator_mova_nec.py N506i-2_PF38F4462LLYDB0-f1.bin_extracted N506i