Function at 0x1400541c4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
xor esi, esi
mov r15d, 0x8000
mov rdi, rcx
and qword [rax - 0x30], rsi
mov word [rax + 0x10], r15w
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
lea r14, [0x140008f28]
cmp rcx, r12
je 0x140054220
test byte [rcx + 0x1c], 4
je 0x140054220
cmp byte [rcx + 0x19], 5
jb 0x140054220
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x16]
mov r8, r14
call fcn.14000ffa8
lea rax, [rsp + 0xa8]
lea r9, [0x140009d60]
lea rdx, [0x14000aa90]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x1400542a9
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400544b1
test byte [rcx + 0x1c], 4
je 0x1400544b1
cmp byte [rcx + 0x19], 2
jb 0x1400544b1
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r9d, eax
mov r8, r14
call fcn.1400100e0
jmp 0x1400544b1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1400542e7
mov ebx, 0x53a
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
lea edx, [rax + 0x18]
jmp 0x1400543e7
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x140054337
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
mov edx, 0x19
jmp 0x140054485
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov dword [rsp + 0xa0], eax
test word [rsp + 0x98], r15w
je 0x1400543ae
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rdx, [0x14000aad0]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140054494
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
mov edx, 0x1a
jmp 0x140054485
mov ecx, eax
call fcn.140076a54
mov rsi, rax
test rax, rax
jne 0x1400543f8
lea ebx, [rax + 8]
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
lea edx, [rax + 0x1b]
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.14000ffa8
jmp 0x140054494
lea r8, [rsp + 0xa0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x140054437
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
mov edx, 0x1c
jmp 0x140054485
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
lea rdx, [0x14000aad0]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140054494
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140054494
test byte [rcx + 0x1c], 4
je 0x140054494
cmp byte [rcx + 0x19], 2
jb 0x140054494
mov edx, 0x1d
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400544a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x1400544b1
mov rcx, rsi
call fcn.140076afc
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret