{"type": "func", "start": 8301512, "end": 8301640, "name": "EC_POINT_set_to_infinity", "pseudocode": "// \n// EC_POINT_set_to_infinity from 0x7eabc8 to 0x7eac48 (128 bytes)\n// \n// 10 xrefs:\n// > ec_wNAF_mul @ 0x7ebff4\n// > ec_wNAF_mul @ 0x7eca40\n// > sub_7F0594 @ 0x7f1458\n// > ec_GFp_simple_oct2point @ 0x7f2b8c\n// > ec_GF2m_simple_oct2point @ 0x88960c\n// > ec_GF2m_simple_add @ 0x88a788\n// > sub_8D1010 @ 0x8d1098\n// > sub_8D1010 @ 0x8d1660\n// > ec_GF2m_simple_mul @ 0x8d1a1c\n// > <???> @ 0x61a9c\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_set_to_infinity(int a1, _DWORD *a2)\n{\n  int (*v2)(void); // r2\n\n  v2 = *(int (**)(void))(*(_DWORD *)a1 + 60);\n  if ( !v2 )\n  {\n    ERR_put_error(16, 127, 66, \"crypto/ec/ec_lib.c\", 640);\n    return 0;\n  }\n  if ( *(_DWORD *)a1 != *a2 )\n  {\n    ERR_put_error(16, 127, 101, \"crypto/ec/ec_lib.c\", 644);\n    return 0;\n  }\n  return v2();\n}", "assembly": "; \n; EC_POINT_set_to_infinity from 0x7eabc8 to 0x7eac48 (128 bytes)\n; \n; 10 xrefs:\n; > ec_wNAF_mul @ 0x7ebff4\n; > ec_wNAF_mul @ 0x7eca40\n; > sub_7F0594 @ 0x7f1458\n; > ec_GFp_simple_oct2point @ 0x7f2b8c\n; > ec_GF2m_simple_oct2point @ 0x88960c\n; > ec_GF2m_simple_add @ 0x88a788\n; > sub_8D1010 @ 0x8d1098\n; > sub_8D1010 @ 0x8d1660\n; > ec_GF2m_simple_mul @ 0x8d1a1c\n; > <???> @ 0x61a9c\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             R3, [R0]                                               ; +0x0, 0x7eabc8\nPUSH            {LR}                                                   ; +0x4, 0x7eabcc\nLDR             R2, [R3,#0x3C]                                         ; +0x8, 0x7eabd0\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eabd4\nCMP             R2, #0                                                 ; +0x10, 0x7eabd8\nBEQ             loc_7EAC24                                             ; +0x14, 0x7eabdc\nLDR             R12, [R1]                                              ; +0x18, 0x7eabe0\nCMP             R3, R12                                                ; +0x1c, 0x7eabe4\nBEQ             loc_7EAC18                                             ; +0x20, 0x7eabe8\nMOV             R3, #0x284                                             ; +0x24, 0x7eabec\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x7eabf0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAC0C); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x7eabf4\nMOV             R0, #0x10                                              ; +0x30, 0x7eabf8\nMOV             R1, #0x7F                                              ; +0x34, 0x7eabfc\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x7eac00\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x7eac04\nBL              ERR_put_error                                          ; +0x40, 0x7eac08\nMOV             R0, #0                                                 ; +0x44, 0x7eac0c\nADD             SP, SP, #0xC                                           ; +0x48, 0x7eac10\nPOP             {PC}                                                   ; +0x4c, 0x7eac14\nADD             SP, SP, #0xC                                           ; +0x50, 0x7eac18\nPOP             {LR}                                                   ; +0x54, 0x7eac1c\nBX              R2                                                     ; +0x58, 0x7eac20\nMOV             R3, #0x280                                             ; +0x5c, 0x7eac24\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x7eac28\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAC44); \"crypto/ec/ec_lib.c\" ; +0x64, 0x7eac2c\nMOV             R0, #0x10                                              ; +0x68, 0x7eac30\nMOV             R1, #0x7F                                              ; +0x6c, 0x7eac34\nMOV             R2, #0x42 ; 'B'                                        ; +0x70, 0x7eac38\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x74, 0x7eac3c\nBL              ERR_put_error                                          ; +0x78, 0x7eac40\nB               loc_7EAC0C                                             ; +0x7c, 0x7eac44", "xrefs": ["ec_wNAF_mul @ 0x7ebff4", "ec_wNAF_mul @ 0x7eca40", "sub_7F0594 @ 0x7f1458", "ec_GFp_simple_oct2point @ 0x7f2b8c", "ec_GF2m_simple_oct2point @ 0x88960c", "ec_GF2m_simple_add @ 0x88a788", "sub_8D1010 @ 0x8d1098", "sub_8D1010 @ 0x8d1660", "ec_GF2m_simple_mul @ 0x8d1a1c", "<???> @ 0x61a9c"], "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"}