{"type": "func", "start": 8402092, "end": 8402160, "name": "EVP_CIPHER_CTX_rand_key", "pseudocode": "// \n// EVP_CIPHER_CTX_rand_key from 0x8034ac to 0x8034f0 (68 bytes)\n// \n// 4 xrefs:\n// > PKCS7_dataInit @ 0x826df0\n// > PKCS7_dataDecode @ 0x827728\n// > cms_EncryptedContent_init_bio @ 0x8cf608\n// > <???> @ 0x6359c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall EVP_CIPHER_CTX_rand_key(_DWORD *a1, int a2)\n{\n  if ( (*(_DWORD *)(*a1 + 16) & 0x200) != 0 )\n    return EVP_CIPHER_CTX_ctrl((int)a1);\n  else\n    return RAND_bytes(a2, a1[22]) > 0;\n}", "assembly": "; \n; EVP_CIPHER_CTX_rand_key from 0x8034ac to 0x8034f0 (68 bytes)\n; \n; 4 xrefs:\n; > PKCS7_dataInit @ 0x826df0\n; > PKCS7_dataDecode @ 0x827728\n; > cms_EncryptedContent_init_bio @ 0x8cf608\n; > <???> @ 0x6359c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, [R0]                                               ; +0x0, 0x8034ac\nMOV             R2, R0                                                 ; +0x4, 0x8034b0\nLDR             R3, [R3,#0x10]                                         ; +0x8, 0x8034b4\nTST             R3, #0x200                                             ; +0xc, 0x8034b8\nBNE             loc_8034E0                                             ; +0x10, 0x8034bc\nPUSH            {R4,LR}                                                ; +0x14, 0x8034c0\nMOV             R0, R1                                                 ; +0x18, 0x8034c4\nLDR             R1, [R2,#0x58]                                         ; +0x1c, 0x8034c8\nBL              RAND_bytes                                             ; +0x20, 0x8034cc\nCMP             R0, #0                                                 ; +0x24, 0x8034d0\nMOVLE           R0, #0                                                 ; +0x28, 0x8034d4\nMOVGT           R0, #1                                                 ; +0x2c, 0x8034d8\nPOP             {R4,PC}                                                ; +0x30, 0x8034dc\nMOV             R3, R1                                                 ; +0x34, 0x8034e0\nMOV             R2, #0                                                 ; +0x38, 0x8034e4\nMOV             R1, #6                                                 ; +0x3c, 0x8034e8\nB               EVP_CIPHER_CTX_ctrl                                    ; +0x40, 0x8034ec", "xrefs": ["PKCS7_dataInit @ 0x826df0", "PKCS7_dataDecode @ 0x827728", "cms_EncryptedContent_init_bio @ 0x8cf608", "<???> @ 0x6359c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}