{"type": "func", "start": 10481208, "end": 10481284, "name": "EC_GROUP_get_cofactor", "pseudocode": "// \n// EC_GROUP_get_cofactor from 0x9fee38 to 0x9fee84 (76 bytes)\n// \n// 2 xrefs:\n// > ecdh_simple_compute_key @ 0xa02368\n// > <???> @ 0x7b4bc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:37 +0000\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 0x9fee38 to 0x9fee84 (76 bytes)\n; \n; 2 xrefs:\n; > ecdh_simple_compute_key @ 0xa02368\n; > <???> @ 0x7b4bc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:37 +0000\n; \nLDR             R2, [R0,#0xC]                                          ; +0x0, 0x9fee38\nCMP             R2, #0                                                 ; +0x4, 0x9fee3c\nBEQ             loc_9FEE74                                             ; +0x8, 0x9fee40\nPUSH            {R4,LR}                                                ; +0xc, 0x9fee44\nMOV             R4, R0                                                 ; +0x10, 0x9fee48\nMOV             R0, R1                                                 ; +0x14, 0x9fee4c\nMOV             R1, R2                                                 ; +0x18, 0x9fee50\nBL              BN_copy                                                ; +0x1c, 0x9fee54\nCMP             R0, #0                                                 ; +0x20, 0x9fee58\nBEQ             loc_9FEE7C                                             ; +0x24, 0x9fee5c\nLDR             R0, [R4,#0xC]                                          ; +0x28, 0x9fee60\nBL              BN_is_zero                                             ; +0x2c, 0x9fee64\nCLZ             R0, R0                                                 ; +0x30, 0x9fee68\nMOV             R0, R0,LSR#5                                           ; +0x34, 0x9fee6c\nPOP             {R4,PC}                                                ; +0x38, 0x9fee70\nMOV             R0, #0                                                 ; +0x3c, 0x9fee74\nBX              LR                                                     ; +0x40, 0x9fee78\nMOV             R0, #0                                                 ; +0x44, 0x9fee7c\nPOP             {R4,PC}                                                ; +0x48, 0x9fee80", "xrefs": ["ecdh_simple_compute_key @ 0xa02368", "<???> @ 0x7b4bc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}