{"type": "func", "start": 9140332, "end": 9140556, "name": "EVP_PBE_alg_add_type", "pseudocode": "// \n// EVP_PBE_alg_add_type from 0x8b786c to 0x8b794c (224 bytes)\n// \n// 2 xrefs:\n// > EVP_PBE_alg_add @ 0x8b79b4\n// > <???> @ 0x6b02c\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 EVP_PBE_alg_add_type(int a1, int a2, int a3, int a4, int a5)\n{\n  _DWORD *v9; // r0\n  void *v10; // r4\n\n  if ( dword_AD48F0 || (dword_AD48F0 = (int)OPENSSL_sk_new((int)sub_8B7834)) != 0 )\n  {\n    v9 = CRYPTO_malloc(dword_14, (int)\"crypto/evp/evp_pbe.c\", 167);\n    v10 = v9;\n    if ( v9 )\n    {\n      *v9 = a1;\n      v9[1] = a2;\n      v9[2] = a3;\n      v9[3] = a4;\n      v9[4] = a5;\n      if ( OPENSSL_sk_push((int *)dword_AD48F0, (int)v9) )\n        return 1;\n      CRYPTO_free(v10, (int)\"crypto/evp/evp_pbe.c\", 177);\n    }\n  }\n  ERR_put_error(6, 160, 65, (int)\"crypto/evp/evp_pbe.c\", 183);\n  return 0;\n}", "assembly": "; \n; EVP_PBE_alg_add_type from 0x8b786c to 0x8b794c (224 bytes)\n; \n; 2 xrefs:\n; > EVP_PBE_alg_add @ 0x8b79b4\n; > <???> @ 0x6b02c\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-R9,LR}                                             ; +0x0, 0x8b786c\nLDR             R4, =(dword_AD48F0 - 0x8B7880)                         ; +0x4, 0x8b7870\nSUB             SP, SP, #0xC                                           ; +0x8, 0x8b7874\nADD             R4, PC, R4; dword_AD48F0                               ; +0xc, 0x8b7878\nLDR             R12, [R4]                                              ; +0x10, 0x8b787c\nMOV             R8, R0                                                 ; +0x14, 0x8b7880\nCMP             R12, #0                                                ; +0x18, 0x8b7884\nMOV             R7, R1                                                 ; +0x1c, 0x8b7888\nMOV             R9, R2                                                 ; +0x20, 0x8b788c\nMOV             R6, R3                                                 ; +0x24, 0x8b7890\nBEQ             loc_8B7930                                             ; +0x28, 0x8b7894\nLDR             R5, =(aCryptoEvpEvpPb - 0x8B78A8); \"crypto/evp/evp_pbe.c\" ; +0x2c, 0x8b7898\nMOV             R0, #0x14                                              ; +0x30, 0x8b789c\nADD             R5, PC, R5; \"crypto/evp/evp_pbe.c\"                     ; +0x34, 0x8b78a0\nMOV             R1, R5                                                 ; +0x38, 0x8b78a4\nMOV             R2, #0xA7                                              ; +0x3c, 0x8b78a8\nBL              CRYPTO_malloc                                          ; +0x40, 0x8b78ac\nSUBS            R4, R0, #0                                             ; +0x44, 0x8b78b0\nBEQ             loc_8B7904                                             ; +0x48, 0x8b78b4\nLDR             R12, =(dword_AD48F0 - 0x8B78C8)                        ; +0x4c, 0x8b78b8\nLDR             R3, [SP,#0xC+arg_0]                                    ; +0x50, 0x8b78bc\nADD             R12, PC, R12; dword_AD48F0                             ; +0x54, 0x8b78c0\nSTR             R8, [R4]                                               ; +0x58, 0x8b78c4\nSTMIB           R4, {R7,R9}                                            ; +0x5c, 0x8b78c8\nSTR             R6, [R4,#0xC]                                          ; +0x60, 0x8b78cc\nSTR             R3, [R4,#0x10]                                         ; +0x64, 0x8b78d0\nLDR             R0, [R12]                                              ; +0x68, 0x8b78d4\nMOV             R1, R4                                                 ; +0x6c, 0x8b78d8\nBL              OPENSSL_sk_push                                        ; +0x70, 0x8b78dc\nCMP             R0, #0                                                 ; +0x74, 0x8b78e0\nMOVNE           R0, #1                                                 ; +0x78, 0x8b78e4\nBEQ             loc_8B78F4                                             ; +0x7c, 0x8b78e8\nADD             SP, SP, #0xC                                           ; +0x80, 0x8b78ec\nPOP             {R4-R9,PC}                                             ; +0x84, 0x8b78f0\nMOV             R0, R4                                                 ; +0x88, 0x8b78f4\nMOV             R1, R5                                                 ; +0x8c, 0x8b78f8\nMOV             R2, #0xB1                                              ; +0x90, 0x8b78fc\nBL              CRYPTO_free                                            ; +0x94, 0x8b7900\nMOV             R3, #0xB7                                              ; +0x98, 0x8b7904\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x9c, 0x8b7908\nLDR             R3, =(aCryptoEvpEvpPb - 0x8B7924); \"crypto/evp/evp_pbe.c\" ; +0xa0, 0x8b790c\nMOV             R0, #6                                                 ; +0xa4, 0x8b7910\nMOV             R1, #0xA0                                              ; +0xa8, 0x8b7914\nMOV             R2, #0x41 ; 'A'                                        ; +0xac, 0x8b7918\nADD             R3, PC, R3; \"crypto/evp/evp_pbe.c\"                     ; +0xb0, 0x8b791c\nBL              ERR_put_error                                          ; +0xb4, 0x8b7920\nMOV             R0, #0                                                 ; +0xb8, 0x8b7924\nADD             SP, SP, #0xC                                           ; +0xbc, 0x8b7928\nPOP             {R4-R9,PC}                                             ; +0xc0, 0x8b792c\nLDR             R0, =(sub_8B7834 - 0x8B793C)                           ; +0xc4, 0x8b7930\nADD             R0, PC, R0; sub_8B7834                                 ; +0xc8, 0x8b7934\nBL              OPENSSL_sk_new                                         ; +0xcc, 0x8b7938\nCMP             R0, #0                                                 ; +0xd0, 0x8b793c\nSTR             R0, [R4]                                               ; +0xd4, 0x8b7940\nBNE             loc_8B7898                                             ; +0xd8, 0x8b7944\nB               loc_8B7904                                             ; +0xdc, 0x8b7948", "xrefs": ["EVP_PBE_alg_add @ 0x8b79b4", "<???> @ 0x6b02c"], "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"}