{"type": "func", "start": 8299196, "end": 8299324, "name": "EC_GROUP_set_seed", "pseudocode": "// \n// EC_GROUP_set_seed from 0x7ea2bc to 0x7ea33c (128 bytes)\n// \n// 2 xrefs:\n// > EC_GROUP_new_by_curve_name @ 0x7e8418\n// > <???> @ 0x615dc\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\nvoid *__fastcall EC_GROUP_set_seed(int a1, const void *a2, size_t a3)\n{\n  bool v6; // zf\n  void *result; // r0\n\n  CRYPTO_free(*(_DWORD *)(a1 + 28), \"crypto/ec/ec_lib.c\", 383);\n  v6 = a2 == nullptr;\n  if ( a2 )\n    v6 = a3 == 0;\n  *(_DWORD *)(a1 + 28) = 0;\n  *(_DWORD *)(a1 + 32) = 0;\n  if ( v6 )\n    return &dword_0 + 1;\n  result = (void *)CRYPTO_malloc(a3, \"crypto/ec/ec_lib.c\", 390);\n  *(_DWORD *)(a1 + 28) = result;\n  if ( result )\n  {\n    memcpy(result, a2, a3);\n    *(_DWORD *)(a1 + 32) = a3;\n    return (void *)a3;\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_set_seed from 0x7ea2bc to 0x7ea33c (128 bytes)\n; \n; 2 xrefs:\n; > EC_GROUP_new_by_curve_name @ 0x7e8418\n; > <???> @ 0x615dc\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            {R3-R7,LR}                                             ; +0x0, 0x7ea2bc\nLDR             R6, =(aCryptoEcEcLibC - 0x7EA2D0); \"crypto/ec/ec_lib.c\" ; +0x4, 0x7ea2c0\nMOV             R5, R0                                                 ; +0x8, 0x7ea2c4\nADD             R6, PC, R6; \"crypto/ec/ec_lib.c\"                       ; +0xc, 0x7ea2c8\nMOV             R7, R1                                                 ; +0x10, 0x7ea2cc\nMOV             R4, R2                                                 ; +0x14, 0x7ea2d0\nLDR             R0, [R0,#0x1C]                                         ; +0x18, 0x7ea2d4\nMOV             R1, R6                                                 ; +0x1c, 0x7ea2d8\nLDR             R2, =0x17F                                             ; +0x20, 0x7ea2dc\nBL              CRYPTO_free                                            ; +0x24, 0x7ea2e0\nMOV             R3, #0                                                 ; +0x28, 0x7ea2e4\nCMP             R7, #0                                                 ; +0x2c, 0x7ea2e8\nCMPNE           R4, #0                                                 ; +0x30, 0x7ea2ec\nSTR             R3, [R5,#0x1C]                                         ; +0x34, 0x7ea2f0\nSTR             R3, [R5,#0x20]                                         ; +0x38, 0x7ea2f4\nBNE             loc_7EA304                                             ; +0x3c, 0x7ea2f8\nMOV             R0, #1                                                 ; +0x40, 0x7ea2fc\nPOP             {R3-R7,PC}                                             ; +0x44, 0x7ea300\nMOV             R1, R6                                                 ; +0x48, 0x7ea304\nMOV             R0, R4                                                 ; +0x4c, 0x7ea308\nLDR             R2, =0x186                                             ; +0x50, 0x7ea30c\nBL              CRYPTO_malloc                                          ; +0x54, 0x7ea310\nCMP             R0, #0                                                 ; +0x58, 0x7ea314\nSTR             R0, [R5,#0x1C]                                         ; +0x5c, 0x7ea318\nBEQ             locret_7EA338                                          ; +0x60, 0x7ea31c\nMOV             R1, R7; void *                                         ; +0x64, 0x7ea320\nMOV             R2, R4; size_t                                         ; +0x68, 0x7ea324\nBL              memcpy                                                 ; +0x6c, 0x7ea328\nSTR             R4, [R5,#0x20]                                         ; +0x70, 0x7ea32c\nMOV             R0, R4                                                 ; +0x74, 0x7ea330\nPOP             {R3-R7,PC}                                             ; +0x78, 0x7ea334\nPOP             {R3-R7,PC}                                             ; +0x7c, 0x7ea338", "xrefs": ["EC_GROUP_new_by_curve_name @ 0x7e8418", "<???> @ 0x615dc"], "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"}