Function at 0x140030f8c
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 rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov rax, qword [0x1400d9e00]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [0x1400aeb54]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor r13d, r13d
mov r12b, r13b
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [r13 + 0x26]
lea rdx, str.SYSTEMControlSet001ControlCIConfig
lea rcx, [rbp - 0x59]
call fcn.14002c774
nop
mov qword [rbp - 0x69], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, 0x2011f
lea r8, [rbp - 0x59]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x69]
call fcn.140030504
nop
mov r15d, 0x1000
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140031067
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, r15
jb 0x140031062
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031062
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
movdqa xmm0, xmmword [0x1400afd10]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov r14d, 1
mov rsi, qword [rbp - 0x69]
test rsi, rsi
je 0x1400311e3
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r8d, [r14 + 0x1e]
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x29]
call fcn.14002c774
mov dword [rbp - 0x71], r13d
mov dword [rbp - 0x79], 4
lea r8, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova r8, qword [rbp - 0x29]
lea rax, [rbp - 0x79]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor edx, edx
lea r9d, [r14 + 0xf]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov edi, dword [rbp - 0x71]
test eax, eax
cmovne edi, eax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140031137
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, r15
jb 0x140031132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031132
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
test ebx, ebx
jne 0x1400311aa
test edi, edi
je 0x1400311aa
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r8d, [rbx + 0x1f]
lea rdx, str.VulnerableDriverBlocklistEnable
lea rcx, [rbp - 0x29]
call fcn.14002c774
nop
mov dword [rbp - 0x79], r13d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x79]
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 0x140031923
lea rcx, [rbp - 0x29]
call fcn.140033264
mov r12b, r14b
mov eax, 0x80000000
add rax, rsi
cmp rax, 5
jbe 0x1400311dc
cmp rsi, 0xffffffff80000007
je 0x1400311dc
cmp rsi, 0xffffffff80000060
je 0x1400311dc
cmp rsi, 0xffffffff80000050
je 0x1400311dc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rbp - 0x69], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, Ordinal_41
lea rdx, str.SYSTEMControlSet001ControlDeviceGuard
lea rcx, [rbp - 0x29]
call fcn.14002c774
nop
mov qword [rbp - 0x61], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, 0x2011f
lea r8, [rbp - 0x29]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x61]
call fcn.140030504
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140031276
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, r15
jb 0x140031271
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031271
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
movdqa xmm0, xmmword [0x1400afd10]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
mov rdi, qword [rbp - 0x61]
test rdi, rdi
je 0x140031562
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x59]
call fcn.14002c774
mov dword [rbp - 0x71], r13d
mov dword [rbp - 0x79], 4
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 7
cmova r8, qword [rbp - 0x59]
lea rax, [rbp - 0x79]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x71]
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 r15d, dword [rbp - 0x71]
test eax, eax
cmovne r15d, eax
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140031348
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031343
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
test ebx, ebx
jne 0x1400313bc
test r15d, r15d
je 0x1400313bc
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [rbx + 0x21]
lea rdx, str.EnableVirtualizationBasedSecurity
lea rcx, [rbp - 0x59]
call fcn.14002c774
nop
mov dword [rbp - 0x79], r13d
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 7
cmova rdx, qword [rbp - 0x59]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x79]
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 0x140031946
lea rcx, [rbp - 0x59]
call fcn.140033264
mov r12b, r14b
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, Ordinal_33
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x59]
call fcn.14002c774
mov dword [rbp - 0x71], r13d
mov dword [rbp - 0x79], 4
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 7
cmova r8, qword [rbp - 0x59]
lea rax, [rbp - 0x79]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x71]
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 r15d, dword [rbp - 0x71]
test eax, eax
cmovne r15d, eax
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14003146f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003146a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003146a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
test ebx, ebx
jne 0x140031523
test r15d, r15d
je 0x140031523
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [rbx + 0x1f]
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x59]
call fcn.14002c774
nop
mov dword [rbp - 0x79], r13d
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 7
cmova rdx, qword [rbp - 0x59]
lea ecx, [rbx + 4]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140031969
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140031520
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003151b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003151b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
mov r12b, r14b
mov eax, 0x80000000
add rax, rdi
cmp rax, 5
jbe 0x140031555
cmp rdi, 0xffffffff80000007
je 0x140031555
cmp rdi, 0xffffffff80000060
je 0x140031555
cmp rdi, 0xffffffff80000050
je 0x140031555
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
mov qword [rbp - 0x61], r13
mov r15d, 0x1000
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_50
lea rdx, str.SYSTEMControlSet001ControlDeviceGuardScenarios
lea rcx, [rbp - 0x59]
call fcn.14002c774
nop
mov qword [rbp - 0x71], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, 0x2011f
lea r8, [rbp - 0x59]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x71]
call fcn.140030504
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x1400315f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, r15
jb 0x1400315f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400315f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
movdqa xmm0, xmmword [0x1400afd10]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x140031799
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, Ordinal_33
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x29]
call fcn.14002c774
mov dword [rbp - 0x79], r13d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
mov ecx, 4
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r15d, eax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1400316b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400316ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400316ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
test r15d, r15d
jne 0x14003175c
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r8d, [r15 + 0x1f]
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x29]
call fcn.14002c774
nop
mov dword [rbp - 0x79], r13d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea ecx, [r15 + 4]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140031900
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x14003175c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031757
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031757
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a2ff8
mov r15d, 0x80000000
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x140031790
cmp rbx, 0xffffffff80000007
je 0x140031790
cmp rbx, 0xffffffff80000060
je 0x140031790
cmp rbx, 0xffffffff80000050
je 0x140031790
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rbp - 0x71], rbx
jmp 0x14003179f
mov r15d, 0x80000000
test r12b, r12b
je 0x140031835
movdqa xmm0, xmmword [0x1400b0020]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [0x1400b0030]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x1400aff70]
movdqa xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1400afe70]
movdqa xmmword [rbp + 7], xmm1
mov dword [rbp + 0x17], 0x1007e68
mov rdx, r13
lea eax, [rdx - 0x34]
xor byte [rbp + rdx - 0x29], al
add rdx, r14
cmp rdx, 0x42
jb 0x1400317e6
mov byte [rbp + 0x1a], r13b
lea rdx, [rbp - 0x29]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
lea rdx, [0x14002e144]
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]
mov r14b, r13b
test rbx, rbx
je 0x140031869
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x140031869
cmp rbx, 0xffffffff80000007
je 0x140031869
cmp rbx, 0xffffffff80000060
je 0x140031869
cmp rbx, 0xffffffff80000050
je 0x140031869
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14003189d
lea rax, [rdi + r15]
cmp rax, 5
jbe 0x14003189d
cmp rdi, 0xffffffff80000007
je 0x14003189d
cmp rdi, 0xffffffff80000060
je 0x14003189d
cmp rdi, 0xffffffff80000050
je 0x14003189d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x1400318d0
lea rax, [rsi + r15]
cmp rax, 5
jbe 0x1400318d0
cmp rsi, 0xffffffff80000007
je 0x1400318d0
cmp rsi, 0xffffffff80000060
je 0x1400318d0
cmp rsi, 0xffffffff80000050
je 0x1400318d0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a3090
lea r11, [rsp + 0xf0]
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 - 0x59]
call fcn.14002eb40
lea rdx, [0x1400d0d48]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.14002eb40
lea rdx, [0x1400d0d48]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.14002eb40
lea rdx, [0x1400d0d48]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_write_DWORD_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.14002eb40
lea rdx, [0x1400d0d48]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3