{"type": "func", "start": 14237660, "end": 14237912, "name": "EC_POINT_oct2point", "pseudocode": "// \n// EC_POINT_oct2point from 0xd93fdc to 0xd940d8 (252 bytes)\n// \n// 5 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0xd8e108\n// > EC_KEY_oct2key @ 0xd906cc\n// > EC_POINT_bn2point @ 0xe34e68\n// > EC_POINT_bn2point @ 0xe34ebc\n// > <???> @ 0xa5b70\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\n__int64 __fastcall EC_POINT_oct2point(__int64 a1, _QWORD *a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  _DWORD *v5; // x5\n  unsigned int (*v6)(void); // x8\n\n  v5 = *(_DWORD **)a1;\n  v6 = *(unsigned int (**)(void))(*(_QWORD *)a1 + 168LL);\n  if ( v6 )\n  {\n    if ( v5 != (_DWORD *)*a2 )\n      goto LABEL_3;\n    if ( (*v5 & 1) == 0 )\n      return v6();\n  }\n  else\n  {\n    if ( (*v5 & 1) == 0 )\n    {\n      ERR_put_error(16, 122, 66, \"crypto/ec/ec_oct.c\", 123);\n      return 0;\n    }\n    if ( v5 != (_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 ( v5[1] == 406 )\n    return ec_GFp_simple_oct2point(a1, a2, a3, a4, a5);\n  else\n    return ec_GF2m_simple_oct2point(a1, a2, a3, a4, a5);\n}", "assembly": "; \n; EC_POINT_oct2point from 0xd93fdc to 0xd940d8 (252 bytes)\n; \n; 5 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0xd8e108\n; > EC_KEY_oct2key @ 0xd906cc\n; > EC_POINT_bn2point @ 0xe34e68\n; > EC_POINT_bn2point @ 0xe34ebc\n; > <???> @ 0xa5b70\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd93fdc\nMOV             X7, X0                                                 ; +0x4, 0xd93fe0\nMOV             X6, X1                                                 ; +0x8, 0xd93fe4\nMOV             X29, SP                                                ; +0xc, 0xd93fe8\nLDR             X5, [X0]                                               ; +0x10, 0xd93fec\nMOV             X10, X2                                                ; +0x14, 0xd93ff0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x18, 0xd93ff4\nMOV             X11, X3                                                ; +0x1c, 0xd93ff8\nMOV             X12, X4                                                ; +0x20, 0xd93ffc\nLDR             X8, [X5,#0xA8]                                         ; +0x24, 0xd94000\nCBZ             X8, loc_D94084                                         ; +0x28, 0xd94004\nLDR             X9, [X1]                                               ; +0x2c, 0xd94008\nCMP             X5, X9                                                 ; +0x30, 0xd9400c\nB.EQ            loc_D94044                                             ; +0x34, 0xd94010\nADRP            X3, #aCryptoEcEcOctC@PAGE; \"crypto/ec/ec_oct.c\"        ; +0x38, 0xd94014\nMOV             W0, #0x10                                              ; +0x3c, 0xd94018\nMOV             W1, #0x7A ; 'z'                                        ; +0x40, 0xd9401c\nMOV             W2, #0x65 ; 'e'                                        ; +0x44, 0xd94020\nADD             X3, X3, #aCryptoEcEcOctC@PAGEOFF; \"crypto/ec/ec_oct.c\" ; +0x48, 0xd94024\nMOV             W4, #0x7F                                              ; +0x4c, 0xd94028\nMOV             W19, #0                                                ; +0x50, 0xd9402c\nBL              ERR_put_error                                          ; +0x54, 0xd94030\nMOV             W0, W19                                                ; +0x58, 0xd94034\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0xd94038\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0xd9403c\nRET                                                                    ; +0x64, 0xd94040\nLDR             W9, [X5]                                               ; +0x68, 0xd94044\nTBZ             W9, #0, loc_D940A0                                     ; +0x6c, 0xd94048\nLDR             W0, [X5,#4]                                            ; +0x70, 0xd9404c\nMOV             X1, X6                                                 ; +0x74, 0xd94050\nMOV             X2, X10                                                ; +0x78, 0xd94054\nMOV             X3, X11                                                ; +0x7c, 0xd94058\nCMP             W0, #0x196                                             ; +0x80, 0xd9405c\nMOV             X4, X12                                                ; +0x84, 0xd94060\nMOV             X0, X7                                                 ; +0x88, 0xd94064\nB.EQ            loc_D94078                                             ; +0x8c, 0xd94068\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x90, 0xd9406c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x94, 0xd94070\nB               ec_GF2m_simple_oct2point                               ; +0x98, 0xd94074\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x9c, 0xd94078\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa0, 0xd9407c\nB               ec_GFp_simple_oct2point                                ; +0xa4, 0xd94080\nLDR             W0, [X5]                                               ; +0xa8, 0xd94084\nAND             W19, W0, #1                                            ; +0xac, 0xd94088\nTBZ             W0, #0, loc_D940B8                                     ; +0xb0, 0xd9408c\nLDR             X0, [X1]                                               ; +0xb4, 0xd94090\nCMP             X5, X0                                                 ; +0xb8, 0xd94094\nB.NE            loc_D94014                                             ; +0xbc, 0xd94098\nB               loc_D9404C                                             ; +0xc0, 0xd9409c\nBLR             X8                                                     ; +0xc4, 0xd940a0\nMOV             W19, W0                                                ; +0xc8, 0xd940a4\nMOV             W0, W19                                                ; +0xcc, 0xd940a8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xd0, 0xd940ac\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xd4, 0xd940b0\nRET                                                                    ; +0xd8, 0xd940b4\nADRP            X3, #aCryptoEcEcOctC@PAGE; \"crypto/ec/ec_oct.c\"        ; +0xdc, 0xd940b8\nMOV             W0, #0x10                                              ; +0xe0, 0xd940bc\nMOV             W1, #0x7A ; 'z'                                        ; +0xe4, 0xd940c0\nMOV             W2, #0x42 ; 'B'                                        ; +0xe8, 0xd940c4\nADD             X3, X3, #aCryptoEcEcOctC@PAGEOFF; \"crypto/ec/ec_oct.c\" ; +0xec, 0xd940c8\nMOV             W4, #0x7B ; '{'                                        ; +0xf0, 0xd940cc\nBL              ERR_put_error                                          ; +0xf4, 0xd940d0\nB               loc_D94034                                             ; +0xf8, 0xd940d4", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0xd8e108", "EC_KEY_oct2key @ 0xd906cc", "EC_POINT_bn2point @ 0xe34e68", "EC_POINT_bn2point @ 0xe34ebc", "<???> @ 0xa5b70"], "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"}