{"type": "func", "start": 10482720, "end": 10482872, "name": "EC_POINT_copy", "pseudocode": "// \n// EC_POINT_copy from 0x9ff420 to 0x9ff4b8 (152 bytes)\n// \n// 16 xrefs:\n// > EC_KEY_copy @ 0x9fd79c\n// > EC_GROUP_copy @ 0x9ff580\n// > EC_POINT_dup @ 0x9ff798\n// > EC_GROUP_set_generator @ 0xa0058c\n// > ec_wNAF_mul @ 0xa013cc\n// > ec_wNAF_mul @ 0xa01488\n// > ec_wNAF_mul @ 0xa01558\n// > ec_wNAF_precompute_mult @ 0xa019f8\n// > ec_wNAF_precompute_mult @ 0xa01a64\n// > sub_A067A0 @ 0xa06b58\n// > sub_A067A0 @ 0xa06ba8\n// > ec_GFp_simple_add @ 0xa090c0\n// > ec_GF2m_simple_add @ 0xa9efb0\n// > ec_GF2m_simple_add @ 0xa9f30c\n// > ec_GF2m_simple_mul @ 0xae6b9c\n// > <???> @ 0x7b10c\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_copy(_DWORD *a1, _DWORD *a2)\n{\n  if ( *(_DWORD *)(*a1 + 56) )\n  {\n    if ( *a1 == *a2 )\n    {\n      if ( a1 == a2 )\n        return 1;\n      else\n        return (*(int (__fastcall **)(_DWORD *))(*a1 + 56))(a1);\n    }\n    else\n    {\n      ERR_put_error(16, 114, 101, \"crypto/ec/ec_lib.c\", 604);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 114, 66, \"crypto/ec/ec_lib.c\", 600);\n    return 0;\n  }\n}", "assembly": "; \n; EC_POINT_copy from 0x9ff420 to 0x9ff4b8 (152 bytes)\n; \n; 16 xrefs:\n; > EC_KEY_copy @ 0x9fd79c\n; > EC_GROUP_copy @ 0x9ff580\n; > EC_POINT_dup @ 0x9ff798\n; > EC_GROUP_set_generator @ 0xa0058c\n; > ec_wNAF_mul @ 0xa013cc\n; > ec_wNAF_mul @ 0xa01488\n; > ec_wNAF_mul @ 0xa01558\n; > ec_wNAF_precompute_mult @ 0xa019f8\n; > ec_wNAF_precompute_mult @ 0xa01a64\n; > sub_A067A0 @ 0xa06b58\n; > sub_A067A0 @ 0xa06ba8\n; > ec_GFp_simple_add @ 0xa090c0\n; > ec_GF2m_simple_add @ 0xa9efb0\n; > ec_GF2m_simple_add @ 0xa9f30c\n; > ec_GF2m_simple_mul @ 0xae6b9c\n; > <???> @ 0x7b10c\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             R3, [R0]                                               ; +0x0, 0x9ff420\nPUSH            {R4,LR}                                                ; +0x4, 0x9ff424\nLDR             R4, [R3,#0x38]                                         ; +0x8, 0x9ff428\nSUB             SP, SP, #8                                             ; +0xc, 0x9ff42c\nCMP             R4, #0                                                 ; +0x10, 0x9ff430\nBEQ             loc_9FF490                                             ; +0x14, 0x9ff434\nLDR             LR, [R1]                                               ; +0x18, 0x9ff438\nCMP             R3, LR                                                 ; +0x1c, 0x9ff43c\nBEQ             loc_9FF470                                             ; +0x20, 0x9ff440\nMOV             R3, #0x25C                                             ; +0x24, 0x9ff444\nSTR             R3, [SP,#8+var_8]                                      ; +0x28, 0x9ff448\nLDR             R3, =(aCryptoEcEcLibC - 0x9FF464); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x9ff44c\nMOV             R0, #0x10                                              ; +0x30, 0x9ff450\nMOV             R1, #0x72 ; 'r'                                        ; +0x34, 0x9ff454\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x9ff458\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x9ff45c\nBL              ERR_put_error                                          ; +0x40, 0x9ff460\nMOV             R0, #0                                                 ; +0x44, 0x9ff464\nADD             SP, SP, #8                                             ; +0x48, 0x9ff468\nPOP             {R4,PC}                                                ; +0x4c, 0x9ff46c\nCMP             R0, R1                                                 ; +0x50, 0x9ff470\nBEQ             loc_9FF488                                             ; +0x54, 0x9ff474\nMOV             R3, R4                                                 ; +0x58, 0x9ff478\nADD             SP, SP, #8                                             ; +0x5c, 0x9ff47c\nPOP             {R4,LR}                                                ; +0x60, 0x9ff480\nBX              R3                                                     ; +0x64, 0x9ff484\nMOV             R0, #1                                                 ; +0x68, 0x9ff488\nB               loc_9FF468                                             ; +0x6c, 0x9ff48c\nMOV             R3, #0x258                                             ; +0x70, 0x9ff490\nSTR             R3, [SP,#8+var_8]                                      ; +0x74, 0x9ff494\nLDR             R3, =(aCryptoEcEcLibC - 0x9FF4B0); \"crypto/ec/ec_lib.c\" ; +0x78, 0x9ff498\nMOV             R0, #0x10                                              ; +0x7c, 0x9ff49c\nMOV             R1, #0x72 ; 'r'                                        ; +0x80, 0x9ff4a0\nMOV             R2, #0x42 ; 'B'                                        ; +0x84, 0x9ff4a4\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x88, 0x9ff4a8\nBL              ERR_put_error                                          ; +0x8c, 0x9ff4ac\nMOV             R0, R4                                                 ; +0x90, 0x9ff4b0\nB               loc_9FF468                                             ; +0x94, 0x9ff4b4", "xrefs": ["EC_KEY_copy @ 0x9fd79c", "EC_GROUP_copy @ 0x9ff580", "EC_POINT_dup @ 0x9ff798", "EC_GROUP_set_generator @ 0xa0058c", "ec_wNAF_mul @ 0xa013cc", "ec_wNAF_mul @ 0xa01488", "ec_wNAF_mul @ 0xa01558", "ec_wNAF_precompute_mult @ 0xa019f8", "ec_wNAF_precompute_mult @ 0xa01a64", "sub_A067A0 @ 0xa06b58", "sub_A067A0 @ 0xa06ba8", "ec_GFp_simple_add @ 0xa090c0", "ec_GF2m_simple_add @ 0xa9efb0", "ec_GF2m_simple_add @ 0xa9f30c", "ec_GF2m_simple_mul @ 0xae6b9c", "<???> @ 0x7b10c"], "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"}