29 lines
911 B
C
29 lines
911 B
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x1400c69b0 FUN_1400c69b0
|
|
* Pseudocode, not original source. */
|
|
|
|
DWORD FUN_1400c69b0(BYTE *param_1,DWORD param_2)
|
|
|
|
{
|
|
BOOL BVar1;
|
|
HCRYPTPROV local_res18 [2];
|
|
|
|
local_res18[0] = 0;
|
|
BVar1 = CryptAcquireContextW
|
|
(local_res18,(LPCWSTR)0x0,L"Microsoft Base Cryptographic Provider v1.0",1,
|
|
0xf0000020);
|
|
if ((BVar1 == 0) &&
|
|
(BVar1 = CryptAcquireContextW
|
|
(local_res18,(LPCWSTR)0x0,L"Microsoft Base Cryptographic Provider v1.0",1,
|
|
0xf0000028), BVar1 == 0)) {
|
|
return 0;
|
|
}
|
|
BVar1 = CryptGenRandom(local_res18[0],param_2,param_1);
|
|
if (BVar1 != 1) {
|
|
CryptReleaseContext(local_res18[0],0);
|
|
return 0;
|
|
}
|
|
CryptReleaseContext(local_res18[0],0);
|
|
return param_2;
|
|
}
|
|
|