Aside from standard damage modifiers e.g. 2x Attack from Swords Dance and basic facts/stats like the typeless base-40 damage.
It doesn't seem to be affected by marvel scale: https://replay.pokemonshowdown.com/gen9anythinggoes-2082923083 (both dragonairs in the replay were the exact same besides the ability and item)
I also tested eviolite and metal powder, they don't seem to affect it either. https://replay.pokemonshowdown.com/gen9anythinggoes-2082929091 https://replay.pokemonshowdown.com/gen8anythinggoes-2082931200
For all the other factors this info is in the comments and bulbapedia:
Confusion damage is calculated as if it were a typeless physical move with a power of 40; it cannot score a critical hit, and does not receive STAB. Confusion damage is unaffected by Wonder Guard, Technician, and a held Life Orb. Badges affect confusion damage when they boost the user's physical Attack or Defense. It ignores burn and Technician as well.
Source: https://bulbapedia.bulbagarden.net/wiki/Confusion_(status_condition)
There is a table on the bulbapedia page for some things that work differently on different games.
Hope this helps.