{"type": "func", "start": 8301344, "end": 8301428, "name": "EC_GROUP_dup", "pseudocode": "// \n// EC_GROUP_dup from 0x7eab20 to 0x7eab74 (84 bytes)\n// \n// 4 xrefs:\n// > sub_7E47E0 @ 0x7e47f0\n// > EC_KEY_set_group @ 0x7e935c\n// > sub_88B108 @ 0x88b154\n// > <???> @ 0x6116c\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 EC_GROUP_dup(int **a1)\n{\n  int *v2; // r0\n  int v3; // r5\n  int v4; // r4\n  int result; // r0\n\n  if ( !a1 )\n    return 0;\n  v2 = (int *)EC_GROUP_new(*a1);\n  v3 = (int)v2;\n  if ( !v2 )\n    return 0;\n  v4 = EC_GROUP_copy(v2, (int)a1);\n  result = v3;\n  if ( !v4 )\n  {\n    EC_GROUP_free(v3);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_dup from 0x7eab20 to 0x7eab74 (84 bytes)\n; \n; 4 xrefs:\n; > sub_7E47E0 @ 0x7e47f0\n; > EC_KEY_set_group @ 0x7e935c\n; > sub_88B108 @ 0x88b154\n; > <???> @ 0x6116c\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\nCMP             R0, #0                                                 ; +0x0, 0x7eab20\nBEQ             loc_7EAB64                                             ; +0x4, 0x7eab24\nPUSH            {R3-R5,LR}                                             ; +0x8, 0x7eab28\nMOV             R4, R0                                                 ; +0xc, 0x7eab2c\nLDR             R0, [R0]                                               ; +0x10, 0x7eab30\nBL              EC_GROUP_new                                           ; +0x14, 0x7eab34\nSUBS            R5, R0, #0                                             ; +0x18, 0x7eab38\nBEQ             loc_7EAB6C                                             ; +0x1c, 0x7eab3c\nMOV             R1, R4                                                 ; +0x20, 0x7eab40\nBL              EC_GROUP_copy                                          ; +0x24, 0x7eab44\nSUBS            R4, R0, #0                                             ; +0x28, 0x7eab48\nMOV             R0, R5                                                 ; +0x2c, 0x7eab4c\nBNE             locret_7EAB60                                          ; +0x30, 0x7eab50\nBL              EC_GROUP_free                                          ; +0x34, 0x7eab54\nMOV             R0, R4                                                 ; +0x38, 0x7eab58\nPOP             {R3-R5,PC}                                             ; +0x3c, 0x7eab5c\nPOP             {R3-R5,PC}                                             ; +0x40, 0x7eab60\nMOV             R0, #0                                                 ; +0x44, 0x7eab64\nBX              LR                                                     ; +0x48, 0x7eab68\nMOV             R0, #0                                                 ; +0x4c, 0x7eab6c\nPOP             {R3-R5,PC}                                             ; +0x50, 0x7eab70", "xrefs": ["sub_7E47E0 @ 0x7e47f0", "EC_KEY_set_group @ 0x7e935c", "sub_88B108 @ 0x88b154", "<???> @ 0x6116c"], "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"}