> **what international law(s) are at play here?**

In the case of Assange being removed from the Ecuadorian embassy with the consent of the ambassador -- only the Vienna Convention.

Subsequent likely proceedings are not covered in this answer but, for example, the Universal Decaration on Human Rights can apply to extradition proceedings.

---

Citizenship and Asylum
----------------------

Prior to 2017 Assange was an **Australian** citizen in the **United Kingdom** seeking Asylum in the embassy of **Ecuador** against possible extradition to **Sweden** because he feared extradition to the **United States**.

As phoog commented, in 2017 Assange obtained Ecuadorian citizenship. International laws do not provide for people to  be an international refugee in their own country  -- or at least that is not usually seen as an international matter. If Assange was an Ecuadorian citizen in Ecuadorian territory, the rest of this answer would not apply.

> **Can the mere act of withdrawing asylum really be illegal?**

International law applies where someone outside their home country applies for asylum in the country where they are present.

Some international laws do cover the situation where asylum or refugee-status is withdrawn or where someone is expelled from a country.

1928 Convention on Asylum
-------------------------

The [1928 Convention on Asylum](https://www.refworld.org/docid/3ae6b37923.html) was signed by Ecuador. The UK is not a signatory for geographical reasons so it does not apply to the UK nor to UK territory. 

It says

> Signed in Havana, February 20, 1928, at the Sixth International Conference of
American States

...

> Article 1.-
It is not permissible for States to grant asylum in **legations**, warships, military
camps or military aircraft, to persons accused or condemned for common crimes,
or to deserters from the army or navy.

> Persons accused of or condemned for **common crimes** taking refuge in any of the
places mentioned in the preceding paragraph, shall be surrendered upon request
of the local government.

Which suggests someone who is sheltering in a legation should be surrendered if they were accused of the common crime of failure to appear in court after being granted bail.

It doesn't explicitly say anything about withdrawing asylum though.


---

1951 Convention Relating to the Status of Refugees
--------------------------------------------------

I believe this applies to both UK territory and to Ecuadorian territory.

###Crime

Someone who has committed a serious crime is excluded:

> F. The provisions of this Convention shall not apply to any person with
respect to whom there are serious reasons for considering that:

...

> (b) he has committed a serious non-political crime outside the country of
refuge prior to his admission to that country as a refugee;


A crime punishable by a year in prison may be serious enough.

### New citizenship

> C. This Convention shall cease to apply to any person falling under the
terms of section A if:  
> (1) He has voluntarily re-availed himself of the protection of the country
of his nationality; or
> (2) Having lost his nationality, he has voluntarily re-acquired it; or
> (3) He has acquired a new nationality, and enjoys the protection of the
country of his new nationality; or ...

Assange acquired Ecuadorian citizenship in 2017.

### Expulsion

Sections 32 and 33 cover expulsion:

> Article 32  
> expulsion  
> 1. The Contracting States shall not expel a refugee lawfully in their territory save on grounds of national security or public order.

Of course there is another reason this does not apply to Assange --  he was not in the territory of Ecuador.

Being moved from one part of London to another part of London does not constitute expulsion from a country. Certainly not from Ecuador.


----


1954 Caracas Convention on Diplomatic Asylum
---------------------------------------------

The UK is not a signatory to this since it is not a member of the Organization of American States. So this does not apply to the UK or to actions on UK territory.

> The governments of the Member States of the Organization of American
States, desirous of concluding a Convention on Diplomatic Asylum, have agreed
to the following articles:


> Article I. Asylum granted in legations, war vessels, and military camps or
aircraft, to persons being sought for political reasons or for political offenses shall be respected by the territorial State in accordance with the provisions of this Convention.

...

> Article III. It is not lawful to grant asylum to persons who, at the time of
requesting it, are under indictment or on trial for common offenses or have been
convicted by competent regular courts and have not served the respective
sentence, nor to deserters from land, sea, and air forces, save when the acts giving rise to the request for asylum, whatever the case may be, are clearly of a political nature.

At the time of his Asylum request, I believe Assange was indicted for extradition to Sweden on charges of rape. Assange promised the court he would show up in court at the specified date for this matter to be considered.

By not showing up, Assange became guilty of the crime of failure to appear.