Function at 0x1800d7780
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
cmp qword [rsp + 0x100], 0
je 0x1800d77f6
mov rcx, qword [rsp + 0x100]
call fcn.1800fbc94
test rax, rax
je 0x1800d77f6
cmp qword [rsp + 0x108], 0
je 0x1800d77f6
mov rcx, qword [rsp + 0x108]
call fcn.1800fbc94
test rax, rax
je 0x1800d77f6
cmp qword [rsp + 0x110], 0
je 0x1800d77f6
cmp dword [rsp + 0x118], 0
jne 0x1800d77fd
xor eax, eax
jmp 0x1800d7f82
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov rax, qword [0x1801d0c28]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x108]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0x88]
call fcn.1800e9330
mov dword [rsp + 0x70], 0
mov rax, qword [0x1801d0c28]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x88]
lea rdx, str._sProperties
lea rcx, [rsp + 0x78]
call fcn.1800e9330
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d7a92
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
xor r8d, r8d
lea rdx, [0x1801cd588]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d7a78
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d7a78
cmp dword [rsp + 0x94], 3
jne 0x1800d7a78
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800fb374
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800d7a78
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.1800fb1e0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x94]
xor r8d, r8d
lea rdx, [0x1801cd588]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d7a4f
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d7a39
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x98]
call fcn.1800fdac0
test eax, eax
jne 0x1800d7a39
mov dword [rsp + 0xe8], 1
jmp 0x1800d7a44
mov dword [rsp + 0xe8], 0
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1800fb418
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x80], 0
cmp dword [rsp + 0x70], 0
je 0x1800d7ab6
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x88]
call fcn.1800e8250
jmp 0x1800d7f3f
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7b96
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7b79
lea rcx, [rsp + 0xa0]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey__s__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xa0]
call fcn.1800e76c0
nop
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x88]
call fcn.1800e8250
jmp 0x1800d7f3f
mov rcx, qword [rsp + 0x100]
call fcn.1800fbc94
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Class
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7c32
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7c32
lea rcx, [rsp + 0xa4]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xa4]
call fcn.1800e76c0
mov eax, dword [0x1801cd450]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NoDisplayClass
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7cc7
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7cc7
lea rcx, [rsp + 0xa8]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xa8]
call fcn.1800e76c0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NoUseClass
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7d52
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7d52
lea rcx, [rsp + 0xac]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xac]
call fcn.1800e76c0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Properties
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7e12
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7df5
lea rcx, [rsp + 0xb0]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xb0]
call fcn.1800e76c0
nop
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x88]
call fcn.1800e8250
jmp 0x1800d7f3f
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x1801cd588]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7ec9
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7eaf
lea rcx, [rsp + 0xb4]
call fcn.1800e7690
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Security_Fail__ulSize__lu__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xb4]
call fcn.1800e76c0
nop
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x88]
call fcn.1800e8250
jmp 0x1800d7f3f
mov dword [rsp + 0x58], 1
lea rcx, [0x18023d830]
call fcn.1800d5710
test eax, eax
je 0x1800d7f1d
lea rcx, [rsp + 0xb8]
call fcn.1800e7690
nop
lea r9, str.CSetDeviceSDDL::SetDevSDDL_succeed_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x18023d838]
call fcn.1800dbb80
nop
lea rcx, [rsp + 0xb8]
call fcn.1800e76c0
nop
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x88]
call fcn.1800e8250
xor eax, eax
test eax, eax
jne 0x1800d781f
cmp qword [rsp + 0x50], 0
je 0x1800d7f52
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x60], 0
je 0x1800d7f65
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x120], 0
je 0x1800d7f7e
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, dword [rsp + 0x58]
add rsp, 0xf8
ret