C language function:CryptGenKey sample codes

Search sample code in the internet.It is the result.


TITLE : 0x3a - Security Specialist and programmer by trade - Analysis of a piece of ransomware in development: the story of ‘CryptoApp’
* A 'filef key (MSDN will refer to it as s session key) is generated by calling [CryptGenKey()] using the previously initialized Cryptographic provider and using PROV_RSA_FULL.......
http://blog.0x3a.com/post/126900680679/analysis-of-a-piece-of-ransomware-in-development


TITLE : gPetyah ransomware inspired by gWannaCryh hits European countries – Trustlook
v5 = CryptGenKey(*(_DWORD *)(a1 + 8), 0x660Eu, 1u, (HCRYPTKEY *)(a1 + 20));.......
http://blog.trustlook.com/2017/06/28/petya-ransomware-inspired-by-wannacry-hits-the-european-countries/
search Google

https://www.google.com/#q=CryptGenKey