According to
Eurekalert, the CB2 receptor is the molecular link through which cannabis's properties are manifested. Current anti-viral therapies could be more effective when the HIV-1 infection is diminished in this way.
According to
Medical Daily, the way the process works is by interaction with the CB2 receptor, specifically the macrophages, which is a type of white blood cell in people. Macrophages work by surrounding damaged cells and then engulfing them, while at the same time alerting lymphocytes when there are new dangers.
According to
Wired, synthetic versions of THC, have been developed but only for research purposes, and further research is needed.
The study can be found
here.