Farishta Jami researched weapons and one-way flights to Kabul and wanted to join a branch of the so-called Islamic State.