Finding the dll is not hardening at all. It is a security risk.
Hence since about 30 years ago MS provided relocation for such code.
30 YEARS.Trying to re-invent wheels, you usually come up with a Hexagon at best....
Most SSL libraries allow for relocation for precisely that.
If they don't, don't use.
Finding the dll is easy, but using and
abusing it should be difficult. And it is....