{"type": "func", "start": 10478392, "end": 10478568, "name": "EC_KEY_oct2key", "pseudocode": "// \n// EC_KEY_oct2key from 0x9fe338 to 0x9fe3e8 (176 bytes)\n// \n// 4 xrefs:\n// > sub_9F8980 @ 0x9f8b40\n// > d2i_ECPrivateKey @ 0x9fc134\n// > o2i_ECPublicKey @ 0x9fc7ac\n// > <???> @ 0x7ab7c\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:36 +0000\n// \n\nint __fastcall EC_KEY_oct2key(_DWORD *a1, _BYTE *a2, int a3, int a4)\n{\n  int v5; // r0\n  int v7; // r1\n  int v9; // r3\n  _DWORD *v10; // r5\n  int result; // r0\n  int v12; // r0\n\n  if ( !a1 )\n    return 0;\n  v5 = a1[3];\n  if ( !v5 )\n    return 0;\n  v7 = a1[4];\n  v9 = a3;\n  v10 = a1;\n  if ( !v7 )\n  {\n    v12 = EC_POINT_new(v5);\n    v9 = a3;\n    v7 = v12;\n    v10[4] = v12;\n    if ( !v12 )\n      return 0;\n    v5 = v10[3];\n  }\n  if ( !EC_POINT_oct2point(v5, v7, a2, v9, a4) )\n    return 0;\n  result = 1;\n  if ( (**(_DWORD **)v10[3] & 2) == 0 )\n    v10[7] = *a2 & 0xFE;\n  return result;\n}", "assembly": "; \n; EC_KEY_oct2key from 0x9fe338 to 0x9fe3e8 (176 bytes)\n; \n; 4 xrefs:\n; > sub_9F8980 @ 0x9f8b40\n; > d2i_ECPrivateKey @ 0x9fc134\n; > o2i_ECPublicKey @ 0x9fc7ac\n; > <???> @ 0x7ab7c\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:36 +0000\n; \nSUBS            R12, R0, #0                                            ; +0x0, 0x9fe338\nBEQ             loc_9FE3D8                                             ; +0x4, 0x9fe33c\nLDR             R0, [R12,#0xC]                                         ; +0x8, 0x9fe340\nCMP             R0, #0                                                 ; +0xc, 0x9fe344\nBEQ             loc_9FE3D8                                             ; +0x10, 0x9fe348\nPUSH            {R4-R6,LR}                                             ; +0x14, 0x9fe34c\nMOV             R6, R1                                                 ; +0x18, 0x9fe350\nLDR             R1, [R12,#0x10]                                        ; +0x1c, 0x9fe354\nMOV             R4, R3                                                 ; +0x20, 0x9fe358\nCMP             R1, #0                                                 ; +0x24, 0x9fe35c\nSUB             SP, SP, #0x10                                          ; +0x28, 0x9fe360\nMOV             R3, R2                                                 ; +0x2c, 0x9fe364\nMOV             R5, R12                                                ; +0x30, 0x9fe368\nBEQ             loc_9FE3B0                                             ; +0x34, 0x9fe36c\nSTR             R4, [SP,#0x20+var_20]                                  ; +0x38, 0x9fe370\nMOV             R2, R6                                                 ; +0x3c, 0x9fe374\nBL              EC_POINT_oct2point                                     ; +0x40, 0x9fe378\nCMP             R0, #0                                                 ; +0x44, 0x9fe37c\nBEQ             loc_9FE3CC                                             ; +0x48, 0x9fe380\nLDR             R3, [R5,#0xC]                                          ; +0x4c, 0x9fe384\nLDR             R3, [R3]                                               ; +0x50, 0x9fe388\nLDR             R3, [R3]                                               ; +0x54, 0x9fe38c\nTST             R3, #2                                                 ; +0x58, 0x9fe390\nLDRBEQ          R3, [R6]                                               ; +0x5c, 0x9fe394\nMOVEQ           R0, #1                                                 ; +0x60, 0x9fe398\nBICEQ           R3, R3, #1                                             ; +0x64, 0x9fe39c\nMOVNE           R0, #1                                                 ; +0x68, 0x9fe3a0\nSTREQ           R3, [R5,#0x1C]                                         ; +0x6c, 0x9fe3a4\nADD             SP, SP, #0x10                                          ; +0x70, 0x9fe3a8\nPOP             {R4-R6,PC}                                             ; +0x74, 0x9fe3ac\nSTR             R2, [SP,#0x20+var_14]                                  ; +0x78, 0x9fe3b0\nBL              EC_POINT_new                                           ; +0x7c, 0x9fe3b4\nLDR             R3, [SP,#0x20+var_14]                                  ; +0x80, 0x9fe3b8\nCMP             R0, #0                                                 ; +0x84, 0x9fe3bc\nMOV             R1, R0                                                 ; +0x88, 0x9fe3c0\nSTR             R0, [R5,#0x10]                                         ; +0x8c, 0x9fe3c4\nBNE             loc_9FE3E0                                             ; +0x90, 0x9fe3c8\nMOV             R0, #0                                                 ; +0x94, 0x9fe3cc\nADD             SP, SP, #0x10                                          ; +0x98, 0x9fe3d0\nPOP             {R4-R6,PC}                                             ; +0x9c, 0x9fe3d4\nMOV             R0, #0                                                 ; +0xa0, 0x9fe3d8\nBX              LR                                                     ; +0xa4, 0x9fe3dc\nLDR             R0, [R5,#0xC]                                          ; +0xa8, 0x9fe3e0\nB               loc_9FE370                                             ; +0xac, 0x9fe3e4", "xrefs": ["sub_9F8980 @ 0x9f8b40", "d2i_ECPrivateKey @ 0x9fc134", "o2i_ECPublicKey @ 0x9fc7ac", "<???> @ 0x7ab7c"], "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"}