AQ operates freely in Iran, Saudi Arabia, Africa and even, I suspect, are expanding in China. And they certainly have the UN and the WH.
India, China to hold first dialogue on Afghanistan
China's concerns over US pullout from Afghanistan arises out of its USD three billion dollars investments in that country, besides its fears of a adverse impact on its Muslim Uygur dominated Xinjiang province, which border Afghanistan as well as Pakistan Occupied Kashmir (POK).
I'm sure the Chinese are well aware of it.