{"type": "func", "start": 8295436, "end": 8295516, "name": "EC_KEY_set_public_key", "pseudocode": "// \n// EC_KEY_set_public_key from 0x7e940c to 0x7e945c (80 bytes)\n// \n// 2 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e963c\n// > <???> @ 0x6175c\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_KEY_set_public_key(_DWORD *a1, int a2)\n{\n  int (*v3)(void); // r3\n  int result; // r0\n  int v6; // r0\n\n  v3 = *(int (**)(void))(*a1 + 28);\n  if ( !v3 || (result = v3()) != 0 )\n  {\n    EC_POINT_free(a1[4]);\n    v6 = EC_POINT_dup(a2, a1[3]);\n    a1[4] = v6;\n    return v6 != 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_KEY_set_public_key from 0x7e940c to 0x7e945c (80 bytes)\n; \n; 2 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e963c\n; > <???> @ 0x6175c\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x7e940c\nLDR             R3, [R0]                                               ; +0x4, 0x7e9410\nMOV             R4, R0                                                 ; +0x8, 0x7e9414\nLDR             R3, [R3,#0x1C]                                         ; +0xc, 0x7e9418\nMOV             R5, R1                                                 ; +0x10, 0x7e941c\nCMP             R3, #0                                                 ; +0x14, 0x7e9420\nBEQ             loc_7E9434                                             ; +0x18, 0x7e9424\nBLX             R3                                                     ; +0x1c, 0x7e9428\nCMP             R0, #0                                                 ; +0x20, 0x7e942c\nBEQ             locret_7E9458                                          ; +0x24, 0x7e9430\nLDR             R0, [R4,#0x10]                                         ; +0x28, 0x7e9434\nBL              EC_POINT_free                                          ; +0x2c, 0x7e9438\nMOV             R0, R5                                                 ; +0x30, 0x7e943c\nLDR             R1, [R4,#0xC]                                          ; +0x34, 0x7e9440\nBL              EC_POINT_dup                                           ; +0x38, 0x7e9444\nSTR             R0, [R4,#0x10]                                         ; +0x3c, 0x7e9448\nMOVS            R0, R0                                                 ; +0x40, 0x7e944c\nMOVNE           R0, #1                                                 ; +0x44, 0x7e9450\nPOP             {R3-R5,PC}                                             ; +0x48, 0x7e9454\nPOP             {R3-R5,PC}                                             ; +0x4c, 0x7e9458", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x7e963c", "<???> @ 0x6175c"], "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"}