{"type": "func", "start": 14716636, "end": 14716788, "name": "ASN1_GENERALIZEDTIME_set_string", "pseudocode": "// \n// ASN1_GENERALIZEDTIME_set_string from 0xe08edc to 0xe08f74 (152 bytes)\n// \n// 4 xrefs:\n// > OCSP_crlID_new @ 0xdc41f0\n// > OCSP_archive_cutoff_new @ 0xdc4300\n// > SCT_print @ 0xe7bb48\n// > <???> @ 0x6c1c8\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 ASN1_GENERALIZEDTIME_set_string(__int64 a1, char *a2)\n{\n  int v5[2]; // [xsp+38h] [xbp+38h] BYREF\n  char *v6; // [xsp+40h] [xbp+40h]\n\n  v5[1] = 24;\n  v5[0] = strlen(a2);\n  v6 = a2;\n  if ( !ASN1_GENERALIZEDTIME_check((__int64)v5) )\n    return 0;\n  if ( a1 )\n  {\n    if ( (unsigned int)ASN1_STRING_set(a1, a2, v5[0]) )\n    {\n      *(_DWORD *)(a1 + 4) = 24;\n      return 1;\n    }\n    return 0;\n  }\n  return 1;\n}", "assembly": "; \n; ASN1_GENERALIZEDTIME_set_string from 0xe08edc to 0xe08f74 (152 bytes)\n; \n; 4 xrefs:\n; > OCSP_crlID_new @ 0xdc41f0\n; > OCSP_archive_cutoff_new @ 0xdc4300\n; > SCT_print @ 0xe7bb48\n; > <???> @ 0x6c1c8\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_50]!                                ; +0x0, 0xe08edc\nMOV             X29, SP                                                ; +0x4, 0xe08ee0\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x8, 0xe08ee4\nMOV             X21, X0                                                ; +0xc, 0xe08ee8\nMOV             X0, X1; char *                                         ; +0x10, 0xe08eec\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x14, 0xe08ef0\nMOV             W22, #0x18                                             ; +0x18, 0xe08ef4\nMOV             X19, X1                                                ; +0x1c, 0xe08ef8\nADD             X20, X29, #0x50+var_18                                 ; +0x20, 0xe08efc\nSTR             W22, [X29,#0x50+var_14]                                ; +0x24, 0xe08f00\nBL              .strlen                                                ; +0x28, 0xe08f04\nSTR             W0, [X29,#0x50+var_18]                                 ; +0x2c, 0xe08f08\nMOV             X0, X20                                                ; +0x30, 0xe08f0c\nSTR             X19, [X29,#0x50+var_10]                                ; +0x34, 0xe08f10\nBL              ASN1_GENERALIZEDTIME_check                             ; +0x38, 0xe08f14\nCBZ             W0, loc_E08F4C                                         ; +0x3c, 0xe08f18\nCBZ             X21, loc_E08F60                                        ; +0x40, 0xe08f1c\nLDR             W2, [X20]                                              ; +0x44, 0xe08f20\nMOV             X0, X21; int                                           ; +0x48, 0xe08f24\nMOV             X1, X19; char *                                        ; +0x4c, 0xe08f28\nBL              ASN1_STRING_set                                        ; +0x50, 0xe08f2c\nCBZ             W0, loc_E08F4C                                         ; +0x54, 0xe08f30\nSTR             W22, [X21,#4]                                          ; +0x58, 0xe08f34\nMOV             W0, #1                                                 ; +0x5c, 0xe08f38\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x60, 0xe08f3c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x64, 0xe08f40\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x68, 0xe08f44\nRET                                                                    ; +0x6c, 0xe08f48\nMOV             W0, #0                                                 ; +0x70, 0xe08f4c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x74, 0xe08f50\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x78, 0xe08f54\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x7c, 0xe08f58\nRET                                                                    ; +0x80, 0xe08f5c\nMOV             W0, #1                                                 ; +0x84, 0xe08f60\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x88, 0xe08f64\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x8c, 0xe08f68\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x90, 0xe08f6c\nRET                                                                    ; +0x94, 0xe08f70", "xrefs": ["OCSP_crlID_new @ 0xdc41f0", "OCSP_archive_cutoff_new @ 0xdc4300", "SCT_print @ 0xe7bb48", "<???> @ 0x6c1c8"], "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"}