Function at 0x140097f30
Capabilities:
Disable device guard features via registry on windows
Disable system features via registry on windows
Encode data using xor
Execute command
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [0x140206454]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor r12b, r12b
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp - 0x19], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r15w
lea r8d, [r15 + 0x26]
lea rdx, str.SYSTEMControlSet001ControlCIConfig
lea rcx, [rbp - 0x19]
call fcn.14000b6b0
nop
lea r8, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.14008fd80
nop
lea rcx, [rbp - 0x19]
call fcn.14000b640
mov r13d, 0x80000000
mov r14, qword [rbp + 0x17]
test r14, r14
je 0x140098105
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
lea r8d, [r15 + 0x1f]
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
mov dword [rbp + 0xf], r15d
mov dword [rbp + 7], 4
lea r8, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae r8, qword [rsp + 0x40]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [r15 + 0x10]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rsp + 0x40]
test eax, eax
je 0x140098049
call fcn.14000b640
jmp 0x1400980d0
call fcn.14000b640
cmp dword [rbp + 0xf], 0
je 0x1400980d0
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x40], r15w
mov r8d, Ordinal_35
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
nop
mov dword [rbp + 7], r15d
lea rdx, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140098692
lea rcx, [rsp + 0x40]
call fcn.14000b640
mov r12b, 1
lea rax, [r14 + r13]
cmp rax, 5
jbe 0x1400980fe
cmp r14, 0xffffffff80000007
je 0x1400980fe
cmp r14, 0xffffffff80000060
je 0x1400980fe
cmp r14, 0xffffffff80000050
je 0x1400980fe
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp - 0x69], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x59], xmm0
mov word [rbp - 0x69], r15w
mov r8d, Ordinal_45
lea rdx, str.SYSTEMControlSet001ControlDeviceGuard
lea rcx, [rbp - 0x69]
call fcn.14000b6b0
nop
lea r8, [rbp - 0x69]
lea rcx, [rbp + 0x1f]
call fcn.14008fd80
nop
lea rcx, [rbp - 0x69]
call fcn.14000b640
mov rsi, qword [rbp + 0x1f]
test rsi, rsi
je 0x140098397
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
mov dword [rbp + 0xf], r15d
mov dword [rbp + 7], 4
lea r8, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae r8, qword [rsp + 0x40]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rsp + 0x40]
test eax, eax
je 0x1400981d7
call fcn.14000b640
jmp 0x14009825e
call fcn.14000b640
cmp dword [rbp + 0xf], 0
je 0x14009825e
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x40], r15w
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
nop
mov dword [rbp + 7], r15d
lea rdx, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400986b5
lea rcx, [rsp + 0x40]
call fcn.14000b640
mov r12b, 1
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov r8d, Ordinal_35
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
mov dword [rbp + 0xf], r15d
mov dword [rbp + 7], 4
lea r8, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae r8, qword [rsp + 0x40]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rsp + 0x40]
test eax, eax
je 0x1400982db
call fcn.14000b640
jmp 0x140098362
call fcn.14000b640
cmp dword [rbp + 0xf], 0
je 0x140098362
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x40], r15w
mov r8d, Ordinal_35
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
nop
mov dword [rbp + 7], r15d
lea rdx, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400986d8
lea rcx, [rsp + 0x40]
call fcn.14000b640
mov r12b, 1
lea rax, [rsi + r13]
cmp rax, 5
jbe 0x140098390
cmp rsi, 0xffffffff80000007
je 0x140098390
cmp rsi, 0xffffffff80000060
je 0x140098390
cmp rsi, 0xffffffff80000050
je 0x140098390
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0xf], r15
mov qword [rbp - 0x19], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r15w
mov r8d, reloc.WLDAP32.dll_Ordinal_50
lea rdx, str.SYSTEMControlSet001ControlDeviceGuardScenarios
lea rcx, [rbp - 0x19]
call fcn.14000b6b0
nop
lea r8, [rbp - 0x19]
lea rcx, [rbp + 0xf]
call fcn.14008fd80
nop
lea rcx, [rbp - 0x19]
call fcn.14000b640
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x140098506
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov r8d, Ordinal_35
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
mov dword [rbp + 7], r15d
lea rdx, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.14000b640
test ebx, ebx
jne 0x1400984d1
mov qword [rsp + 0x40], r15
movdqa xmm0, xmmword [0x140209450]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x40], r15w
lea r8d, [rbx + 0x1f]
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rsp + 0x40]
call fcn.14000b6b0
nop
mov dword [rbp + 7], r15d
lea rdx, [rsp + 0x40]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14009866f
lea rcx, [rsp + 0x40]
call fcn.14000b640
lea rax, [rdi + r13]
cmp rax, 5
jbe 0x1400984ff
cmp rdi, 0xffffffff80000007
je 0x1400984ff
cmp rdi, 0xffffffff80000060
je 0x1400984ff
cmp rdi, 0xffffffff80000050
je 0x1400984ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
mov qword [rbp + 0xf], r15
test r12b, r12b
je 0x1400985a2
movdqa xmm0, xmmword [0x14020a310]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmm1, xmmword [0x1402099f0]
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmm0, xmmword [0x14020a1f0]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [str.____7_7fvxi9.___URF_]
movdqa xmmword [rbp - 0x39], xmm1
mov dword [rbp - 0x29], 0x100232b
nop word [rax + rax]
lea eax, [r15 + 0xf]
xor byte [rbp + r15 - 0x69], al
inc r15
cmp r15, 0x42
jb 0x140098550
mov byte [rbp - 0x26], 0
lea rdx, [rbp - 0x69]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14009d760
lea rdx, [0x14009d930]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.shutdown__r
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor bl, bl
jmp 0x1400985a4
mov bl, 1
test rdi, rdi
je 0x1400985d8
lea rax, [rdi + r13]
cmp rax, 5
jbe 0x1400985d8
cmp rdi, 0xffffffff80000007
je 0x1400985d8
cmp rdi, 0xffffffff80000060
je 0x1400985d8
cmp rdi, 0xffffffff80000050
je 0x1400985d8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x14009860c
lea rax, [rsi + r13]
cmp rax, 5
jbe 0x14009860c
cmp rsi, 0xffffffff80000007
je 0x14009860c
cmp rsi, 0xffffffff80000060
je 0x14009860c
cmp rsi, 0xffffffff80000050
je 0x14009860c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x14009863f
lea rax, [r14 + r13]
cmp rax, 5
jbe 0x14009863f
cmp r14, 0xffffffff80000007
je 0x14009863f
cmp r14, 0xffffffff80000060
je 0x14009863f
cmp r14, 0xffffffff80000050
je 0x14009863f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140154010
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.14008fec0
lea rdx, [0x140221680]
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.14008fec0
lea rdx, [0x140221680]
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.14008fec0
lea rdx, [0x140221680]
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.14008fec0
lea rdx, [0x140221680]
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll__CxxThrowException
int3