Does Octopus deploy use MSDeploy or something else to publish the content to web app? I read their article and couldn't find anything substantial.
Yes, it uses MSDeploy.
You can see some evidence in the Calamari repository (which is open source).