{"type": "func", "start": 8299064, "end": 8299140, "name": "EC_GROUP_get_cofactor", "pseudocode": "// \n// EC_GROUP_get_cofactor from 0x7ea238 to 0x7ea284 (76 bytes)\n// \n// 2 xrefs:\n// > ecdh_simple_compute_key @ 0x7ed768\n// > <???> @ 0x61a3c\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\nbool __fastcall EC_GROUP_get_cofactor(int a1, int a2)\n{\n  int v2; // r2\n\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( !v2 )\n    return 0;\n  if ( BN_copy(a2, v2) )\n    return !BN_is_zero(*(_DWORD *)(a1 + 12));\n  return 0;\n}", "assembly": "; \n; EC_GROUP_get_cofactor from 0x7ea238 to 0x7ea284 (76 bytes)\n; \n; 2 xrefs:\n; > ecdh_simple_compute_key @ 0x7ed768\n; > <???> @ 0x61a3c\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             R2, [R0,#0xC]                                          ; +0x0, 0x7ea238\nCMP             R2, #0                                                 ; +0x4, 0x7ea23c\nBEQ             loc_7EA274                                             ; +0x8, 0x7ea240\nPUSH            {R4,LR}                                                ; +0xc, 0x7ea244\nMOV             R4, R0                                                 ; +0x10, 0x7ea248\nMOV             R0, R1                                                 ; +0x14, 0x7ea24c\nMOV             R1, R2                                                 ; +0x18, 0x7ea250\nBL              BN_copy                                                ; +0x1c, 0x7ea254\nCMP             R0, #0                                                 ; +0x20, 0x7ea258\nBEQ             loc_7EA27C                                             ; +0x24, 0x7ea25c\nLDR             R0, [R4,#0xC]                                          ; +0x28, 0x7ea260\nBL              BN_is_zero                                             ; +0x2c, 0x7ea264\nCLZ             R0, R0                                                 ; +0x30, 0x7ea268\nMOV             R0, R0,LSR#5                                           ; +0x34, 0x7ea26c\nPOP             {R4,PC}                                                ; +0x38, 0x7ea270\nMOV             R0, #0                                                 ; +0x3c, 0x7ea274\nBX              LR                                                     ; +0x40, 0x7ea278\nMOV             R0, #0                                                 ; +0x44, 0x7ea27c\nPOP             {R4,PC}                                                ; +0x48, 0x7ea280", "xrefs": ["ecdh_simple_compute_key @ 0x7ed768", "<???> @ 0x61a3c"], "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"}