Function at 0x140003424
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400fd010]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
call fcn.140004a90
nop
lea r14, vtable.utilities::StaticRaii_struct_HKEY______ptr64__void___cdecl_utilities::WindowsRaii::RaiiCloseKey_struct_HKEY______ptr64___0_.0
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x30], rsi
mov qword [rbp - 0x18], rsi
movdqa xmm0, xmmword [0x1400e7700]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], si
lea ecx, [rsi + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
test eax, eax
je 0x1400035ec
sub ecx, 1
je 0x1400034b5
cmp ecx, 1
jne 0x1400035ec
lea rdx, str.SYSTEMCurrentControlSetControlSafebootNetwork_
jmp 0x1400034bc
lea rdx, str.SYSTEMCurrentControlSetControlSafebootMinimal_
lea rcx, [rbp - 0x18]
call fcn.14000497c
lea rdi, [rbx + 0x30]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400034e2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140003623
mov qword [rdi], rsi
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov qword [rsp + 0x20], rdi
mov edi, 0x20006
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003629
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], rsi
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140003531
mov rdx, qword [rbx]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov edi, 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003669
mov qword [rbp - 0x38], rsi
movdqa xmm0, xmmword [0x1400e7700]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], si
lea rdx, str.Service
lea rcx, [rbp - 0x38]
call fcn.14000497c
nop
mov eax, dword [rbp - 0x28]
lea eax, [rax*2 + 2]
lea r9, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r9, qword [rbp - 0x38]
mov dword [rsp + 0x20], eax
mov r8d, edi
lea rdx, [0x1400e37b0]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x1400036a9
lea rcx, [rbp - 0x38]
call fcn.140004904
nop
mov qword [rbp - 0x50], r14
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400035ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14000361d
mov qword [rbp - 0x40], rsi
lea rcx, [rbp - 0x18]
call fcn.140004904
nop
mov rax, rbx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400494a0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140094948
nop
call fcn.140094948
nop
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001bf4
nop
mov r8, rax
lea rdx, str.RegOpenKeyExW_failed_with_error
lea rcx, [rbp - 0x70]
call fcn.14000556c
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001f14
lea rdx, [0x1400faca0]
lea rcx, [rsp + 0x50]
call fcn.140072cc8
nop
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140001bf4
nop
mov r8, rax
lea rdx, str.RegCreateKeyExW_failed_with_error
lea rcx, [rsp + 0x70]
call fcn.14000556c
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001f14
lea rdx, [0x1400faca0]
lea rcx, [rsp + 0x50]
call fcn.140072cc8
nop
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140001bf4
nop
mov r8, rax
lea rdx, str.RegSetValueW_failed_with_error
lea rcx, [rsp + 0x70]
call fcn.14000556c
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001f14
lea rdx, [0x1400faca0]
lea rcx, [rsp + 0x50]
call fcn.140072cc8
int3