https://bugs.winehq.org/show_bug.cgi?id=43453
--- Comment #10 from Anton Romanov theli.ua@gmail.com --- ok, so the bug comes from having schan_transport on a stack and setting the transport as a single pointer on a context. if those are split per enc/decrypt then the problem will be fixed.
I'll work on the patch when I have time unless someone beats me to it