Function at 0x140143990
Capabilities:
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 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r9
mov edi, edx
mov rbx, r8
mov r14b, cl
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140143a00
test byte [rcx + 0x1c], 0x20
je 0x140143a00
cmp byte [rcx + 0x19], 4
jb 0x140143a00
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x3b
call fcn.14000c328
xor r15d, r15d
lea rsi, str.base_stor_blb_bmr_asrrestore.cpp
test rbx, rbx
jne 0x140143a23
lea r8, str.rgguidVolumes
mov edx, 0x3eb
mov rcx, rsi
call fcn.1400906e0
test edi, edi
jne 0x140143a3b
lea r8, str.cVolumes___0
mov edx, 0x3ec
mov rcx, rsi
call fcn.1400906e0
test r12, r12
jne 0x140143a54
lea r8, str.hKey
mov edx, 0x3ed
mov rcx, rsi
call fcn.1400906e0
mov qword [rbp - 1], r15
xorps xmm0, xmm0
mov dword [rbp + 0x17], 0xa
xorps xmm1, xmm1
mov qword [rbp - 0x21], r15
mov rsi, r15
mov qword [rbp - 0x39], r15
mov r13, r15
mov dword [rbp - 0x31], r15d
mov dword [rbp - 0x2d], r15d
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x29], r15
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [0x14014fdf0]
movdqu xmmword [rbp + 7], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test edi, edi
je 0x140143ab3
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400f6dd8
add rbx, 0x10
sub rdi, 1
jne 0x140143a9d
test r14b, r14b
je 0x140143d7e
lea r9, [rbp - 0x31]
mov rcx, r12
lea r8, [rbp - 0x39]
call fcn.14009a330
mov ebx, eax
test eax, eax
jns 0x140143b5a
cmp eax, 0x80070002
jne 0x140143b1a
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143b11
test byte [rcx + 0x1c], 0x20
je 0x140143b11
cmp byte [rcx + 0x19], 4
jb 0x140143b11
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x3c
call fcn.14000c328
mov rsi, qword [rbp - 0x39]
jmp 0x140143d85
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143ba7
test byte [rcx + 0x1c], 0x20
je 0x140143ba7
cmp byte [rcx + 0x19], 2
jb 0x140143ba7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x3d
mov r9d, eax
call fcn.14000c354
mov rsi, qword [rbp - 0x39]
jmp 0x140143f57
mov r8d, dword [rbp - 0x31]
cmp r8d, 4
jae 0x140143bb0
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143ba2
test byte [rcx + 0x1c], 0x20
je 0x140143ba2
cmp byte [rcx + 0x19], 2
jb 0x140143ba2
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x1401633f8]
mov edx, 0x3e
call fcn.1400155dc
mov rcx, qword [0x140173048]
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x39]
jmp 0x140143f5e
mov rsi, qword [rbp - 0x39]
shr r8d, 1
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r15w
jne 0x140143d39
lea eax, [r8 - 2]
cmp word [rsi + rax*2], r15w
jne 0x140143d39
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143c0c
test byte [rcx + 0x1c], 0x20
je 0x140143c0c
cmp byte [rcx + 0x19], 4
jb 0x140143c0c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x40
mov r9, rsi
call fcn.140015150
mov rdi, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140143c13
test rax, rax
je 0x140143d85
test r13, r13
je 0x140143c3e
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x29], r15
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140091f50
mov ebx, eax
test eax, eax
js 0x140143cf3
mov r13, qword [rbp - 0x29]
lea rdx, [rbp + 0x1f]
mov eax, 0x5c
mov rcx, r13
mov word [r13 + 2], ax
call fcn.140093e30
mov ebx, eax
test eax, eax
js 0x140143cae
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400f8f48
test rax, rax
jne 0x140143c93
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400f6dd8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140143c97
lea rdi, [rdi + rax*2]
add rdi, 2
jmp 0x140143c0f
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140143f5e
test byte [rcx + 0x1c], 0x20
je 0x140143f5e
cmp byte [rcx + 0x19], 2
jb 0x140143f5e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400151b8
jmp 0x140143f57
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140143d30
test byte [rcx + 0x1c], 0x20
je 0x140143d30
cmp byte [rcx + 0x19], 2
jb 0x140143d30
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x41
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400151b8
mov r13, qword [rbp - 0x29]
jmp 0x140143f57
mov r13, qword [rbp - 0x29]
jmp 0x140143f5e
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143d74
test byte [rcx + 0x1c], 0x20
je 0x140143d74
cmp byte [rcx + 0x19], 2
jb 0x140143d74
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x3f
call fcn.14000c328
mov rcx, qword [0x140173048]
mov ebx, 0x80070057
jmp 0x140143f5e
lea r14, [0x140173048]
mov edi, dword [rbp - 1]
lea rcx, [rbp - 0x21]
mov edx, edi
mov r8d, 0x10
call fcn.14000d5bc
mov r15, qword [rbp - 0x21]
mov ebx, eax
test eax, eax
jns 0x140143de4
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140143f43
test byte [rcx + 0x1c], 0x20
je 0x140143f43
cmp byte [rcx + 0x19], 2
jb 0x140143f43
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x43
mov r9d, eax
call fcn.14000c354
jmp 0x140143f3c
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x21], rax
test edi, edi
je 0x140143e10
mov rbx, r15
mov r14, rdi
lea rdx, [rbp - 0x21]
call fcn.1400f9a20
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
lea rbx, [rbx + 0x10]
sub r14, 1
jne 0x140143df6
lea r9, [rbp - 0x19]
mov rdx, r15
lea r8, [rbp - 0x2d]
mov ecx, edi
call fcn.140091900
mov rdi, qword [rbp - 0x19]
mov ebx, eax
test eax, eax
jns 0x140143e74
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143f28
test byte [rcx + 0x1c], 0x20
je 0x140143f28
cmp byte [rcx + 0x19], 2
jb 0x140143f28
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x44
mov r9d, eax
call fcn.14000c354
jmp 0x140143f21
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140143eab
test byte [rcx + 0x1c], 0x20
je 0x140143eab
cmp byte [rcx + 0x19], 4
jb 0x140143eab
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x45
mov r9, rdi
call fcn.140015150
mov eax, dword [rbp - 0x2d]
lea rdx, str.RestoredVolumes
mov dword [rsp + 0x28], eax
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140143f21
jg 0x140143ee0
mov ebx, eax
jmp 0x140143ee9
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140143f28
test byte [rcx + 0x1c], 0x20
je 0x140143f28
cmp byte [rcx + 0x19], 2
jb 0x140143f28
mov rcx, qword [rcx + 0x10]
lea r9, str.RestoredVolumes
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r8, [0x1401633f8]
call fcn.1400151b8
mov rcx, qword [0x140173048]
test rdi, rdi
je 0x140143f43
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test r15, r15
je 0x140143f5e
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test rsi, rsi
je 0x140143f79
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test r13, r13
je 0x140143f94
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140143fba
test byte [rcx + 0x1c], 0x20
je 0x140143fba
cmp byte [rcx + 0x19], 4
jb 0x140143fba
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401633f8]
mov edx, 0x47
call fcn.14000c328
lea rcx, [rbp - 0x11]
call fcn.1400fa7c8
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0xa0]
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