C language function:CryptExportKey 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’
* After the 4 bytes an export of the 'filef key (key used to encrypt/decrypt the file data, encrypted of course, can be decrypted by using the private key from the pub/priv key part in use) is written using [CryptExportKey()] with the SIMPLEBLOB blob type for export.......
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
if ( CryptExportKey(v3, v2, 1u, 0, 0, &pdwDataLen) ).......
http://blog.trustlook.com/2017/06/28/petya-ransomware-inspired-by-wannacry-hits-the-european-countries/
TITLE : gPetyah ransomware inspired by gWannaCryh hits European countries – Trustlook
if ( CryptExportKey(*(_DWORD *)(v1 + 20), *(_DWORD *)(v1 + 12), 1u, 0, v4, &pdwDataLen) ).......
http://blog.trustlook.com/2017/06/28/petya-ransomware-inspired-by-wannacry-hits-the-european-countries/
search Google

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