{"type": "func", "start": 10493976, "end": 10494232, "name": "EC_POINT_oct2point", "pseudocode": "// \n// EC_POINT_oct2point from 0xa02018 to 0xa02118 (256 bytes)\n// \n// 5 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x9fb99c\n// > EC_KEY_oct2key @ 0x9fe378\n// > EC_POINT_bn2point @ 0xaa0110\n// > EC_POINT_bn2point @ 0xaa0160\n// > <???> @ 0x7af3c\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:38 +0000\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 0xa02018 to 0xa02118 (256 bytes)\n; \n; 5 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x9fb99c\n; > EC_KEY_oct2key @ 0x9fe378\n; > EC_POINT_bn2point @ 0xaa0110\n; > EC_POINT_bn2point @ 0xaa0160\n; > <???> @ 0x7af3c\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:38 +0000\n; \nLDR             R12, [R0]                                              ; +0x0, 0xa02018\nPUSH            {R4-R9,LR}                                             ; +0x4, 0xa0201c\nLDR             R5, [R12,#0x58]                                        ; +0x8, 0xa02020\nSUB             SP, SP, #0xC                                           ; +0xc, 0xa02024\nCMP             R5, #0                                                 ; +0x10, 0xa02028\nMOV             R4, R0                                                 ; +0x14, 0xa0202c\nMOV             LR, R1                                                 ; +0x18, 0xa02030\nMOV             R8, R2                                                 ; +0x1c, 0xa02034\nMOV             R9, R3                                                 ; +0x20, 0xa02038\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0xa0203c\nBEQ             loc_A020C4                                             ; +0x28, 0xa02040\nLDR             R6, [R1]                                               ; +0x2c, 0xa02044\nCMP             R12, R6                                                ; +0x30, 0xa02048\nBEQ             loc_A0207C                                             ; +0x34, 0xa0204c\nMOV             R3, #0x7F                                              ; +0x38, 0xa02050\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0xa02054\nLDR             R3, =(aCryptoEcEcOctC - 0xA02070); \"crypto/ec/ec_oct.c\" ; +0x40, 0xa02058\nMOV             R0, #0x10                                              ; +0x44, 0xa0205c\nMOV             R1, #0x7A ; 'z'                                        ; +0x48, 0xa02060\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0xa02064\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0xa02068\nBL              ERR_put_error                                          ; +0x54, 0xa0206c\nMOV             R0, #0                                                 ; +0x58, 0xa02070\nADD             SP, SP, #0xC                                           ; +0x5c, 0xa02074\nPOP             {R4-R9,PC}                                             ; +0x60, 0xa02078\nLDR             R6, [R12]                                              ; +0x64, 0xa0207c\nTST             R6, #1                                                 ; +0x68, 0xa02080\nBEQ             loc_A020E0                                             ; +0x6c, 0xa02084\nLDR             R2, [R12,#4]                                           ; +0x70, 0xa02088\nLDR             R3, =0x196                                             ; +0x74, 0xa0208c\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0xa02090\nCMP             R2, R3                                                 ; +0x7c, 0xa02094\nMOV             R0, R4                                                 ; +0x80, 0xa02098\nMOV             R1, LR                                                 ; +0x84, 0xa0209c\nMOV             R2, R8                                                 ; +0x88, 0xa020a0\nMOV             R3, R9                                                 ; +0x8c, 0xa020a4\nBEQ             loc_A020B8                                             ; +0x90, 0xa020a8\nADD             SP, SP, #0xC                                           ; +0x94, 0xa020ac\nPOP             {R4-R9,LR}                                             ; +0x98, 0xa020b0\nB               ec_GF2m_simple_oct2point                               ; +0x9c, 0xa020b4\nADD             SP, SP, #0xC                                           ; +0xa0, 0xa020b8\nPOP             {R4-R9,LR}                                             ; +0xa4, 0xa020bc\nB               ec_GFp_simple_oct2point                                ; +0xa8, 0xa020c0\nLDR             R3, [R12]                                              ; +0xac, 0xa020c4\nTST             R3, #1                                                 ; +0xb0, 0xa020c8\nBEQ             loc_A020F4                                             ; +0xb4, 0xa020cc\nLDR             R3, [R1]                                               ; +0xb8, 0xa020d0\nCMP             R12, R3                                                ; +0xbc, 0xa020d4\nBNE             loc_A02050                                             ; +0xc0, 0xa020d8\nB               loc_A02088                                             ; +0xc4, 0xa020dc\nMOV             R12, R5                                                ; +0xc8, 0xa020e0\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0xa020e4\nADD             SP, SP, #0xC                                           ; +0xd0, 0xa020e8\nPOP             {R4-R9,LR}                                             ; +0xd4, 0xa020ec\nBX              R12                                                    ; +0xd8, 0xa020f0\nMOV             R3, #0x7B ; '{'                                        ; +0xdc, 0xa020f4\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe0, 0xa020f8\nLDR             R3, =(aCryptoEcEcOctC - 0xA02114); \"crypto/ec/ec_oct.c\" ; +0xe4, 0xa020fc\nMOV             R0, #0x10                                              ; +0xe8, 0xa02100\nMOV             R1, #0x7A ; 'z'                                        ; +0xec, 0xa02104\nMOV             R2, #0x42 ; 'B'                                        ; +0xf0, 0xa02108\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf4, 0xa0210c\nBL              ERR_put_error                                          ; +0xf8, 0xa02110\nB               loc_A02070                                             ; +0xfc, 0xa02114", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x9fb99c", "EC_KEY_oct2key @ 0x9fe378", "EC_POINT_bn2point @ 0xaa0110", "EC_POINT_bn2point @ 0xaa0160", "<???> @ 0x7af3c"], "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"}