Function at 0x140140958
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, 0xd0
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 7], rax
mov rax, qword [rbp + 0x77]
mov r13d, r9d
mov r15, qword [rbp + 0x7f]
mov r12b, r8b
mov qword [rbp - 0x31], rax
mov sil, dl
mov rdi, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1401409ce
test byte [rcx + 0x1c], 0x20
je 0x1401409ce
cmp byte [rcx + 0x19], 4
jb 0x1401409ce
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162768]
mov edx, 0x2d
call fcn.140004c6c
xor ebx, ebx
test r15, r15
jne 0x1401409ed
lea r8, str.pBlbBackupStatUpdater___NULL
mov edx, 0x2a5
lea rcx, [0x140162490]
call fcn.14008624c
xor eax, eax
mov qword [rbp - 0x49], rbx
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], rax
mov r14, rbx
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x39], rbx
mov dword [rbp - 0x41], ebx
mov dword [rbp - 0x59], ebx
mov qword [rbp - 0x51], rbx
call fcn.140094044
mov ebx, eax
test eax, eax
js 0x140140d90
lea r8, [rbp - 0x29]
lea rcx, str.SeRestorePrivilege
call fcn.140094044
mov ebx, eax
test eax, eax
js 0x140140d90
lea r8, [rbp - 0x49]
mov rcx, rdi
lea rdx, str.WindowsSystem32configSoftware
call fcn.140087120
mov r14, qword [rbp - 0x49]
xor edi, edi
mov ebx, eax
test eax, eax
js 0x140140d92
mov r8, r14
lea rdx, str.OfflineSoftwareHive
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140140ac1
lea rax, [rbp - 0x69]
mov dword [rbp - 0x59], 1
mov ebx, 0xf003f
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.OfflineSoftwareHive
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140140ad4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140140d92
test sil, sil
jne 0x140140b83
mov rcx, qword [rbp - 0x69]
lea rax, [rbp - 0x39]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.MicrosoftWindowsCurrentVersionReliability
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140140b48
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x140140b8a
test byte [rcx + 0x1c], 0x20
je 0x140140b8a
cmp byte [rcx + 0x19], 3
jb 0x140140b8a
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162768]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.140004c90
jmp 0x140140b8a
mov rcx, qword [rbp - 0x39]
lea rdx, str.LastAliveStamp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140140b83
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x140140b8a
test byte [rcx + 0x1c], 0x20
je 0x140140b8a
cmp byte [rcx + 0x19], 3
jb 0x140140b8a
mov edx, 0x2f
jmp 0x140140b25
lea rsi, [0x1401782b0]
mov rcx, qword [rbp - 0x69]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x40], rax
lea rdx, str.MICROSOFTWINDOWS_NTCurrentVersionASRRestoreSession
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140140c00
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140140d92
test byte [rcx + 0x1c], 0x20
je 0x140140d92
cmp byte [rcx + 0x19], 2
jb 0x140140d92
mov edx, 0x30
jmp 0x140140d32
mov rcx, qword [rbp - 0x61]
lea rdx, str.LastInstance
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x140140c54
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140140d92
test byte [rcx + 0x1c], 0x20
je 0x140140d92
cmp byte [rcx + 0x19], 2
jb 0x140140d92
mov edx, 0x31
jmp 0x140140d32
mov r9, qword [rbp - 0x61]
mov edx, r13d
mov r8, qword [rbp - 0x31]
mov cl, r12b
call fcn.140141128
mov ebx, eax
test eax, eax
jns 0x140140c9e
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140140d92
test byte [rcx + 0x1c], 0x20
je 0x140140d92
cmp byte [rcx + 0x19], 2
jb 0x140140d92
mov edx, 0x32
mov r9d, eax
jmp 0x140140d35
lea rcx, [rbp - 9]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x140140cbe
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 9]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x140140cc8
mov ebx, 0x80004005
jmp 0x140140d92
mov rcx, qword [rbp - 0x51]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140140cd0
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 - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140140d47
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140140d92
test byte [rcx + 0x1c], 0x20
je 0x140140d92
cmp byte [rcx + 0x19], 2
jb 0x140140d92
mov edx, 0x33
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162768]
call fcn.140004c90
jmp 0x140140d92
mov rdx, qword [rbp - 0x69]
mov r8b, 1
mov rcx, r15
call fcn.14013f8c4
mov ebx, eax
test eax, eax
jns 0x140140d92
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140140d8c
test byte [rcx + 0x1c], 1
je 0x140140d8c
cmp byte [rcx + 0x19], 2
jb 0x140140d8c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162768]
mov edx, 0x34
mov r9d, eax
call fcn.140004c90
mov ebx, edi
jmp 0x140140d92
xor edi, edi
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x59], edi
je 0x140140dc9
lea rdx, str.OfflineSoftwareHive
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
cmp dword [rbp - 0x19], edi
je 0x140140ded
lea rcx, [rbp - 0x19]
call fcn.140094100
test eax, eax
jns 0x140140ded
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [rbp - 0x29], edi
je 0x140140e11
lea rcx, [rbp - 0x29]
call fcn.140094100
test eax, eax
jns 0x140140e11
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rbp - 0x51]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov qword [rbp - 0x51], rdi
test r14, r14
je 0x140140e2d
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140140e61
test byte [rcx + 0x1c], 0x20
je 0x140140e61
cmp byte [rcx + 0x19], 4
jb 0x140140e61
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162768]
mov edx, 0x35
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret