{"type": "func", "start": 16840040, "end": 16840192, "name": "EC_GROUP_set_seed", "pseudocode": "// \n// EC_GROUP_set_seed from 0x100f568 to 0x100f600 (152 bytes)\n// \n// 2 xrefs:\n// > EC_GROUP_new_by_curve_name @ 0x100d894\n// > <???> @ 0x58e10\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n// \n\nvoid *__fastcall EC_GROUP_set_seed(__int64 a1, const void *a2, size_t a3)\n{\n  void *result; // x0\n\n  CRYPTO_free(*(_QWORD *)(a1 + 48), \"crypto/ec/ec_lib.c\", 383);\n  *(_QWORD *)(a1 + 48) = 0;\n  *(_QWORD *)(a1 + 56) = 0;\n  if ( !a3 || !a2 )\n    return dword_0 + 1;\n  result = (void *)CRYPTO_malloc(a3, \"crypto/ec/ec_lib.c\", 390);\n  *(_QWORD *)(a1 + 48) = result;\n  if ( result )\n  {\n    memcpy(result, a2, a3);\n    *(_QWORD *)(a1 + 56) = a3;\n    return (void *)a3;\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_set_seed from 0x100f568 to 0x100f600 (152 bytes)\n; \n; 2 xrefs:\n; > EC_GROUP_new_by_curve_name @ 0x100d894\n; > <???> @ 0x58e10\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x100f568\nMOV             X29, SP                                                ; +0x4, 0x100f56c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x100f570\nADRP            X21, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"       ; +0xc, 0x100f574\nMOV             X22, X1                                                ; +0x10, 0x100f578\nSTP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x100f57c\nADD             X21, X21, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x18, 0x100f580\nMOV             X20, X0                                                ; +0x1c, 0x100f584\nLDR             X0, [X0,#0x30]                                         ; +0x20, 0x100f588\nMOV             X19, X2                                                ; +0x24, 0x100f58c\nMOV             X1, X21                                                ; +0x28, 0x100f590\nMOV             W2, #0x17F                                             ; +0x2c, 0x100f594\nBL              CRYPTO_free                                            ; +0x30, 0x100f598\nSTR             XZR, [X20,#0x30]                                       ; +0x34, 0x100f59c\nSTR             XZR, [X20,#0x38]                                       ; +0x38, 0x100f5a0\nCBZ             X19, loc_100F5E8                                       ; +0x3c, 0x100f5a4\nCBZ             X22, loc_100F5E8                                       ; +0x40, 0x100f5a8\nMOV             X0, X19                                                ; +0x44, 0x100f5ac\nMOV             X1, X21                                                ; +0x48, 0x100f5b0\nMOV             W2, #0x186                                             ; +0x4c, 0x100f5b4\nBL              CRYPTO_malloc                                          ; +0x50, 0x100f5b8\nSTR             X0, [X20,#0x30]                                        ; +0x54, 0x100f5bc\nCBZ             X0, loc_100F5FC                                        ; +0x58, 0x100f5c0\nMOV             X1, X22; void *                                        ; +0x5c, 0x100f5c4\nMOV             X2, X19; size_t                                        ; +0x60, 0x100f5c8\nBL              .memcpy                                                ; +0x64, 0x100f5cc\nSTR             X19, [X20,#0x38]                                       ; +0x68, 0x100f5d0\nMOV             X0, X19                                                ; +0x6c, 0x100f5d4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x100f5d8\nLDP             X21, X22, [SP,#var_s20]                                ; +0x74, 0x100f5dc\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x78, 0x100f5e0\nRET                                                                    ; +0x7c, 0x100f5e4\nMOV             X0, #1                                                 ; +0x80, 0x100f5e8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0x100f5ec\nLDP             X21, X22, [SP,#var_s20]                                ; +0x88, 0x100f5f0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x8c, 0x100f5f4\nRET                                                                    ; +0x90, 0x100f5f8\nB               loc_100F5EC                                            ; +0x94, 0x100f5fc", "xrefs": ["EC_GROUP_new_by_curve_name @ 0x100d894", "<???> @ 0x58e10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}