Before you begin
The color filter in front of the camera (under the lens) had come loose. This resulted in the image partly having a strong green tint. Teardown of the camera with reattaching the color filter. Many webcams seem to have a similar design, so this guide might be helpful to others. To replace the lens, perform step 5 instead of step 4.