Function at 0x14005d61c
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 [0x140104700]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [0x1400dbfa4]
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.1400589c8
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.14005c3e4
nop
mov r15d, 0x1000
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14005d6f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, r15
jb 0x14005d6f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d6f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
movdqa xmm0, xmmword [0x1400dd180]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov r14d, 1
mov rsi, qword [rbp - 0x69]
test rsi, rsi
je 0x14005d873
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.1400589c8
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 0x14005d7c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, r15
jb 0x14005d7c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d7c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
test ebx, ebx
jne 0x14005d83a
test edi, edi
je 0x14005d83a
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.1400589c8
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 0x14005dfb3
lea rcx, [rbp - 0x29]
call fcn.140060a4c
mov r12b, r14b
mov eax, 0x80000000
add rax, rsi
cmp rax, 5
jbe 0x14005d86c
cmp rsi, 0xffffffff80000007
je 0x14005d86c
cmp rsi, 0xffffffff80000060
je 0x14005d86c
cmp rsi, 0xffffffff80000050
je 0x14005d86c
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_45
lea rdx, str.SYSTEMControlSet001ControlDeviceGuard
lea rcx, [rbp - 0x29]
call fcn.1400589c8
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.14005c3e4
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x14005d906
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, r15
jb 0x14005d901
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d901
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
movdqa xmm0, xmmword [0x1400dd180]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
mov rdi, qword [rbp - 0x61]
test rdi, rdi
je 0x14005dbf2
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.1400589c8
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 0x14005d9d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d9d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d9d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
test ebx, ebx
jne 0x14005da4c
test r15d, r15d
je 0x14005da4c
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.1400589c8
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 0x14005dfd6
lea rcx, [rbp - 0x59]
call fcn.140060a4c
mov r12b, r14b
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.1400589c8
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 0x14005daff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dafa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dafa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
test ebx, ebx
jne 0x14005dbb3
test r15d, r15d
je 0x14005dbb3
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.1400589c8
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 0x14005dff9
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14005dbb0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dbab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dbab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
mov r12b, r14b
mov eax, 0x80000000
add rax, rdi
cmp rax, 5
jbe 0x14005dbe5
cmp rdi, 0xffffffff80000007
je 0x14005dbe5
cmp rdi, 0xffffffff80000060
je 0x14005dbe5
cmp rdi, 0xffffffff80000050
je 0x14005dbe5
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.1400589c8
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.14005c3e4
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14005dc85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, r15
jb 0x14005dc80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dc80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
movdqa xmm0, xmmword [0x1400dd180]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x14005de29
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, Ordinal_35
lea rdx, str.HypervisorEnforcedCodeIntegrity
lea rcx, [rbp - 0x29]
call fcn.1400589c8
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 0x14005dd42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dd3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dd3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
test r15d, r15d
jne 0x14005ddec
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.1400589c8
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 0x14005df90
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x14005ddec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dde7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dde7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
mov r15d, 0x80000000
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x14005de20
cmp rbx, 0xffffffff80000007
je 0x14005de20
cmp rbx, 0xffffffff80000060
je 0x14005de20
cmp rbx, 0xffffffff80000050
je 0x14005de20
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rbp - 0x71], rbx
jmp 0x14005de2f
mov r15d, 0x80000000
test r12b, r12b
je 0x14005dec5
movdqa xmm0, xmmword [0x1400dd3c0]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [0x1400dd290]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x1400dd340]
movdqa xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1400dd2c0]
movdqa xmmword [rbp + 7], xmm1
mov dword [rbp + 0x17], 0x100b4a2
mov rdx, r13
lea eax, [rdx - 0x7a]
xor byte [rbp + rdx - 0x29], al
add rdx, r14
cmp rdx, 0x42
jb 0x14005de76
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.140058358
lea rdx, [0x14005a238]
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 0x14005def9
lea rax, [rbx + r15]
cmp rax, 5
jbe 0x14005def9
cmp rbx, 0xffffffff80000007
je 0x14005def9
cmp rbx, 0xffffffff80000060
je 0x14005def9
cmp rbx, 0xffffffff80000050
je 0x14005def9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14005df2d
lea rax, [rdi + r15]
cmp rax, 5
jbe 0x14005df2d
cmp rdi, 0xffffffff80000007
je 0x14005df2d
cmp rdi, 0xffffffff80000060
je 0x14005df2d
cmp rdi, 0xffffffff80000050
je 0x14005df2d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x14005df60
lea rax, [rsi + r15]
cmp rax, 5
jbe 0x14005df60
cmp rsi, 0xffffffff80000007
je 0x14005df60
cmp rsi, 0xffffffff80000060
je 0x14005df60
cmp rsi, 0xffffffff80000050
je 0x14005df60
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400d0880
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.14005aa74
lea rdx, [0x1400feb50]
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.14005aa74
lea rdx, [0x1400feb50]
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.14005aa74
lea rdx, [0x1400feb50]
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.14005aa74
lea rdx, [0x1400feb50]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3