Most of the hatred comes from Saudi Arabia and sorry the USA has one of the best record of funding terror groups . Be it the endless funding for the IRA or funding what went on to become Al Qaeda .
Admittedly my memory of the IRA isn't top notch, though If one is referring to programs such as NORAID, those were started by Irish Americans and largely funded through such shadow charities, not too dissimilar to the islamic shadow charities used to fund terrorists. However in both cases, a charity isn't a government and NORAID was largely funded by civilians and actively pursued the US federal government. It's one thing to say the IRA derived some funds from the US, it's an entirely different argument to say the US government funded the IRA.
The Al-Qaeda part is one of those myths that get oft repeated so much that people actually start to simply believe it. Usually in this case I'll get a link to Project Cyclone and some doctored videos, someone will mentioned Muhajideen and call it a day. All of which however ignores the context of time and details privy to actual events.
In this case, there wasn't a single rebellion going on in Afghanistan during the Soviet invasion. There were 2. On one side, we had a coalition of warlords and other ethnic groups who were native to the country fighting against the communist government. Many of the ethnic groups shared the same desires and goals as the US did in this situation. They actively supported women's rights, the right to self determination through democratic principles, the free market ect...The CIA had gotten a bit of a black eye for its work in Guatemala earlier and didn't want to be caught in the cross hairs again. Pakistan, fearing the soviet presence was a pre empt for an invasion of Pakistan, hooked up with the US and together they worked out a plan.
The US would provide additional funds to the Pakistani's, though the US was not allowed to dictate how the funds and equipment was dispersed. As a large part of Afghanistan is Pashtun like Pakistan was, they had a vested interest in supporting the local warlords, though did disperse plenty of funding to the other ethnicity on behalf of the US. During this time, Pakistan explicitly forbade US intelligence work in Afghanistan so the CIA only had about 7-10 contacts on the ground at any time keeping track of movements.
This is of course where things get muddy. Saudi Arabia had approached the US about funding it's own force of fighters, the Afghan Arabs, which were flooding Afghanistan from neighboring islamic countries. The US took one look at them and told Saudi Arabia that is was dumb and they would get no money because of the prevalent radical nature among their ranks. Saudi Arabia said fine and decided to use its own intelligence services to funnel money over. Meanwhile OBL was using his piggy bank of an inheritance from his family's business to fund himself and numerous islamic men set up charities in other nations to divert money over to the Arab Afghans.
The Arab Afghans were NOT the same as the native Afghan Rebels. Point aside, this little funding game went on until the Russians called it quits and the communist government fell. The CIA had kept tight watch over the money transferred to ensure it was going to the right places. While members of various tribes DID go on to join what would eventually become the Taliban later, the US itself never funded the Afghan Arabs which would eventually link up to form Al Qaeda.
One thing leads to another. The US leaves and stops bringing money into the country. The UN gets called in and the various peoples meet together to form a new government which is in a few short years overthrown by a Taliban force funded and trained by the Pakistani military. We still maintain a very good relationship with the peoples of the Norther Alliance. Shit happens here and there a bunch of crazy islamists now rule the majority of Afghanistan and their Pashtun heritage ensures that they get help from Pakistan who also helps build training camps for Al Qaeda. Eventually 9/11 happens, we tell Afghanistan to hand him over, they say no, we invade, Pakistan promised to stop helping Al Qaeda but continued to anyway, we find OBL and kill him eventually and piss off Pakistan but fuck them and now we are in 2016.