{"type": "func", "start": 8303040, "end": 8303256, "name": "EC_POINT_set_affine_coordinates_GFp", "pseudocode": "// \n// EC_POINT_set_affine_coordinates_GFp from 0x7eb1c0 to 0x7eb298 (216 bytes)\n// \n// 7 xrefs:\n// > EC_GROUP_new_by_curve_name @ 0x7e8298\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e9520\n// > sub_7F0594 @ 0x7f0774\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f25d4\n// > ec_GFp_simple_oct2point @ 0x7f2c38\n// > ec_GFp_simple_make_affine @ 0x7f4c94\n// > <???> @ 0x615cc\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_affine_coordinates_GFp(int a1, _DWORD *a2)\n{\n  int (__fastcall *v2)(int); // r4\n  int result; // r0\n\n  v2 = *(int (__fastcall **)(int))(*(_DWORD *)a1 + 72);\n  if ( v2 )\n  {\n    if ( *(_DWORD *)a1 == *a2 )\n    {\n      result = v2(a1);\n      if ( result )\n      {\n        if ( EC_POINT_is_on_curve(a1, a2) <= 0 )\n        {\n          ERR_put_error(16, 124, 107, \"crypto/ec/ec_lib.c\", 707);\n          return 0;\n        }\n        else\n        {\n          return 1;\n        }\n      }\n    }\n    else\n    {\n      ERR_put_error(16, 124, 101, \"crypto/ec/ec_lib.c\", 699);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 124, 66, \"crypto/ec/ec_lib.c\", 694);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_POINT_set_affine_coordinates_GFp from 0x7eb1c0 to 0x7eb298 (216 bytes)\n; \n; 7 xrefs:\n; > EC_GROUP_new_by_curve_name @ 0x7e8298\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e9520\n; > sub_7F0594 @ 0x7f0774\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f25d4\n; > ec_GFp_simple_oct2point @ 0x7f2c38\n; > ec_GFp_simple_make_affine @ 0x7f4c94\n; > <???> @ 0x615cc\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, 0x7eb1c0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x7eb1c4\nLDR             R4, [R12,#0x48]                                        ; +0x8, 0x7eb1c8\nSUB             SP, SP, #8                                             ; +0xc, 0x7eb1cc\nCMP             R4, #0                                                 ; +0x10, 0x7eb1d0\nMOV             R5, R0                                                 ; +0x14, 0x7eb1d4\nBEQ             loc_7EB270                                             ; +0x18, 0x7eb1d8\nLDR             LR, [R1]                                               ; +0x1c, 0x7eb1dc\nMOV             R6, R1                                                 ; +0x20, 0x7eb1e0\nCMP             R12, LR                                                ; +0x24, 0x7eb1e4\nBEQ             loc_7EB218                                             ; +0x28, 0x7eb1e8\nLDR             R3, =0x2BB                                             ; +0x2c, 0x7eb1ec\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x7eb1f0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB20C); \"crypto/ec/ec_lib.c\" ; +0x34, 0x7eb1f4\nMOV             R0, #0x10                                              ; +0x38, 0x7eb1f8\nMOV             R1, #0x7C ; '|'                                        ; +0x3c, 0x7eb1fc\nMOV             R2, #0x65 ; 'e'                                        ; +0x40, 0x7eb200\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x7eb204\nBL              ERR_put_error                                          ; +0x48, 0x7eb208\nMOV             R0, #0                                                 ; +0x4c, 0x7eb20c\nADD             SP, SP, #8                                             ; +0x50, 0x7eb210\nPOP             {R4-R6,PC}                                             ; +0x54, 0x7eb214\nLDR             R12, [SP,#8+arg_0]                                     ; +0x58, 0x7eb218\nSTR             R12, [SP,#8+var_8]                                     ; +0x5c, 0x7eb21c\nBLX             R4                                                     ; +0x60, 0x7eb220\nCMP             R0, #0                                                 ; +0x64, 0x7eb224\nBEQ             loc_7EB210                                             ; +0x68, 0x7eb228\nMOV             R0, R5                                                 ; +0x6c, 0x7eb22c\nMOV             R1, R6                                                 ; +0x70, 0x7eb230\nLDR             R2, [SP,#8+arg_0]                                      ; +0x74, 0x7eb234\nBL              EC_POINT_is_on_curve                                   ; +0x78, 0x7eb238\nCMP             R0, #0                                                 ; +0x7c, 0x7eb23c\nMOVGT           R0, #1                                                 ; +0x80, 0x7eb240\nBGT             loc_7EB210                                             ; +0x84, 0x7eb244\nLDR             R3, =0x2C3                                             ; +0x88, 0x7eb248\nSTR             R3, [SP,#8+var_8]                                      ; +0x8c, 0x7eb24c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB268); \"crypto/ec/ec_lib.c\" ; +0x90, 0x7eb250\nMOV             R0, #0x10                                              ; +0x94, 0x7eb254\nMOV             R1, #0x7C ; '|'                                        ; +0x98, 0x7eb258\nMOV             R2, #0x6B ; 'k'                                        ; +0x9c, 0x7eb25c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xa0, 0x7eb260\nBL              ERR_put_error                                          ; +0xa4, 0x7eb264\nMOV             R0, #0                                                 ; +0xa8, 0x7eb268\nB               loc_7EB210                                             ; +0xac, 0x7eb26c\nLDR             R3, =0x2B6                                             ; +0xb0, 0x7eb270\nSTR             R3, [SP,#8+var_8]                                      ; +0xb4, 0x7eb274\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB290); \"crypto/ec/ec_lib.c\" ; +0xb8, 0x7eb278\nMOV             R0, #0x10                                              ; +0xbc, 0x7eb27c\nMOV             R1, #0x7C ; '|'                                        ; +0xc0, 0x7eb280\nMOV             R2, #0x42 ; 'B'                                        ; +0xc4, 0x7eb284\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xc8, 0x7eb288\nBL              ERR_put_error                                          ; +0xcc, 0x7eb28c\nMOV             R0, R4                                                 ; +0xd0, 0x7eb290\nB               loc_7EB210                                             ; +0xd4, 0x7eb294", "xrefs": ["EC_GROUP_new_by_curve_name @ 0x7e8298", "EC_KEY_set_public_key_affine_coordinates @ 0x7e9520", "sub_7F0594 @ 0x7f0774", "ec_GFp_simple_set_compressed_coordinates @ 0x7f25d4", "ec_GFp_simple_oct2point @ 0x7f2c38", "ec_GFp_simple_make_affine @ 0x7f4c94", "<???> @ 0x615cc"], "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"}