{"type": "func", "start": 8403152, "end": 8403460, "name": "EVP_CIPHER_type", "pseudocode": "// \n// EVP_CIPHER_type from 0x8038d0 to 0x803a04 (308 bytes)\n// \n// 11 xrefs:\n// > sub_7DF150 @ 0x7df2d8\n// > sub_7DF150 @ 0x7df90c\n// > sub_7E3D80 @ 0x7e40b4\n// > PKCS7_dataInit @ 0x826d88\n// > PKCS7_set_cipher @ 0x829b5c\n// > cms_RecipientInfo_kari_encrypt @ 0x874c68\n// > CMS_add0_recipient_password @ 0x876044\n// > PKCS5_pbe2_set_iv @ 0x8c71ec\n// > PKCS5_pbe2_set_scrypt @ 0x8c74fc\n// > cms_EncryptedContent_init_bio @ 0x8cf4a4\n// > <???> @ 0x6099c\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_CIPHER_type(int a1)\n{\n  int v1; // r0\n  int v2; // r4\n  _DWORD *v4; // r5\n\n  v1 = EVP_CIPHER_nid(a1);\n  v2 = v1;\n  if ( v1 == 429 )\n    return 429;\n  if ( v1 > 429 )\n  {\n    if ( v1 == 654 )\n      return 425;\n    if ( v1 <= 654 )\n    {\n      if ( v1 == 651 )\n        return 425;\n      if ( v1 <= 651 )\n      {\n        if ( v1 != 650 )\n          goto LABEL_25;\n        return 421;\n      }\n      if ( v1 != 652 )\n        return 421;\n    }\n    else\n    {\n      if ( v1 > 657 )\n      {\n        if ( v1 < 660 )\n          return 30;\n        goto LABEL_25;\n      }\n      if ( v1 >= 656 )\n        return 30;\n    }\n    return 429;\n  }\n  if ( v1 == 97 )\n    return 5;\n  if ( v1 > 97 )\n  {\n    if ( v1 == 166 )\n      return 37;\n    if ( v1 <= 166 )\n    {\n      if ( v1 == 98 )\n        return 37;\n      goto LABEL_25;\n    }\n    if ( v1 != 421 )\n    {\n      if ( v1 != 425 )\n        goto LABEL_25;\n      return 425;\n    }\n    return 421;\n  }\n  if ( v1 == 30 )\n    return 30;\n  if ( v1 > 30 )\n  {\n    if ( v1 != 37 )\n    {\n      if ( v1 == 61 )\n        return 30;\n      goto LABEL_25;\n    }\n    return 37;\n  }\n  if ( v1 == 5 )\n    return 5;\nLABEL_25:\n  v4 = (_DWORD *)OBJ_nid2obj(v1);\n  if ( !OBJ_get0_data() )\n    v2 = 0;\n  ASN1_OBJECT_free(v4);\n  return v2;\n}", "assembly": "; \n; EVP_CIPHER_type from 0x8038d0 to 0x803a04 (308 bytes)\n; \n; 11 xrefs:\n; > sub_7DF150 @ 0x7df2d8\n; > sub_7DF150 @ 0x7df90c\n; > sub_7E3D80 @ 0x7e40b4\n; > PKCS7_dataInit @ 0x826d88\n; > PKCS7_set_cipher @ 0x829b5c\n; > cms_RecipientInfo_kari_encrypt @ 0x874c68\n; > CMS_add0_recipient_password @ 0x876044\n; > PKCS5_pbe2_set_iv @ 0x8c71ec\n; > PKCS5_pbe2_set_scrypt @ 0x8c74fc\n; > cms_EncryptedContent_init_bio @ 0x8cf4a4\n; > <???> @ 0x6099c\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-R5,LR}                                             ; +0x0, 0x8038d0\nBL              EVP_CIPHER_nid                                         ; +0x4, 0x8038d4\nLDR             R3, =0x1AD                                             ; +0x8, 0x8038d8\nCMP             R0, R3                                                 ; +0xc, 0x8038dc\nMOV             R4, R0                                                 ; +0x10, 0x8038e0\nBEQ             loc_803940                                             ; +0x14, 0x8038e4\nBGT             loc_80391C                                             ; +0x18, 0x8038e8\nCMP             R0, #0x61 ; 'a'                                        ; +0x1c, 0x8038ec\nBEQ             loc_80397C                                             ; +0x20, 0x8038f0\nBGT             loc_803984                                             ; +0x24, 0x8038f4\nCMP             R0, #0x1E                                              ; +0x28, 0x8038f8\nBEQ             loc_803914                                             ; +0x2c, 0x8038fc\nBLE             loc_803974                                             ; +0x30, 0x803900\nCMP             R0, #0x25 ; '%'                                        ; +0x34, 0x803904\nBEQ             loc_8039E0                                             ; +0x38, 0x803908\nCMP             R0, #0x3D ; '='                                        ; +0x3c, 0x80390c\nBNE             loc_8039A8                                             ; +0x40, 0x803910\nMOV             R0, #0x1E                                              ; +0x44, 0x803914\nPOP             {R3-R5,PC}                                             ; +0x48, 0x803918\nLDR             R3, =0x28E                                             ; +0x4c, 0x80391c\nCMP             R0, R3                                                 ; +0x50, 0x803920\nBEQ             loc_8039D0                                             ; +0x54, 0x803924\nBLE             loc_803948                                             ; +0x58, 0x803928\nLDR             R3, =0x291                                             ; +0x5c, 0x80392c\nCMP             R0, R3                                                 ; +0x60, 0x803930\nBGT             loc_8039E8                                             ; +0x64, 0x803934\nCMP             R0, #0x290                                             ; +0x68, 0x803938\nBGE             loc_803914                                             ; +0x6c, 0x80393c\nLDR             R0, =0x1AD                                             ; +0x70, 0x803940\nPOP             {R3-R5,PC}                                             ; +0x74, 0x803944\nSUB             R3, R3, #3                                             ; +0x78, 0x803948\nCMP             R0, R3                                                 ; +0x7c, 0x80394c\nBEQ             loc_8039D0                                             ; +0x80, 0x803950\nBLE             loc_8039F4                                             ; +0x84, 0x803954\nCMP             R0, #0x28C                                             ; +0x88, 0x803958\nBEQ             loc_803940                                             ; +0x8c, 0x80395c\nLDR             R3, =0x28D                                             ; +0x90, 0x803960\nCMP             R0, R3                                                 ; +0x94, 0x803964\nBNE             loc_8039A8                                             ; +0x98, 0x803968\nLDR             R0, =0x1A5                                             ; +0x9c, 0x80396c\nPOP             {R3-R5,PC}                                             ; +0xa0, 0x803970\nCMP             R0, #5                                                 ; +0xa4, 0x803974\nBNE             loc_8039A8                                             ; +0xa8, 0x803978\nMOV             R0, #5                                                 ; +0xac, 0x80397c\nPOP             {R3-R5,PC}                                             ; +0xb0, 0x803980\nCMP             R0, #0xA6                                              ; +0xb4, 0x803984\nBEQ             loc_8039E0                                             ; +0xb8, 0x803988\nBLE             loc_8039D8                                             ; +0xbc, 0x80398c\nLDR             R3, =0x1A5                                             ; +0xc0, 0x803990\nCMP             R0, R3                                                 ; +0xc4, 0x803994\nBEQ             loc_80396C                                             ; +0xc8, 0x803998\nADD             R3, R3, #4                                             ; +0xcc, 0x80399c\nCMP             R0, R3                                                 ; +0xd0, 0x8039a0\nBEQ             loc_8039D0                                             ; +0xd4, 0x8039a4\nMOV             R0, R4                                                 ; +0xd8, 0x8039a8\nBL              OBJ_nid2obj                                            ; +0xdc, 0x8039ac\nMOV             R5, R0                                                 ; +0xe0, 0x8039b0\nBL              OBJ_get0_data                                          ; +0xe4, 0x8039b4\nCMP             R0, #0                                                 ; +0xe8, 0x8039b8\nMOVEQ           R4, #0                                                 ; +0xec, 0x8039bc\nMOV             R0, R5                                                 ; +0xf0, 0x8039c0\nBL              ASN1_OBJECT_free                                       ; +0xf4, 0x8039c4\nMOV             R0, R4                                                 ; +0xf8, 0x8039c8\nPOP             {R3-R5,PC}                                             ; +0xfc, 0x8039cc\nLDR             R0, =0x1A9                                             ; +0x100, 0x8039d0\nPOP             {R3-R5,PC}                                             ; +0x104, 0x8039d4\nCMP             R0, #0x62 ; 'b'                                        ; +0x108, 0x8039d8\nBNE             loc_8039A8                                             ; +0x10c, 0x8039dc\nMOV             R0, #0x25 ; '%'                                        ; +0x110, 0x8039e0\nPOP             {R3-R5,PC}                                             ; +0x114, 0x8039e4\nCMP             R0, #0x294                                             ; +0x118, 0x8039e8\nBLT             loc_803914                                             ; +0x11c, 0x8039ec\nB               loc_8039A8                                             ; +0x120, 0x8039f0\nSUB             R3, R3, #1                                             ; +0x124, 0x8039f4\nCMP             R0, R3                                                 ; +0x128, 0x8039f8\nBEQ             loc_80396C                                             ; +0x12c, 0x8039fc\nB               loc_8039A8                                             ; +0x130, 0x803a00", "xrefs": ["sub_7DF150 @ 0x7df2d8", "sub_7DF150 @ 0x7df90c", "sub_7E3D80 @ 0x7e40b4", "PKCS7_dataInit @ 0x826d88", "PKCS7_set_cipher @ 0x829b5c", "cms_RecipientInfo_kari_encrypt @ 0x874c68", "CMS_add0_recipient_password @ 0x876044", "PKCS5_pbe2_set_iv @ 0x8c71ec", "PKCS5_pbe2_set_scrypt @ 0x8c74fc", "cms_EncryptedContent_init_bio @ 0x8cf4a4", "<???> @ 0x6099c"], "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"}