Function at 0x14013c210
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r9
mov edi, edx
mov rbx, r8
mov r14b, cl
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14013c280
test byte [rcx + 0x1c], 0x20
je 0x14013c280
cmp byte [rcx + 0x19], 4
jb 0x14013c280
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x3b
call fcn.14000c0e8
xor r15d, r15d
lea rsi, str.base_stor_blb_bmr_asrrestore.cpp
test rbx, rbx
jne 0x14013c2a3
lea r8, str.rgguidVolumes
mov edx, 0x3eb
mov rcx, rsi
call fcn.140088f60
test edi, edi
jne 0x14013c2bb
lea r8, str.cVolumes___0
mov edx, 0x3ec
mov rcx, rsi
call fcn.140088f60
test r12, r12
jne 0x14013c2d4
lea r8, str.hKey
mov edx, 0x3ed
mov rcx, rsi
call fcn.140088f60
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 [0x140147ba0]
movdqu xmmword [rbp + 7], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test edi, edi
je 0x14013c333
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400ef658
add rbx, 0x10
sub rdi, 1
jne 0x14013c31d
test r14b, r14b
je 0x14013c5fe
lea r9, [rbp - 0x31]
mov rcx, r12
lea r8, [rbp - 0x39]
call fcn.140092bb0
mov ebx, eax
test eax, eax
jns 0x14013c3da
cmp eax, 0x80070002
jne 0x14013c39a
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c391
test byte [rcx + 0x1c], 0x20
je 0x14013c391
cmp byte [rcx + 0x19], 4
jb 0x14013c391
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x3c
call fcn.14000c0e8
mov rsi, qword [rbp - 0x39]
jmp 0x14013c605
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c427
test byte [rcx + 0x1c], 0x20
je 0x14013c427
cmp byte [rcx + 0x19], 2
jb 0x14013c427
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x3d
mov r9d, eax
call fcn.14000c114
mov rsi, qword [rbp - 0x39]
jmp 0x14013c7d7
mov r8d, dword [rbp - 0x31]
cmp r8d, 4
jae 0x14013c430
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c422
test byte [rcx + 0x1c], 0x20
je 0x14013c422
cmp byte [rcx + 0x19], 2
jb 0x14013c422
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x14015ad60]
mov edx, 0x3e
call fcn.14001539c
mov rcx, qword [0x14016a048]
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x39]
jmp 0x14013c7de
mov rsi, qword [rbp - 0x39]
shr r8d, 1
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r15w
jne 0x14013c5b9
lea eax, [r8 - 2]
cmp word [rsi + rax*2], r15w
jne 0x14013c5b9
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c48c
test byte [rcx + 0x1c], 0x20
je 0x14013c48c
cmp byte [rcx + 0x19], 4
jb 0x14013c48c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x40
mov r9, rsi
call fcn.140014f10
mov rdi, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14013c493
test rax, rax
je 0x14013c605
test r13, r13
je 0x14013c4be
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.14008a7d0
mov ebx, eax
test eax, eax
js 0x14013c573
mov r13, qword [rbp - 0x29]
lea rdx, [rbp + 0x1f]
mov eax, 0x5c
mov rcx, r13
mov word [r13 + 2], ax
call fcn.14008c6b0
mov ebx, eax
test eax, eax
js 0x14013c52e
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400f17c8
test rax, rax
jne 0x14013c513
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400ef658
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14013c517
lea rdi, [rdi + rax*2]
add rdi, 2
jmp 0x14013c48f
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14013c7de
test byte [rcx + 0x1c], 0x20
je 0x14013c7de
cmp byte [rcx + 0x19], 2
jb 0x14013c7de
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140014f78
jmp 0x14013c7d7
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14013c5b0
test byte [rcx + 0x1c], 0x20
je 0x14013c5b0
cmp byte [rcx + 0x19], 2
jb 0x14013c5b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x41
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140014f78
mov r13, qword [rbp - 0x29]
jmp 0x14013c7d7
mov r13, qword [rbp - 0x29]
jmp 0x14013c7de
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c5f4
test byte [rcx + 0x1c], 0x20
je 0x14013c5f4
cmp byte [rcx + 0x19], 2
jb 0x14013c5f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x3f
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
mov ebx, 0x80070057
jmp 0x14013c7de
lea r14, [0x14016a048]
mov edi, dword [rbp - 1]
lea rcx, [rbp - 0x21]
mov edx, edi
mov r8d, 0x10
call fcn.14000d37c
mov r15, qword [rbp - 0x21]
mov ebx, eax
test eax, eax
jns 0x14013c664
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14013c7c3
test byte [rcx + 0x1c], 0x20
je 0x14013c7c3
cmp byte [rcx + 0x19], 2
jb 0x14013c7c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x43
mov r9d, eax
call fcn.14000c114
jmp 0x14013c7bc
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x21], rax
test edi, edi
je 0x14013c690
mov rbx, r15
mov r14, rdi
lea rdx, [rbp - 0x21]
call fcn.1400f22a0
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
lea rbx, [rbx + 0x10]
sub r14, 1
jne 0x14013c676
lea r9, [rbp - 0x19]
mov rdx, r15
lea r8, [rbp - 0x2d]
mov ecx, edi
call fcn.14008a180
mov rdi, qword [rbp - 0x19]
mov ebx, eax
test eax, eax
jns 0x14013c6f4
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c7a8
test byte [rcx + 0x1c], 0x20
je 0x14013c7a8
cmp byte [rcx + 0x19], 2
jb 0x14013c7a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x44
mov r9d, eax
call fcn.14000c114
jmp 0x14013c7a1
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14013c72b
test byte [rcx + 0x1c], 0x20
je 0x14013c72b
cmp byte [rcx + 0x19], 4
jb 0x14013c72b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x45
mov r9, rdi
call fcn.140014f10
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 0x14013c7a1
jg 0x14013c760
mov ebx, eax
jmp 0x14013c769
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14013c7a8
test byte [rcx + 0x1c], 0x20
je 0x14013c7a8
cmp byte [rcx + 0x19], 2
jb 0x14013c7a8
mov rcx, qword [rcx + 0x10]
lea r9, str.RestoredVolumes
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r8, [0x14015ad60]
call fcn.140014f78
mov rcx, qword [0x14016a048]
test rdi, rdi
je 0x14013c7c3
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test r15, r15
je 0x14013c7de
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test rsi, rsi
je 0x14013c7f9
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test r13, r13
je 0x14013c814
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14013c83a
test byte [rcx + 0x1c], 0x20
je 0x14013c83a
cmp byte [rcx + 0x19], 4
jb 0x14013c83a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ad60]
mov edx, 0x47
call fcn.14000c0e8
lea rcx, [rbp - 0x11]
call fcn.1400f3048
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400071e0
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