{"type": "func", "start": 15079992, "end": 15080128, "name": "EVP_PBE_alg_add", "pseudocode": "// \n// EVP_PBE_alg_add from 0xe61a38 to 0xe61ac0 (136 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x3d7b8\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\n__int64 __fastcall EVP_PBE_alg_add(unsigned int a1, unsigned int *a2, unsigned int *a3, __int64 a4)\n{\n  unsigned int v7; // w2\n  unsigned int v8; // w3\n  unsigned int v9; // w1\n  __int64 v10; // x4\n  unsigned int v12; // [xsp+38h] [xbp+38h]\n\n  if ( !a2 )\n  {\n    v7 = -1;\n    if ( a3 )\n      goto LABEL_3;\nLABEL_6:\n    v9 = a1;\n    v10 = a4;\n    v8 = -1;\n    return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);\n  }\n  v7 = EVP_CIPHER_nid(a2);\n  if ( !a3 )\n    goto LABEL_6;\nLABEL_3:\n  v12 = v7;\n  v8 = EVP_MD_type(a3);\n  v7 = v12;\n  v9 = a1;\n  v10 = a4;\n  return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);\n}", "assembly": "; \n; EVP_PBE_alg_add from 0xe61a38 to 0xe61ac0 (136 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x3d7b8\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xe61a38\nMOV             X29, SP                                                ; +0x4, 0xe61a3c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xe61a40\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0xe61a44\nMOV             X19, X2                                                ; +0x10, 0xe61a48\nMOV             W21, W0                                                ; +0x14, 0xe61a4c\nMOV             X20, X3                                                ; +0x18, 0xe61a50\nCBZ             X1, loc_E61A98                                         ; +0x1c, 0xe61a54\nMOV             X0, X1                                                 ; +0x20, 0xe61a58\nBL              EVP_CIPHER_nid                                         ; +0x24, 0xe61a5c\nMOV             W2, W0                                                 ; +0x28, 0xe61a60\nCBZ             X19, loc_E61AA0                                        ; +0x2c, 0xe61a64\nMOV             X0, X19                                                ; +0x30, 0xe61a68\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x34, 0xe61a6c\nBL              EVP_MD_type                                            ; +0x38, 0xe61a70\nMOV             W3, W0                                                 ; +0x3c, 0xe61a74\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x40, 0xe61a78\nMOV             W1, W21                                                ; +0x44, 0xe61a7c\nMOV             X4, X20                                                ; +0x48, 0xe61a80\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x4c, 0xe61a84\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x50, 0xe61a88\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x54, 0xe61a8c\nMOV             W0, #0                                                 ; +0x58, 0xe61a90\nB               EVP_PBE_alg_add_type                                   ; +0x5c, 0xe61a94\nMOV             W2, #0xFFFFFFFF                                        ; +0x60, 0xe61a98\nCBNZ            X19, loc_E61A68                                        ; +0x64, 0xe61a9c\nMOV             W1, W21                                                ; +0x68, 0xe61aa0\nMOV             X4, X20                                                ; +0x6c, 0xe61aa4\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x70, 0xe61aa8\nMOV             W3, #0xFFFFFFFF                                        ; +0x74, 0xe61aac\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x78, 0xe61ab0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x7c, 0xe61ab4\nMOV             W0, #0                                                 ; +0x80, 0xe61ab8\nB               EVP_PBE_alg_add_type                                   ; +0x84, 0xe61abc", "xrefs": ["<???> @ 0x3d7b8"], "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"}