Function at 0x14004a220
Capabilities:
Disable device guard features via registry on windows
Disable system features via registry on windows
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, 0xd0
mov rax, qword [0x140062010]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12b, r12b
xor r13d, r13d
mov qword [rbp + 0x17], r13
lea rdx, str.SYSTEMCurrentControlSetControlCIConfig
lea rcx, [rbp - 0x49]
call fcn.14004ce80
nop
lea r8, [rbp - 0x49]
lea rcx, [rbp + 0x17]
call fcn.14004a010
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a2be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a2b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a2b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
movdqa xmm0, xmmword [0x1400587e0]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r13w
mov rsi, qword [rbp + 0x17]
test rsi, rsi
setne r14b
test rsi, rsi
je 0x14004a422
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x21]
call fcn.14004ce80
mov dword [rbp + 0xf], r13d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae r8, qword [rbp - 0x21]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov edi, dword [rbp + 0xf]
test eax, eax
cmovne edi, eax
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14004a380
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a37b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a37b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
test ebx, ebx
jne 0x14004a422
test edi, edi
je 0x14004a422
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x21]
call fcn.14004ce80
nop
mov dword [rbp + 7], r13d
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004ab41
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14004a41f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a41a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a41a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
mov r12b, 1
mov ebx, 0x80000000
test r14b, r14b
je 0x14004a461
lea rax, [rsi + rbx]
cmp rax, 5
jbe 0x14004a45a
cmp rsi, 0xffffffff80000007
je 0x14004a45a
cmp rsi, 0xffffffff80000060
je 0x14004a45a
cmp rsi, 0xffffffff80000050
je 0x14004a45a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rbp + 0x17], r13
mov qword [rbp + 0x1f], r13
lea rdx, str.SYSTEMCurrentControlSetControlDeviceGuard
lea rcx, [rbp - 0x21]
call fcn.14004ce80
nop
lea r8, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.14004a010
nop
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14004a4c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a4c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a4c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
movdqa xmm0, xmmword [0x1400587e0]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], r13w
mov rdi, qword [rbp + 0x1f]
test rdi, rdi
setne r15b
test rdi, rdi
je 0x14004a774
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x49]
call fcn.14004ce80
mov dword [rbp + 0xf], r13d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae r8, qword [rbp - 0x49]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov r14d, dword [rbp + 0xf]
test eax, eax
cmovne r14d, eax
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a58b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a586
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
test ebx, ebx
jne 0x14004a62e
test r14d, r14d
je 0x14004a62e
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x49]
call fcn.14004ce80
nop
mov dword [rbp + 7], r13d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
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 0x14004ab64
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a62b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a626
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a626
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
mov r12b, 1
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x49]
call fcn.14004ce80
mov dword [rbp + 0xf], r13d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae r8, qword [rbp - 0x49]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov r14d, dword [rbp + 0xf]
test eax, eax
cmovne r14d, eax
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a6cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a6c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a6c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
test ebx, ebx
jne 0x14004a76f
test r14d, r14d
je 0x14004a76f
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x49]
call fcn.14004ce80
nop
mov dword [rbp + 7], r13d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
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 0x14004ab87
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a76c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a767
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a767
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
mov r12b, 1
mov ebx, 0x80000000
test r15b, r15b
je 0x14004a7ae
lea rax, [rdi + rbx]
cmp rax, 5
jbe 0x14004a7a7
cmp rdi, 0xffffffff80000007
je 0x14004a7a7
cmp rdi, 0xffffffff80000060
je 0x14004a7a7
cmp rdi, 0xffffffff80000050
je 0x14004a7a7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
mov qword [rbp + 0x1f], r13
lea rdx, str.SYSTEMCurrentControlSetControlDeviceGuardScenarios
lea rcx, [rbp - 0x49]
call fcn.14004ce80
nop
mov qword [rbp + 7], r13
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
mov qword [rsp + 0x40], r13
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004abaa
mov rbx, qword [rbp + 7]
mov qword [rbp + 0xf], rbx
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14004a857
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a852
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a852
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
movdqa xmm0, xmmword [0x1400587e0]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r13w
test rbx, rbx
setne r15b
test rbx, rbx
je 0x14004a99c
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x21]
call fcn.14004ce80
mov dword [rbp + 7], r13d
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14004a904
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a8ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a8ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
test r14d, r14d
jne 0x14004a99c
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x21]
call fcn.14004ce80
nop
mov dword [rbp + 7], r13d
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004ab1e
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14004a99c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a997
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a997
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004f280
test r15b, r15b
mov r15d, 0x80000000
je 0x14004a9dc
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x14004a9d5
cmp rbx, 0xffffffff80000007
je 0x14004a9d5
cmp rbx, 0xffffffff80000060
je 0x14004a9d5
cmp rbx, 0xffffffff80000050
je 0x14004a9d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rbp + 0xf], rbx
test r12b, r12b
je 0x14004aa4f
lea rdx, str.____Settings_Have_Been_Prepared_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14004dca0
lea rdx, [0x14004de70]
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, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.____Your_Device_Will_Be_Restarted_In_10_Seconds.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14004dca0
lea rdx, [0x14004de70]
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, 0x1b58
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 r14b, r14b
jmp 0x14004aa52
mov r14b, 1
test rbx, rbx
je 0x14004aa86
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x14004aa86
cmp rbx, 0xffffffff80000007
je 0x14004aa86
cmp rbx, 0xffffffff80000060
je 0x14004aa86
cmp rbx, 0xffffffff80000050
je 0x14004aa86
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14004aaba
lea rax, [rdi + r15]
cmp rax, 5
jbe 0x14004aaba
cmp rdi, 0xffffffff80000007
je 0x14004aaba
cmp rdi, 0xffffffff80000060
je 0x14004aaba
cmp rdi, 0xffffffff80000050
je 0x14004aaba
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x14004aaed
lea rax, [rsi + r15]
cmp rax, 5
jbe 0x14004aaed
cmp rsi, 0xffffffff80000007
je 0x14004aaed
cmp rsi, 0xffffffff80000060
je 0x14004aaed
cmp rsi, 0xffffffff80000050
je 0x14004aaed
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004f190
lea r11, [rsp + 0xd0]
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 - 0x49]
call fcn.14004a150
lea rdx, [0x14005f798]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14004a150
lea rdx, [0x14005f798]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x21]
call fcn.14004a150
lea rdx, [0x14005f798]
lea rcx, [rbp - 0x21]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x21]
call fcn.14004a150
lea rdx, [0x14005f798]
lea rcx, [rbp - 0x21]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.RegCreateKeyExW_failed.
mov edx, eax
lea rcx, [rbp - 0x21]
call fcn.14004a150
lea rdx, [0x14005f798]
lea rcx, [rbp - 0x21]
call sub.VCRUNTIME140.dll__CxxThrowException
int3