{"type": "func", "start": 8311832, "end": 8312088, "name": "EC_POINT_oct2point", "pseudocode": "// \n// EC_POINT_oct2point from 0x7ed418 to 0x7ed518 (256 bytes)\n// \n// 5 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x7e6d9c\n// > EC_KEY_oct2key @ 0x7e9778\n// > EC_POINT_bn2point @ 0x88b510\n// > EC_POINT_bn2point @ 0x88b560\n// > <???> @ 0x614bc\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_POINT_oct2point(int a1, _DWORD *a2)\n{\n  _DWORD *v2; // r12\n\n  v2 = *(_DWORD **)a1;\n  if ( *(_DWORD *)(*(_DWORD *)a1 + 88) )\n  {\n    if ( v2 != (_DWORD *)*a2 )\n      goto LABEL_3;\n    if ( (*v2 & 1) == 0 )\n      return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 88))(a1);\n  }\n  else\n  {\n    if ( (*v2 & 1) == 0 )\n    {\n      ERR_put_error(16, 122, 66, \"crypto/ec/ec_oct.c\", 123);\n      return 0;\n    }\n    if ( v2 != (_DWORD *)*a2 )\n    {\nLABEL_3:\n      ERR_put_error(16, 122, 101, \"crypto/ec/ec_oct.c\", 127);\n      return 0;\n    }\n  }\n  if ( v2[1] == 406 )\n    return ec_GFp_simple_oct2point();\n  else\n    return ec_GF2m_simple_oct2point();\n}", "assembly": "; \n; EC_POINT_oct2point from 0x7ed418 to 0x7ed518 (256 bytes)\n; \n; 5 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x7e6d9c\n; > EC_KEY_oct2key @ 0x7e9778\n; > EC_POINT_bn2point @ 0x88b510\n; > EC_POINT_bn2point @ 0x88b560\n; > <???> @ 0x614bc\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             R12, [R0]                                              ; +0x0, 0x7ed418\nPUSH            {R4-R9,LR}                                             ; +0x4, 0x7ed41c\nLDR             R5, [R12,#0x58]                                        ; +0x8, 0x7ed420\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7ed424\nCMP             R5, #0                                                 ; +0x10, 0x7ed428\nMOV             R4, R0                                                 ; +0x14, 0x7ed42c\nMOV             LR, R1                                                 ; +0x18, 0x7ed430\nMOV             R8, R2                                                 ; +0x1c, 0x7ed434\nMOV             R9, R3                                                 ; +0x20, 0x7ed438\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0x7ed43c\nBEQ             loc_7ED4C4                                             ; +0x28, 0x7ed440\nLDR             R6, [R1]                                               ; +0x2c, 0x7ed444\nCMP             R12, R6                                                ; +0x30, 0x7ed448\nBEQ             loc_7ED47C                                             ; +0x34, 0x7ed44c\nMOV             R3, #0x7F                                              ; +0x38, 0x7ed450\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0x7ed454\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED470); \"crypto/ec/ec_oct.c\" ; +0x40, 0x7ed458\nMOV             R0, #0x10                                              ; +0x44, 0x7ed45c\nMOV             R1, #0x7A ; 'z'                                        ; +0x48, 0x7ed460\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0x7ed464\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0x7ed468\nBL              ERR_put_error                                          ; +0x54, 0x7ed46c\nMOV             R0, #0                                                 ; +0x58, 0x7ed470\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7ed474\nPOP             {R4-R9,PC}                                             ; +0x60, 0x7ed478\nLDR             R6, [R12]                                              ; +0x64, 0x7ed47c\nTST             R6, #1                                                 ; +0x68, 0x7ed480\nBEQ             loc_7ED4E0                                             ; +0x6c, 0x7ed484\nLDR             R2, [R12,#4]                                           ; +0x70, 0x7ed488\nLDR             R3, =0x196                                             ; +0x74, 0x7ed48c\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0x7ed490\nCMP             R2, R3                                                 ; +0x7c, 0x7ed494\nMOV             R0, R4                                                 ; +0x80, 0x7ed498\nMOV             R1, LR                                                 ; +0x84, 0x7ed49c\nMOV             R2, R8                                                 ; +0x88, 0x7ed4a0\nMOV             R3, R9                                                 ; +0x8c, 0x7ed4a4\nBEQ             loc_7ED4B8                                             ; +0x90, 0x7ed4a8\nADD             SP, SP, #0xC                                           ; +0x94, 0x7ed4ac\nPOP             {R4-R9,LR}                                             ; +0x98, 0x7ed4b0\nB               ec_GF2m_simple_oct2point                               ; +0x9c, 0x7ed4b4\nADD             SP, SP, #0xC                                           ; +0xa0, 0x7ed4b8\nPOP             {R4-R9,LR}                                             ; +0xa4, 0x7ed4bc\nB               ec_GFp_simple_oct2point                                ; +0xa8, 0x7ed4c0\nLDR             R3, [R12]                                              ; +0xac, 0x7ed4c4\nTST             R3, #1                                                 ; +0xb0, 0x7ed4c8\nBEQ             loc_7ED4F4                                             ; +0xb4, 0x7ed4cc\nLDR             R3, [R1]                                               ; +0xb8, 0x7ed4d0\nCMP             R12, R3                                                ; +0xbc, 0x7ed4d4\nBNE             loc_7ED450                                             ; +0xc0, 0x7ed4d8\nB               loc_7ED488                                             ; +0xc4, 0x7ed4dc\nMOV             R12, R5                                                ; +0xc8, 0x7ed4e0\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0x7ed4e4\nADD             SP, SP, #0xC                                           ; +0xd0, 0x7ed4e8\nPOP             {R4-R9,LR}                                             ; +0xd4, 0x7ed4ec\nBX              R12                                                    ; +0xd8, 0x7ed4f0\nMOV             R3, #0x7B ; '{'                                        ; +0xdc, 0x7ed4f4\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe0, 0x7ed4f8\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED514); \"crypto/ec/ec_oct.c\" ; +0xe4, 0x7ed4fc\nMOV             R0, #0x10                                              ; +0xe8, 0x7ed500\nMOV             R1, #0x7A ; 'z'                                        ; +0xec, 0x7ed504\nMOV             R2, #0x42 ; 'B'                                        ; +0xf0, 0x7ed508\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf4, 0x7ed50c\nBL              ERR_put_error                                          ; +0xf8, 0x7ed510\nB               loc_7ED470                                             ; +0xfc, 0x7ed514", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x7e6d9c", "EC_KEY_oct2key @ 0x7e9778", "EC_POINT_bn2point @ 0x88b510", "EC_POINT_bn2point @ 0x88b560", "<???> @ 0x614bc"], "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"}