{"type": "func", "start": 16942472, "end": 16942544, "name": "EVP_CIPHER_CTX_rand_key", "pseudocode": "// \n// EVP_CIPHER_CTX_rand_key from 0x1028588 to 0x10285d0 (72 bytes)\n// \n// 4 xrefs:\n// > PKCS7_dataInit @ 0x104aa68\n// > PKCS7_dataDecode @ 0x104b2f0\n// > cms_EncryptedContent_init_bio @ 0x10f92b8\n// > <???> @ 0xf0850\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:16:14 +0000\n// \n\n__int64 __fastcall EVP_CIPHER_CTX_rand_key(unsigned int *a1, __int64 a2)\n{\n  if ( (*(_QWORD *)(*(_QWORD *)a1 + 16LL) & 0x200) != 0 )\n    return EVP_CIPHER_CTX_ctrl((__int64)a1);\n  else\n    return (int)RAND_bytes(a2, a1[26]) > 0;\n}", "assembly": "; \n; EVP_CIPHER_CTX_rand_key from 0x1028588 to 0x10285d0 (72 bytes)\n; \n; 4 xrefs:\n; > PKCS7_dataInit @ 0x104aa68\n; > PKCS7_dataDecode @ 0x104b2f0\n; > cms_EncryptedContent_init_bio @ 0x10f92b8\n; > <???> @ 0xf0850\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:16:14 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x1028588\nMOV             X3, X1                                                 ; +0x4, 0x102858c\nMOV             X2, X0                                                 ; +0x8, 0x1028590\nMOV             X29, SP                                                ; +0xc, 0x1028594\nLDR             X1, [X0]                                               ; +0x10, 0x1028598\nLDR             X1, [X1,#0x10]                                         ; +0x14, 0x102859c\nTBNZ            W1, #9, loc_10285C0                                    ; +0x18, 0x10285a0\nLDR             W1, [X2,#0x68]                                         ; +0x1c, 0x10285a4\nMOV             X0, X3                                                 ; +0x20, 0x10285a8\nBL              RAND_bytes                                             ; +0x24, 0x10285ac\nCMP             W0, WZR                                                ; +0x28, 0x10285b0\nCSET            W0, GT                                                 ; +0x2c, 0x10285b4\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x30, 0x10285b8\nRET                                                                    ; +0x34, 0x10285bc\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0x10285c0\nMOV             W1, #6                                                 ; +0x3c, 0x10285c4\nMOV             W2, #0                                                 ; +0x40, 0x10285c8\nB               EVP_CIPHER_CTX_ctrl                                    ; +0x44, 0x10285cc", "xrefs": ["PKCS7_dataInit @ 0x104aa68", "PKCS7_dataDecode @ 0x104b2f0", "cms_EncryptedContent_init_bio @ 0x10f92b8", "<???> @ 0xf0850"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}