{"type": "func", "start": 8302128, "end": 8302268, "name": "EC_POINT_get_affine_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_get_affine_coordinates_GF2m from 0x7eae30 to 0x7eaebc (140 bytes)\n// \n// 12 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e9588\n// > ecdh_simple_compute_key @ 0x7ed6f4\n// > ossl_ecdsa_sign_setup @ 0x7edcac\n// > ossl_ecdsa_sign_sig @ 0x7ee4f4\n// > ossl_ecdsa_verify_sig @ 0x7eeefc\n// > ec_GF2m_simple_point2oct @ 0x88920c\n// > ec_GF2m_simple_cmp @ 0x88a01c\n// > ec_GF2m_simple_cmp @ 0x88a09c\n// > ec_GF2m_simple_make_affine @ 0x88a188\n// > ec_GF2m_simple_add @ 0x88a474\n// > ec_GF2m_simple_add @ 0x88a738\n// > <???> @ 0x6179c\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_get_affine_coordinates_GF2m(int a1, _DWORD *a2)\n{\n  if ( !*(_DWORD *)(*(_DWORD *)a1 + 76) )\n  {\n    ERR_put_error(16, 183, 66, \"crypto/ec/ec_lib.c\", 764);\n    return 0;\n  }\n  if ( *(_DWORD *)a1 != *a2 )\n  {\n    ERR_put_error(16, 183, 101, \"crypto/ec/ec_lib.c\", 769);\n    return 0;\n  }\n  return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 76))(a1);\n}", "assembly": "; \n; EC_POINT_get_affine_coordinates_GF2m from 0x7eae30 to 0x7eaebc (140 bytes)\n; \n; 12 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e9588\n; > ecdh_simple_compute_key @ 0x7ed6f4\n; > ossl_ecdsa_sign_setup @ 0x7edcac\n; > ossl_ecdsa_sign_sig @ 0x7ee4f4\n; > ossl_ecdsa_verify_sig @ 0x7eeefc\n; > ec_GF2m_simple_point2oct @ 0x88920c\n; > ec_GF2m_simple_cmp @ 0x88a01c\n; > ec_GF2m_simple_cmp @ 0x88a09c\n; > ec_GF2m_simple_make_affine @ 0x88a188\n; > ec_GF2m_simple_add @ 0x88a474\n; > ec_GF2m_simple_add @ 0x88a738\n; > <???> @ 0x6179c\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, 0x7eae30\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7eae34\nLDR             LR, [R12,#0x4C]                                        ; +0x8, 0x7eae38\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eae3c\nCMP             LR, #0                                                 ; +0x10, 0x7eae40\nLDR             R5, [SP,#0xC+arg_0]                                    ; +0x14, 0x7eae44\nBEQ             loc_7EAE98                                             ; +0x18, 0x7eae48\nLDR             R4, [R1]                                               ; +0x1c, 0x7eae4c\nCMP             R12, R4                                                ; +0x20, 0x7eae50\nBEQ             loc_7EAE84                                             ; +0x24, 0x7eae54\nLDR             R3, =0x301                                             ; +0x28, 0x7eae58\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x2c, 0x7eae5c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAE78); \"crypto/ec/ec_lib.c\" ; +0x30, 0x7eae60\nMOV             R0, #0x10                                              ; +0x34, 0x7eae64\nMOV             R1, #0xB7                                              ; +0x38, 0x7eae68\nMOV             R2, #0x65 ; 'e'                                        ; +0x3c, 0x7eae6c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x40, 0x7eae70\nBL              ERR_put_error                                          ; +0x44, 0x7eae74\nMOV             R0, #0                                                 ; +0x48, 0x7eae78\nADD             SP, SP, #0xC                                           ; +0x4c, 0x7eae7c\nPOP             {R4,R5,PC}                                             ; +0x50, 0x7eae80\nMOV             R12, LR                                                ; +0x54, 0x7eae84\nSTR             R5, [SP,#0xC+arg_0]                                    ; +0x58, 0x7eae88\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7eae8c\nPOP             {R4,R5,LR}                                             ; +0x60, 0x7eae90\nBX              R12                                                    ; +0x64, 0x7eae94\nMOV             R3, #0x2FC                                             ; +0x68, 0x7eae98\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x6c, 0x7eae9c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAEB8); \"crypto/ec/ec_lib.c\" ; +0x70, 0x7eaea0\nMOV             R0, #0x10                                              ; +0x74, 0x7eaea4\nMOV             R1, #0xB7                                              ; +0x78, 0x7eaea8\nMOV             R2, #0x42 ; 'B'                                        ; +0x7c, 0x7eaeac\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x80, 0x7eaeb0\nBL              ERR_put_error                                          ; +0x84, 0x7eaeb4\nB               loc_7EAE78                                             ; +0x88, 0x7eaeb8", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x7e9588", "ecdh_simple_compute_key @ 0x7ed6f4", "ossl_ecdsa_sign_setup @ 0x7edcac", "ossl_ecdsa_sign_sig @ 0x7ee4f4", "ossl_ecdsa_verify_sig @ 0x7eeefc", "ec_GF2m_simple_point2oct @ 0x88920c", "ec_GF2m_simple_cmp @ 0x88a01c", "ec_GF2m_simple_cmp @ 0x88a09c", "ec_GF2m_simple_make_affine @ 0x88a188", "ec_GF2m_simple_add @ 0x88a474", "ec_GF2m_simple_add @ 0x88a738", "<???> @ 0x6179c"], "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"}