From afb21b2b396c785fc681dfc739fb3fb356d0fd5e Mon Sep 17 00:00:00 2001 From: Karmaz95 Date: Wed, 19 Jun 2024 19:49:11 +0200 Subject: [PATCH] --- tests/quarantine_get_flags.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/quarantine_get_flags.c diff --git a/tests/quarantine_get_flags.c b/tests/quarantine_get_flags.c new file mode 100644 index 0000000..62ef6b8 --- /dev/null +++ b/tests/quarantine_get_flags.c @@ -0,0 +1,21 @@ +__int64 __fastcall quarantine_get_flags(__int64 a1, __int64 a2, int a3, char *a4) +{ + __int64 v8; // x0 + char *v9; // x21 + __int64 v10; // x22 + int v11; // w1 + int v13[2]; // [xsp+8h] [xbp-38h] BYREF + + *(_QWORD *)v13 = 4096LL; + v8 = kalloc_data(4097LL, 0LL); + if ( !v8 ) + return 12LL; + v9 = (char *)v8; + v10 = quarantine_getinfo(a1, v8, v13, a2); + v11 = v13[0]; + v9[*(_QWORD *)v13] = 0; + if ( !(_DWORD)v10 ) + v10 = quarantine_info_parse(v9, v11, a3, a4); + kfree_data(v9, 4097LL); + return v10; +} \ No newline at end of file