decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
29
decomp/Agent_Release_x64/full/functions/0x1400c69b0.c
Normal file
29
decomp/Agent_Release_x64/full/functions/0x1400c69b0.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* 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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue