(CNN) Republican lawmakers and political action committees that took money from Rudy Giuliani's two associates who are now at the center of the Ukraine scandal are distancing themselves from the donors facing criminal charges, according to a CNN survey.

Soviet-born businessmen Lev Parnas and Igor Fruman and their company, Global Energy Producers, gave more than $621,000 to various Republican political campaigns in the past two election cycles, including the 2018 midterms, which saw Republicans lose control of the House, according to the Federal Election Committee.

But many of those Republican campaigns and committees are giving away the donations after federal prosecutors indicted Parnas and Fruman, along with two other men, on charges of violating campaign finance laws and lying to the FEC. They have pleaded not guilty.

At least six campaigns said the tainted money will be, or has already been, donated to charity. CNN heard from nine of the 26 Republican lawmakers who directly received money from Parnas or Fruman about the allocation of these funds. Eight of these nine campaigns said they would not be keeping the money. The other campaigns and committees could not be reached for comment or did not respond to requests from CNN.

The communications director for the pro-Trump super PAC America First Action told CNN the committee put funds it had received from Global Energy Producers in a "segregated bank account" until the investigations are resolved. The company linked to Parnas and Fruman gave America First Action a total of $325,000 last year, the spokesman said.

Read More