Mexico's president, Enrique Peña Nieto, at a signing ceremony among the Pacific Alliance at the Climate Change Conference in Lima, Peru. Juan Karita/AP

In 2015, a Mexican contractor — and a close friend of Mexican President Enrique Peña Nieto — moved roughly $100 million into accounts outside the country amid a corruption probe, according to details posted online by the International Consortium of Investigative Journalists (ICIJ).

The documents describing the transactions — which Business Insider has not seen — were part of a massive trove of financial documents revealing the offshore holdings of public officials, businesspeople, and other celebrities.

The records leaked by an international group of media outlets come from the Panama-based international law firm Mossack Fonseca, a global firm that also provides trust services and appears to have many high-profile clients.

One of those clients, Juan Armando Hinojosa Cantú, the contractor in question, enlisted Mossack Fonesca to help him create trusts for accounts worth $100 million after the Mexican government launched an investigation into allegations of special favors given to the Mexican president and his wife, according to an analysis of the documents by ICIJ.

That contractor's companies have won more than 80 government contracts and received at least $2.8 billion in state money, The New York Times reported last year.

In late 2014, Mexican journalists reported that Peña Nieto's wife, Angelica Rivera, had gotten a $4 million loan and bought a $7 million home in an upscale Mexico City neighborhood from one of Hinojosa's firms. The home was "built to their specifications on unusually favorable terms," according to The Times.

The scandal over the first family's home purchase stayed in the spotlight, and in February 2015, the federal comptroller, Virgilio Andrade, was appointed by Peña Nieto to investigate the alleged wrongdoing. Andrade is friends with Mexican Finance Minister Luis Videgaray, who was also implicated in the scandal, and he sits on Peña Nieto's cabinet.

Mexican Finance Minister Luis Videgaray speaks during an official ceremony at the National Palace in Mexico City. Thomson Reuters

Hinojosa started moving his money 42 days after the Mexican government opened its investigation into the possible conflict of interest involved in the first family's home purchase, according to Mexican news site Aristegui Noticias, which saw the Mossack Fonseca documents.

On July 1, 2015, an adviser at financial services firm D'Orleans Bourbon & Associates wrote to Mossack Fonseca, asking for help establishing a trust in New Zealand on behalf of Hinojosa, according to a screenshot of the email obtained by Mexico City-based newspaper Proceso.

The email requested secrecy and said that the transaction — which would help the client with the "restructure of his patrimonial vehicles outside his country of residence" — was urgent, according to Proceso.

The lawyer who wrote the email said that Hinojosa had quite a "number of people who greatly dislike him" and that there was "a great deal of negative publicity surrounding the client."

The email also underscored Hinojosa's importance, saying that he was "one of the most prominent business man in Mexico," according to Proceso.

Grupo Higa is one of Juan Hinojosa's main companies. http://www.grupohiga.com.mx/

Mossack Fonseca, according to Proceso, "participated in the design of an international network that consisted of the creation of British companies, Dutch foundations, and New Zealand trusts." The communications stated that the $100 million in question was "only a small part" of Hinojosa's portfolio.

When Mossack Fonseca asked for clarification about Hinojosa's role in the scandal ongoing in Mexico at that time, the firm replied that many of the newspapers linking Hinojosa to Peña Nieto were "owned by some business rivals" of Hinojosa, like Carlos Slim, who owns part of The New York Times.

In August 2015, Andrade cleared the subjects of his investigation — "his friend, his boss, and his boss's wife" — of wrongdoing.

The president of Mexico, Enrique Peña Nieto, and first lady Angelica Rivera Hurtado arrive at Brisbane Airport ahead of the G-20 summit in Brisbane, Australia. G20 Australia/Patrick Hamilton/AP

Allegations of influence-peddling have hurt the Mexican president's approval ratings. In August 2015, his overall approval rating was 44%, down from 51% the year before. On the issue of dealing with corruption, Peña Nieto's approval fell to 27%, down from 42% in 2014.

Hinojosa hasn't been charged with a crime, and anonymous company structures hidden in offshore holdings are not illegal. The documents released, however, do show how far high-level politicians and other figures have gone to conceal their wealth and avoid taxes and other scrutiny. Journalists who received the documents said that the activities revealed could offer evidence of money laundering, sanctions evasion, drug deals, and other crimes.

Numerous world leaders, their families, and others implicated by the documents have denied wrongdoing, and multiple governments have opened investigations into the allegations.

A memo from a Mossack Fonseca partner in the leaked documents reads, "Ninety-five per cent of our work coincidentally consists in selling vehicles to avoid taxes," according to The Guardian.