add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
29
decomp/AgentManager_Release_x64/full/functions/0x1400d57e0.c
Normal file
29
decomp/AgentManager_Release_x64/full/functions/0x1400d57e0.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400d57e0 FUN_1400d57e0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
DWORD FUN_1400d57e0(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