Function at 0x140001ce8
Capabilities:
Delete 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 - 0x5f8]
sub rsp, 0x6d0
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
movups xmm0, xmmword [0x14003f4d8]
lea rcx, [rbp + 0x1ca]
movzx eax, word [0x14003f4f0]
movsd xmm1, qword [0x14003f4e8]
xor edx, edx
mov r8d, 0x1ee
movaps xmmword [rbp + 0x1b0], xmm0
movsd qword [rbp + 0x1c0], xmm1
mov word [rbp + 0x1c8], ax
call sub.msvcrt.dll_memset
mov eax, dword [0x14003f510]
lea rcx, [rbp + 0x3d6]
movups xmm0, xmmword [str.ZKL_]
xor edx, edx
mov dword [rbp + 0x3d0], eax
movsd xmm1, qword [0x14003f508]
mov r8d, 0x1ea
movzx eax, word [0x14003f514]
movups xmmword [rbp + 0x3b8], xmm0
mov word [rbp + 0x3d4], ax
movsd qword [rbp + 0x3c8], xmm1
call sub.msvcrt.dll_memset
xor r14d, r14d
mov esi, r14d
lea r13d, [r14 + 1]
lea r12d, [r14 + 4]
lea r15d, [r14 + 2]
movsxd rax, esi
lea rdi, [rbp + 0x1b0]
imul rcx, rax, 0x208
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], r14
add rdi, rcx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e50
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
lea rdx, [0x14003f518]
mov r9d, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140001e45
mov rcx, qword [rsp + 0x60]
lea rdx, [0x14003f518]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000212c
mov r9, rdi
lea r8, [0x14003f528]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140001734
test eax, eax
js 0x14000212c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, r12d
mov qword [rsp + 0x20], r14
mov edx, r12d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x140001fa9
xor edx, edx
mov qword [rsp + 0x40], r14
lea r8d, [rax + 0x30]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x68], 0x10000000
lea rcx, [0x14003f548]
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x70], 3
mov dword [rbp - 0x7c], r14d
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x140001f84
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov ecx, r13d
mov qword [rbp - 0x70], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140001f65
mov rax, qword [rsp + 0x50]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov edx, r12d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x140001f5c
mov ebx, r13d
jmp 0x140001f77
lea rdx, str.SetNamedSecurityInfo_returned__lu._r_n
jmp 0x140001f6c
lea rdx, str.SetEntriesInAcl_returned__lu._r_n
mov r8d, eax
mov ecx, r15d
call fcn.1400168a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SID_Conversion_failed._Error_returned__lu._r_n
mov ecx, r15d
mov r8d, eax
call fcn.1400168a8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001fbb
mov r8d, eax
lea rdx, str.GetNamedSecurityInfo_returned__lu._r_n
mov ecx, r15d
call fcn.1400168a8
test ebx, ebx
je 0x140001fd2
lea r8, [rbp - 0x60]
mov ecx, r12d
lea rdx, str.Set_DirSecurity_on__S._r_n
call fcn.1400168a8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, r12d
mov qword [rsp + 0x20], r14
mov edx, r12d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x140002103
xor edx, edx
mov qword [rsp + 0x40], r14
lea r8d, [rax + 0x30]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x68], 0x10000000
lea rcx, [0x14003f550]
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x70], 3
mov dword [rbp - 0x7c], r14d
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x1400020de
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x68]
mov ecx, r13d
mov qword [rbp - 0x70], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1400020bf
mov rax, qword [rsp + 0x50]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov edx, r12d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x1400020b6
mov ebx, r13d
jmp 0x1400020d1
lea rdx, str.SetNamedSecurityInfo_returned__lu._r_n
jmp 0x1400020c6
lea rdx, str.SetEntriesInAcl_returned__lu._r_n
mov r8d, eax
mov ecx, r15d
call fcn.1400168a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400020f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SID_Conversion_failed._Error_returned__lu._r_n
mov ecx, r15d
mov r8d, eax
call fcn.1400168a8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140002115
mov r8d, eax
lea rdx, str.GetNamedSecurityInfo_returned__lu._r_n
mov ecx, r15d
call fcn.1400168a8
test ebx, ebx
je 0x14000212c
lea r8, [rbp - 0x60]
mov ecx, r12d
lea rdx, str.Set_DirSecurity_on__S._r_n
call fcn.1400168a8
add esi, r13d
cmp esi, r15d
jb 0x140001dbd
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x6d0]
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