{"type": "func", "start": 8312100, "end": 8312264, "name": "EC_POINT_point2buf", "pseudocode": "// \n// EC_POINT_point2buf from 0x7ed524 to 0x7ed5c8 (164 bytes)\n// \n// 5 xrefs:\n// > EC_GROUP_get_ecparameters @ 0x7e5fe8\n// > EC_KEY_key2buf @ 0x7e9724\n// > EC_POINT_point2bn @ 0x88b44c\n// > EC_POINT_point2hex @ 0x88b5ec\n// > <???> @ 0x6140c\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_point2buf(int a1, _DWORD *a2, int a3, int *a4)\n{\n  int v7; // r0\n  int result; // r0\n  int v9; // r9\n\n  v7 = EC_POINT_point2oct(a1, a2);\n  if ( !v7 )\n    return 0;\n  v9 = CRYPTO_malloc(v7, \"crypto/ec/ec_oct.c\", 155);\n  if ( !v9 )\n    return 0;\n  result = EC_POINT_point2oct(a1, a2);\n  if ( result )\n  {\n    *a4 = v9;\n  }\n  else\n  {\n    CRYPTO_free(v9, \"crypto/ec/ec_oct.c\", 160);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_POINT_point2buf from 0x7ed524 to 0x7ed5c8 (164 bytes)\n; \n; 5 xrefs:\n; > EC_GROUP_get_ecparameters @ 0x7e5fe8\n; > EC_KEY_key2buf @ 0x7e9724\n; > EC_POINT_point2bn @ 0x88b44c\n; > EC_POINT_point2hex @ 0x88b5ec\n; > <???> @ 0x6140c\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\nPUSH            {R4-R10,LR}                                            ; +0x0, 0x7ed524\nMOV             R12, #0                                                ; +0x4, 0x7ed528\nSUB             SP, SP, #8                                             ; +0x8, 0x7ed52c\nMOV             R8, R3                                                 ; +0xc, 0x7ed530\nSTR             R12, [SP,#8+var_8]                                     ; +0x10, 0x7ed534\nSTR             R12, [SP,#8+var_4]                                     ; +0x14, 0x7ed538\nMOV             R3, R12                                                ; +0x18, 0x7ed53c\nMOV             R6, R0                                                 ; +0x1c, 0x7ed540\nMOV             R5, R1                                                 ; +0x20, 0x7ed544\nMOV             R4, R2                                                 ; +0x24, 0x7ed548\nBL              EC_POINT_point2oct                                     ; +0x28, 0x7ed54c\nSUBS            R7, R0, #0                                             ; +0x2c, 0x7ed550\nBNE             loc_7ED564                                             ; +0x30, 0x7ed554\nMOV             R0, #0                                                 ; +0x34, 0x7ed558\nADD             SP, SP, #8                                             ; +0x38, 0x7ed55c\nPOP             {R4-R10,PC}                                            ; +0x3c, 0x7ed560\nLDR             R10, =(aCryptoEcEcOctC - 0x7ED574); \"crypto/ec/ec_oct.c\" ; +0x40, 0x7ed564\nMOV             R2, #0x9B                                              ; +0x44, 0x7ed568\nADD             R10, PC, R10; \"crypto/ec/ec_oct.c\"                     ; +0x48, 0x7ed56c\nMOV             R1, R10                                                ; +0x4c, 0x7ed570\nBL              CRYPTO_malloc                                          ; +0x50, 0x7ed574\nSUBS            R9, R0, #0                                             ; +0x54, 0x7ed578\nBEQ             loc_7ED558                                             ; +0x58, 0x7ed57c\nLDR             R3, [SP,#8+arg_0]                                      ; +0x5c, 0x7ed580\nSTR             R3, [SP,#8+var_4]                                      ; +0x60, 0x7ed584\nMOV             R2, R4                                                 ; +0x64, 0x7ed588\nSTR             R7, [SP,#8+var_8]                                      ; +0x68, 0x7ed58c\nMOV             R0, R6                                                 ; +0x6c, 0x7ed590\nMOV             R1, R5                                                 ; +0x70, 0x7ed594\nMOV             R3, R9                                                 ; +0x74, 0x7ed598\nBL              EC_POINT_point2oct                                     ; +0x78, 0x7ed59c\nSUBS            R4, R0, #0                                             ; +0x7c, 0x7ed5a0\nMOVNE           R0, R4                                                 ; +0x80, 0x7ed5a4\nSTRNE           R9, [R8]                                               ; +0x84, 0x7ed5a8\nBNE             loc_7ED55C                                             ; +0x88, 0x7ed5ac\nMOV             R0, R9                                                 ; +0x8c, 0x7ed5b0\nMOV             R1, R10                                                ; +0x90, 0x7ed5b4\nMOV             R2, #0xA0                                              ; +0x94, 0x7ed5b8\nBL              CRYPTO_free                                            ; +0x98, 0x7ed5bc\nMOV             R0, R4                                                 ; +0x9c, 0x7ed5c0\nB               loc_7ED55C                                             ; +0xa0, 0x7ed5c4", "xrefs": ["EC_GROUP_get_ecparameters @ 0x7e5fe8", "EC_KEY_key2buf @ 0x7e9724", "EC_POINT_point2bn @ 0x88b44c", "EC_POINT_point2hex @ 0x88b5ec", "<???> @ 0x6140c"], "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"}