Function at 0x1400edaa0
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 [0x140215080]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [0x1401e3124]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor r13b, r13b
xor r14d, r14d
mov qword [rbp + 0x17], r14
lea rdx, str.SYSTEMControlSet001ControlCIConfig
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
nop
lea r8, [rbp - 0x79]
lea rcx, [rbp + 0x17]
call fcn.1400ecd50
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400edb4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edb46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edb46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
movdqa xmm0, xmmword [0x1401e4970]
movdqu xmmword [rbp - 0x69], xmm0
mov word [rbp - 0x79], r14w
mov rsi, qword [rbp + 0x17]
test rsi, rsi
setne r15b
test rsi, rsi
je 0x1400edcaf
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x49]
call fcn.1400f11e0
mov dword [rbp + 0xf], r14d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova 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], r14
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 - 0x31]
cmp rdx, 7
jbe 0x1400edc0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edc08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edc08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
test ebx, ebx
jne 0x1400edcaf
test edi, edi
je 0x1400edcaf
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x49]
call fcn.1400f11e0
nop
mov dword [rbp + 7], r14d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova 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, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400ee3f5
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400edcac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edca7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edca7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
mov r13b, 1
mov ebx, 0x80000000
test r15b, r15b
je 0x1400edcee
lea rax, [rsi + rbx]
cmp rax, 5
jbe 0x1400edce7
cmp rsi, 0xffffffff80000007
je 0x1400edce7
cmp rsi, 0xffffffff80000060
je 0x1400edce7
cmp rsi, 0xffffffff80000050
je 0x1400edce7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], r14
lea rdx, str.SYSTEMControlSet001ControlDeviceGuard
lea rcx, [rbp - 0x49]
call fcn.1400f11e0
nop
lea r8, [rbp - 0x49]
lea rcx, [rbp + 0x1f]
call fcn.1400ecd50
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400edd54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edd4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edd4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
movdqa xmm0, xmmword [0x1401e4970]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r14w
mov rdi, qword [rbp + 0x1f]
test rdi, rdi
setne r12b
test rdi, rdi
je 0x1400ee001
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
mov dword [rbp + 0xf], r14d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova r8, qword [rbp - 0x79]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov r15d, dword [rbp + 0xf]
test eax, eax
cmovne r15d, eax
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400ede18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ede13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ede13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
test ebx, ebx
jne 0x1400edebb
test r15d, r15d
je 0x1400edebb
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
nop
mov dword [rbp + 7], r14d
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rdx, qword [rbp - 0x79]
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 0x1400ee418
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400edeb8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edeb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edeb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
mov r13b, 1
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
mov dword [rbp + 0xf], r14d
mov dword [rbp + 7], 4
lea r8, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova r8, qword [rbp - 0x79]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov r15d, dword [rbp + 0xf]
test eax, eax
cmovne r15d, eax
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400edf59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edf54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edf54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
test ebx, ebx
jne 0x1400edffc
test r15d, r15d
je 0x1400edffc
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
nop
mov dword [rbp + 7], r14d
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rdx, qword [rbp - 0x79]
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 0x1400ee43b
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400edff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400edff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400edff4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
mov r13b, 1
mov ebx, 0x80000000
test r12b, r12b
je 0x1400ee03b
lea rax, [rdi + rbx]
cmp rax, 5
jbe 0x1400ee034
cmp rdi, 0xffffffff80000007
je 0x1400ee034
cmp rdi, 0xffffffff80000060
je 0x1400ee034
cmp rdi, 0xffffffff80000050
je 0x1400ee034
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rbp + 0x1f], r14
lea rdx, str.SYSTEMControlSet001ControlDeviceGuardScenarios
lea rcx, [rbp - 0x79]
call fcn.1400f11e0
nop
mov qword [rbp + 7], r14
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rdx, qword [rbp - 0x79]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400ee45e
mov rbx, qword [rbp + 7]
mov qword [rbp + 0xf], rbx
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400ee0e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ee0df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ee0df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
movdqa xmm0, xmmword [0x1401e4970]
movdqu xmmword [rbp - 0x69], xmm0
mov word [rbp - 0x79], r14w
test rbx, rbx
setne r12b
test rbx, rbx
je 0x1400ee229
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x49]
call fcn.1400f11e0
mov dword [rbp + 7], r14d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rdx, qword [rbp - 0x49]
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 r15d, eax
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400ee191
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ee18c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ee18c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
test r15d, r15d
jne 0x1400ee229
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x49]
call fcn.1400f11e0
nop
mov dword [rbp + 7], r14d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rdx, qword [rbp - 0x49]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 4]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400ee3d2
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400ee229
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ee224
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ee224
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015ea8c
mov r15d, 0x80000000
test r12b, r12b
je 0x1400ee269
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x1400ee262
cmp rbx, 0xffffffff80000007
je 0x1400ee262
cmp rbx, 0xffffffff80000060
je 0x1400ee262
cmp rbx, 0xffffffff80000050
je 0x1400ee262
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
mov qword [rbp + 0xf], rbx
test r13b, r13b
je 0x1400ee303
movdqa xmm0, xmmword [0x1401e5700]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [str.rv9jiym]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [0x1401e5360]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [0x1401e50e0]
movdqa xmmword [rbp - 0x19], xmm1
mov dword [rbp - 9], 0x1003b23
nop dword [rax]
lea eax, [r14 + 7]
xor byte [rbp + r14 - 0x49], al
inc r14
cmp r14, 0x42
jb 0x1400ee2b0
mov byte [rbp - 6], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400f20b0
lea rdx, [0x1400f2280]
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 r14b, r14b
jmp 0x1400ee306
mov r14b, 1
test rbx, rbx
je 0x1400ee33a
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x1400ee33a
cmp rbx, 0xffffffff80000007
je 0x1400ee33a
cmp rbx, 0xffffffff80000060
je 0x1400ee33a
cmp rbx, 0xffffffff80000050
je 0x1400ee33a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x1400ee36e
lea rax, [rdi + r15]
cmp rax, 5
jbe 0x1400ee36e
cmp rdi, 0xffffffff80000007
je 0x1400ee36e
cmp rdi, 0xffffffff80000060
je 0x1400ee36e
cmp rdi, 0xffffffff80000050
je 0x1400ee36e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x1400ee3a1
lea rax, [rsi + r15]
cmp rax, 5
jbe 0x1400ee3a1
cmp rsi, 0xffffffff80000007
je 0x1400ee3a1
cmp rsi, 0xffffffff80000060
je 0x1400ee3a1
cmp rsi, 0xffffffff80000050
je 0x1400ee3a1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14015e7f0
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 - 0x79]
call fcn.1400ece90
lea rdx, [0x140210bc0]
lea rcx, [rbp - 0x79]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x79]
call fcn.1400ece90
lea rdx, [0x140210bc0]
lea rcx, [rbp - 0x79]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.1400ece90
lea rdx, [0x140210bc0]
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.1400ece90
lea rdx, [0x140210bc0]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.RegCreateKeyExW_failed.
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.1400ece90
lea rdx, [0x140210bc0]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
int3