{"type": "func", "start": 10485184, "end": 10485400, "name": "EC_POINT_set_affine_coordinates_GFp", "pseudocode": "// \n// EC_POINT_set_affine_coordinates_GFp from 0x9ffdc0 to 0x9ffe98 (216 bytes)\n// \n// 7 xrefs:\n// > EC_GROUP_new_by_curve_name @ 0x9fce98\n// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe120\n// > sub_A05194 @ 0xa05374\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa071d4\n// > ec_GFp_simple_oct2point @ 0xa07838\n// > ec_GFp_simple_make_affine @ 0xa09894\n// > <???> @ 0x7b04c\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:37 +0000\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 0x9ffdc0 to 0x9ffe98 (216 bytes)\n; \n; 7 xrefs:\n; > EC_GROUP_new_by_curve_name @ 0x9fce98\n; > EC_KEY_set_public_key_affine_coordinates @ 0x9fe120\n; > sub_A05194 @ 0xa05374\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa071d4\n; > ec_GFp_simple_oct2point @ 0xa07838\n; > ec_GFp_simple_make_affine @ 0xa09894\n; > <???> @ 0x7b04c\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:37 +0000\n; \nLDR             R12, [R0]                                              ; +0x0, 0x9ffdc0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x9ffdc4\nLDR             R4, [R12,#0x48]                                        ; +0x8, 0x9ffdc8\nSUB             SP, SP, #8                                             ; +0xc, 0x9ffdcc\nCMP             R4, #0                                                 ; +0x10, 0x9ffdd0\nMOV             R5, R0                                                 ; +0x14, 0x9ffdd4\nBEQ             loc_9FFE70                                             ; +0x18, 0x9ffdd8\nLDR             LR, [R1]                                               ; +0x1c, 0x9ffddc\nMOV             R6, R1                                                 ; +0x20, 0x9ffde0\nCMP             R12, LR                                                ; +0x24, 0x9ffde4\nBEQ             loc_9FFE18                                             ; +0x28, 0x9ffde8\nLDR             R3, =0x2BB                                             ; +0x2c, 0x9ffdec\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x9ffdf0\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFE0C); \"crypto/ec/ec_lib.c\" ; +0x34, 0x9ffdf4\nMOV             R0, #0x10                                              ; +0x38, 0x9ffdf8\nMOV             R1, #0x7C ; '|'                                        ; +0x3c, 0x9ffdfc\nMOV             R2, #0x65 ; 'e'                                        ; +0x40, 0x9ffe00\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x9ffe04\nBL              ERR_put_error                                          ; +0x48, 0x9ffe08\nMOV             R0, #0                                                 ; +0x4c, 0x9ffe0c\nADD             SP, SP, #8                                             ; +0x50, 0x9ffe10\nPOP             {R4-R6,PC}                                             ; +0x54, 0x9ffe14\nLDR             R12, [SP,#8+arg_0]                                     ; +0x58, 0x9ffe18\nSTR             R12, [SP,#8+var_8]                                     ; +0x5c, 0x9ffe1c\nBLX             R4                                                     ; +0x60, 0x9ffe20\nCMP             R0, #0                                                 ; +0x64, 0x9ffe24\nBEQ             loc_9FFE10                                             ; +0x68, 0x9ffe28\nMOV             R0, R5                                                 ; +0x6c, 0x9ffe2c\nMOV             R1, R6                                                 ; +0x70, 0x9ffe30\nLDR             R2, [SP,#8+arg_0]                                      ; +0x74, 0x9ffe34\nBL              EC_POINT_is_on_curve                                   ; +0x78, 0x9ffe38\nCMP             R0, #0                                                 ; +0x7c, 0x9ffe3c\nMOVGT           R0, #1                                                 ; +0x80, 0x9ffe40\nBGT             loc_9FFE10                                             ; +0x84, 0x9ffe44\nLDR             R3, =0x2C3                                             ; +0x88, 0x9ffe48\nSTR             R3, [SP,#8+var_8]                                      ; +0x8c, 0x9ffe4c\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFE68); \"crypto/ec/ec_lib.c\" ; +0x90, 0x9ffe50\nMOV             R0, #0x10                                              ; +0x94, 0x9ffe54\nMOV             R1, #0x7C ; '|'                                        ; +0x98, 0x9ffe58\nMOV             R2, #0x6B ; 'k'                                        ; +0x9c, 0x9ffe5c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xa0, 0x9ffe60\nBL              ERR_put_error                                          ; +0xa4, 0x9ffe64\nMOV             R0, #0                                                 ; +0xa8, 0x9ffe68\nB               loc_9FFE10                                             ; +0xac, 0x9ffe6c\nLDR             R3, =0x2B6                                             ; +0xb0, 0x9ffe70\nSTR             R3, [SP,#8+var_8]                                      ; +0xb4, 0x9ffe74\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFE90); \"crypto/ec/ec_lib.c\" ; +0xb8, 0x9ffe78\nMOV             R0, #0x10                                              ; +0xbc, 0x9ffe7c\nMOV             R1, #0x7C ; '|'                                        ; +0xc0, 0x9ffe80\nMOV             R2, #0x42 ; 'B'                                        ; +0xc4, 0x9ffe84\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xc8, 0x9ffe88\nBL              ERR_put_error                                          ; +0xcc, 0x9ffe8c\nMOV             R0, R4                                                 ; +0xd0, 0x9ffe90\nB               loc_9FFE10                                             ; +0xd4, 0x9ffe94", "xrefs": ["EC_GROUP_new_by_curve_name @ 0x9fce98", "EC_KEY_set_public_key_affine_coordinates @ 0x9fe120", "sub_A05194 @ 0xa05374", "ec_GFp_simple_set_compressed_coordinates @ 0xa071d4", "ec_GFp_simple_oct2point @ 0xa07838", "ec_GFp_simple_make_affine @ 0xa09894", "<???> @ 0x7b04c"], "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"}