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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, qword [rbp + 0x77]
mov r12d, r9d
mov r14, qword [rbp + 0x7f]
mov r15b, r8b
mov sil, dl
mov rdi, rcx
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14013cbae
test byte [rcx + 0x1c], 0x20
je 0x14013cbae
cmp byte [rcx + 0x19], 4
jb 0x14013cbae
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x2d
call fcn.14000c0e8
xor ebx, ebx
test r14, r14
jne 0x14013cbcd
lea r8, str.pBlbBackupStatUpdater___NULL
mov edx, 0x2a5
lea rcx, str.base_stor_blb_bmr_asrrestore.cpp
call fcn.140088f60
xorps xmm0, xmm0
mov qword [rbp - 0x59], rbx
xorps xmm1, xmm1
mov qword [rbp - 0x49], rbx
lea r8, [rbp - 0x21]
mov qword [rbp - 0x41], rbx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x29], rbx
movups xmmword [rbp - 0x21], xmm0
mov dword [rbp - 0x31], ebx
movups xmmword [rbp - 0x11], xmm1
mov dword [rbp - 0x51], ebx
mov qword [rbp - 0x39], rbx
call fcn.14009770c
mov ebx, eax
test eax, eax
js 0x14013cf9d
lea r8, [rbp - 0x11]
lea rcx, str.SeRestorePrivilege
call fcn.14009770c
mov ebx, eax
test eax, eax
js 0x14013cf9d
lea r8, [rbp - 0x59]
mov rcx, rdi
lea rdx, str.WindowsSystem32configSoftware
call fcn.14008a090
mov rdi, qword [rbp - 0x59]
mov ebx, eax
test eax, eax
js 0x14013cfa1
mov r8, rdi
lea rdx, str.OfflineSoftwareHive
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14013cc81
jle 0x14013cfa1
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013cf9d
lea rax, [rbp - 0x49]
mov dword [rbp - 0x51], 1
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.OfflineSoftwareHive
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14013cc6d
xor ebx, ebx
mov edi, 0x80070000
test sil, sil
jne 0x14013cd7f
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x29]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.MicrosoftWindowsCurrentVersionReliability
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14013cd37
jle 0x14013ccfe
movzx eax, ax
or eax, edi
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14013cd86
test byte [rcx + 0x1c], 0x20
je 0x14013cd86
cmp byte [rcx + 0x19], 3
jb 0x14013cd86
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov r9d, eax
call fcn.14000c114
jmp 0x14013cd86
mov rcx, qword [rbp - 0x29]
lea rdx, str.LastAliveStamp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14013cd7f
jle 0x14013cd59
movzx eax, ax
or eax, edi
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14013cd86
test byte [rcx + 0x1c], 0x20
je 0x14013cd86
cmp byte [rcx + 0x19], 3
jb 0x14013cd86
mov edx, 0x2f
jmp 0x14013cd22
lea rsi, [0x14016a048]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x40], rax
lea rdx, str.MICROSOFTWINDOWS_NTCurrentVersionASRRestoreSession
lea rax, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14013ce14
jle 0x14013cdd3
movzx ebx, bx
or ebx, edi
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013cf9d
test byte [rcx + 0x1c], 0x20
je 0x14013cf9d
cmp byte [rcx + 0x19], 2
jb 0x14013cf9d
mov edx, 0x30
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov r9d, ebx
call fcn.14000c114
jmp 0x14013cf9d
mov rcx, qword [rbp - 0x41]
lea rdx, str.LastInstance
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, 0xfffffffd
je 0x14013ce68
test eax, eax
jle 0x14013ce3d
movzx ebx, bx
or ebx, edi
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013cf9d
test byte [rcx + 0x1c], 0x20
je 0x14013cf9d
cmp byte [rcx + 0x19], 2
jb 0x14013cf9d
mov edx, 0x31
jmp 0x14013cdfc
mov r9, qword [rbp - 0x41]
mov r8, r13
mov edx, r12d
mov cl, r15b
call fcn.14013c210
mov ebx, eax
test eax, eax
jns 0x14013ceae
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013cf9d
test byte [rcx + 0x1c], 0x20
je 0x14013cf9d
cmp byte [rcx + 0x19], 2
jb 0x14013cf9d
mov edx, 0x32
jmp 0x14013cdfc
lea rcx, [rbp - 1]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
je 0x14013cece
mov ebx, 0x80004005
jmp 0x14013cf9d
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 1]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14013cec4
mov rcx, qword [rbp - 0x39]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14013ceee
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LastInstance
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14013cf56
jle 0x14013cf34
movzx ebx, bx
or ebx, edi
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013cf9d
test byte [rcx + 0x1c], 0x20
je 0x14013cf9d
cmp byte [rcx + 0x19], 2
jb 0x14013cf9d
mov edx, 0x33
jmp 0x14013cdfc
mov rdx, qword [rbp - 0x49]
mov r8b, 1
mov rcx, r14
call fcn.14013b218
xor edi, edi
mov ebx, eax
test eax, eax
jns 0x14013cf9d
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013cf9b
test byte [rcx + 0x1c], 1
je 0x14013cf9b
cmp byte [rcx + 0x19], 2
jb 0x14013cf9b
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x34]
mov r9d, eax
lea r8, [0x14015ad60]
call fcn.14000c114
mov ebx, edi
mov rdi, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor esi, esi
cmp dword [rbp - 0x51], esi
je 0x14013cff2
lea rdx, str.OfflineSoftwareHive
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop dword [rax + rax]
cmp dword [rbp - 0x21], esi
je 0x14013d01c
lea rcx, [rbp - 0x21]
call fcn.140097468
test eax, eax
jns 0x14013d01c
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [rbp - 0x11], esi
je 0x14013d046
lea rcx, [rbp - 0x11]
call fcn.140097468
test eax, eax
jns 0x14013d046
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp - 0x39], rax
test rdi, rdi
je 0x14013d070
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14013d0a4
test byte [rcx + 0x1c], 0x20
je 0x14013d0a4
cmp byte [rcx + 0x19], 4
jb 0x14013d0a4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x35
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret