Function at 0x140048970
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 [0x1400fc800]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [0x1400ce054]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ebx, ebx
mov r13b, bl
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [rbx + 0x26]
lea rdx, str.SYSTEMControlSet001ControlCIConfig
lea rcx, [rbp - 0x59]
call fcn.140040308
nop
mov qword [rbp - 0x69], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9d, 0x2011f
lea r8, [rbp - 0x59]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x69]
call fcn.140044248
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140048a47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048a42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048a42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
movdqa xmm0, xmmword [0x1400cf2b0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], bx
mov rsi, qword [rbp - 0x69]
test rsi, rsi
setne r15b
mov r14d, 1
test rsi, rsi
je 0x140048b98
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.140040308
mov dword [rbp - 0x71], ebx
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], rbx
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 0x140048b20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048b1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048b1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
test ebx, ebx
jne 0x140048b96
xor ebx, ebx
test edi, edi
je 0x140048b98
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.140040308
nop
mov dword [rbp - 0x79], ebx
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 0x140049336
lea rcx, [rbp - 0x29]
call fcn.140052e90
mov r13b, r14b
jmp 0x140048b98
xor ebx, ebx
mov eax, 0x80000000
test r15b, r15b
je 0x140048bd6
add rax, rsi
cmp rax, 5
jbe 0x140048bcf
cmp rsi, 0xffffffff80000007
je 0x140048bcf
cmp rsi, 0xffffffff80000060
je 0x140048bcf
cmp rsi, 0xffffffff80000050
je 0x140048bcf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, rbx
mov qword [rbp - 0x69], rbx
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.140040308
nop
mov qword [rbp - 0x61], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9d, 0x2011f
lea r8, [rbp - 0x29]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x61]
call fcn.140044248
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140048c6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048c67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048c67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
movdqa xmm0, xmmword [0x1400cf2b0]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], bx
mov rdi, qword [rbp - 0x61]
test rdi, rdi
setne r12b
test rdi, rdi
je 0x140048f25
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.140040308
mov dword [rbp - 0x71], ebx
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], rbx
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 0x140048d43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048d3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048d3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
test ebx, ebx
jne 0x140048db8
xor ebx, ebx
test r15d, r15d
je 0x140048dba
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.140040308
nop
mov dword [rbp - 0x79], ebx
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 0x140049359
lea rcx, [rbp - 0x59]
call fcn.140052e90
mov r13b, r14b
jmp 0x140048dba
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, Ordinal_35
lea rdx, str.RequireMicrosoftSignedBootChain
lea rcx, [rbp - 0x59]
call fcn.140040308
mov dword [rbp - 0x71], ebx
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], rbx
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 0x140048e6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048e67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048e67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
test ebx, ebx
jne 0x140048f23
xor ebx, ebx
test r15d, r15d
je 0x140048f25
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.140040308
nop
mov dword [rbp - 0x79], ebx
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 0x14004937c
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140048f1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048f19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048f19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
mov r13b, r14b
jmp 0x140048f25
xor ebx, ebx
test r12b, r12b
je 0x140048f63
mov eax, 0x80000000
add rax, rdi
cmp rax, 5
jbe 0x140048f5c
cmp rdi, 0xffffffff80000007
je 0x140048f5c
cmp rdi, 0xffffffff80000060
je 0x140048f5c
cmp rdi, 0xffffffff80000050
je 0x140048f5c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rbp - 0x61], rbx
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.140040308
nop
mov qword [rbp - 0x71], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9d, 0x2011f
lea r8, [rbp - 0x59]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x71]
call fcn.140044248
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x140048ff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048ff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048ff4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
movdqa xmm0, xmmword [0x1400cf2b0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], bx
mov rbx, qword [rbp - 0x71]
xor r12d, r12d
test rbx, rbx
setne r15b
test rbx, rbx
je 0x140049172
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r8d, [r12 + 0x1f]
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x29]
call fcn.140040308
mov dword [rbp - 0x79], r12d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea ecx, [r12 + 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 r12d, eax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1400490be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400490b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400490b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
test r12d, r12d
jne 0x14004916f
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r8d, [r12 + 0x1f]
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x29]
call fcn.140040308
nop
xor r12d, r12d
mov dword [rbp - 0x79], r12d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea ecx, [r12 + 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 0x140049313
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140049172
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049168
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049168
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
jmp 0x140049172
xor r12d, r12d
test r15b, r15b
mov r15d, 0x80000000
je 0x1400491b2
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x1400491ab
cmp rbx, 0xffffffff80000007
je 0x1400491ab
cmp rbx, 0xffffffff80000060
je 0x1400491ab
cmp rbx, 0xffffffff80000050
je 0x1400491ab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rbp - 0x71], rbx
test r13b, r13b
je 0x140049248
movdqa xmm0, xmmword [0x1400cf520]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [0x1400cf6e0]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x1400cf430]
movdqa xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1400cf440]
movdqa xmmword [rbp + 7], xmm1
mov dword [rbp + 0x17], 0x100f31b
mov rdx, r12
lea eax, [rdx + 0x3f]
xor byte [rbp + rdx - 0x29], al
add rdx, r14
cmp rdx, 0x42
jb 0x1400491f9
mov byte [rbp + 0x1a], r12b
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.14003fc60
lea rdx, [0x140041ce0]
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, r12b
test rbx, rbx
je 0x14004927c
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x14004927c
cmp rbx, 0xffffffff80000007
je 0x14004927c
cmp rbx, 0xffffffff80000060
je 0x14004927c
cmp rbx, 0xffffffff80000050
je 0x14004927c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x1400492b0
lea rax, [rdi + r15]
cmp rax, 5
jbe 0x1400492b0
cmp rdi, 0xffffffff80000007
je 0x1400492b0
cmp rdi, 0xffffffff80000060
je 0x1400492b0
cmp rdi, 0xffffffff80000050
je 0x1400492b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x1400492e3
lea rax, [rsi + r15]
cmp rax, 5
jbe 0x1400492e3
cmp rsi, 0xffffffff80000007
je 0x1400492e3
cmp rsi, 0xffffffff80000060
je 0x1400492e3
cmp rsi, 0xffffffff80000050
je 0x1400492e3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400c20d0
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.140042540
lea rdx, [0x1400f1018]
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.140042540
lea rdx, [0x1400f1018]
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.140042540
lea rdx, [0x1400f1018]
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.140042540
lea rdx, [0x1400f1018]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3