{"type": "func", "start": 10479156, "end": 10479284, "name": "EC_KEY_priv2buf", "pseudocode": "// \n// EC_KEY_priv2buf from 0x9fe634 to 0x9fe6b4 (128 bytes)\n// \n// 4 xrefs:\n// > sub_9F9F64 @ 0x9fa04c\n// > EC_KEY_print @ 0x9fa2d8\n// > i2d_ECPrivateKey @ 0x9fc330\n// > <???> @ 0x7ac9c\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:36 +0000\n// \n\nint __fastcall EC_KEY_priv2buf(int a1, int *a2)\n{\n  int v4; // r0\n  int result; // r0\n  int v6; // r7\n\n  v4 = EC_KEY_priv2oct(a1);\n  if ( !v4 )\n    return 0;\n  v6 = CRYPTO_malloc(v4, \"crypto/ec/ec_key.c\", 619);\n  if ( !v6 )\n    return 0;\n  result = EC_KEY_priv2oct(a1);\n  if ( result )\n  {\n    *a2 = v6;\n  }\n  else\n  {\n    CRYPTO_free(v6, \"crypto/ec/ec_key.c\", 624);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_KEY_priv2buf from 0x9fe634 to 0x9fe6b4 (128 bytes)\n; \n; 4 xrefs:\n; > sub_9F9F64 @ 0x9fa04c\n; > EC_KEY_print @ 0x9fa2d8\n; > i2d_ECPrivateKey @ 0x9fc330\n; > <???> @ 0x7ac9c\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:36 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0x9fe634\nMOV             R6, R1                                                 ; +0x4, 0x9fe638\nMOV             R1, #0                                                 ; +0x8, 0x9fe63c\nMOV             R2, R1                                                 ; +0xc, 0x9fe640\nMOV             R5, R0                                                 ; +0x10, 0x9fe644\nBL              EC_KEY_priv2oct                                        ; +0x14, 0x9fe648\nSUBS            R4, R0, #0                                             ; +0x18, 0x9fe64c\nBNE             loc_9FE65C                                             ; +0x1c, 0x9fe650\nMOV             R0, #0                                                 ; +0x20, 0x9fe654\nPOP             {R4-R8,PC}                                             ; +0x24, 0x9fe658\nLDR             R8, =(aCryptoEcEcKeyC - 0x9FE66C); \"crypto/ec/ec_key.c\" ; +0x28, 0x9fe65c\nLDR             R2, =0x26B                                             ; +0x2c, 0x9fe660\nADD             R8, PC, R8; \"crypto/ec/ec_key.c\"                       ; +0x30, 0x9fe664\nMOV             R1, R8                                                 ; +0x34, 0x9fe668\nBL              CRYPTO_malloc                                          ; +0x38, 0x9fe66c\nSUBS            R7, R0, #0                                             ; +0x3c, 0x9fe670\nBEQ             loc_9FE654                                             ; +0x40, 0x9fe674\nMOV             R2, R4                                                 ; +0x44, 0x9fe678\nMOV             R0, R5                                                 ; +0x48, 0x9fe67c\nMOV             R1, R7                                                 ; +0x4c, 0x9fe680\nBL              EC_KEY_priv2oct                                        ; +0x50, 0x9fe684\nSUBS            R4, R0, #0                                             ; +0x54, 0x9fe688\nBEQ             loc_9FE69C                                             ; +0x58, 0x9fe68c\nMOV             R0, R4                                                 ; +0x5c, 0x9fe690\nSTR             R7, [R6]                                               ; +0x60, 0x9fe694\nPOP             {R4-R8,PC}                                             ; +0x64, 0x9fe698\nMOV             R0, R7                                                 ; +0x68, 0x9fe69c\nMOV             R1, R8                                                 ; +0x6c, 0x9fe6a0\nMOV             R2, #0x270                                             ; +0x70, 0x9fe6a4\nBL              CRYPTO_free                                            ; +0x74, 0x9fe6a8\nMOV             R0, R4                                                 ; +0x78, 0x9fe6ac\nPOP             {R4-R8,PC}                                             ; +0x7c, 0x9fe6b0", "xrefs": ["sub_9F9F64 @ 0x9fa04c", "EC_KEY_print @ 0x9fa2d8", "i2d_ECPrivateKey @ 0x9fc330", "<???> @ 0x7ac9c"], "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"}