Producer of controversial Pegasus phone hacking software undergoing large scale reorganization amid bid to regroup after years of negative publicity, blacklists and lawsuits