Function at 0x140136bf0
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 [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r9
mov edi, edx
mov rbx, r8
mov r14b, cl
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140136c60
test byte [rcx + 0x1c], 0x20
je 0x140136c60
cmp byte [rcx + 0x19], 4
jb 0x140136c60
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x3b
call fcn.140004968
xor r13d, r13d
lea rsi, str.base_stor_blb_bmr_asrrestore.cpp
test rbx, rbx
jne 0x140136c83
lea r8, str.rgguidVolumes
mov edx, 0x3eb
mov rcx, rsi
call fcn.140081b60
test edi, edi
jne 0x140136c9b
lea r8, str.cVolumes___0
mov edx, 0x3ec
mov rcx, rsi
call fcn.140081b60
test r12, r12
jne 0x140136cb4
lea r8, str.hKey
mov edx, 0x3ed
mov rcx, rsi
call fcn.140081b60
mov qword [rbp - 1], r13
xorps xmm0, xmm0
mov dword [rbp + 0x17], 0xa
xorps xmm1, xmm1
mov qword [rbp - 0x21], r13
mov rsi, r13
mov qword [rbp - 0x39], r13
mov r15, r13
mov dword [rbp - 0x31], r13d
mov dword [rbp - 0x2d], r13d
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x29], r13
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [0x140156cf8]
movdqu xmmword [rbp + 7], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test edi, edi
je 0x140136d13
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400ee3f0
add rbx, 0x10
sub rdi, 1
jne 0x140136cfd
test r14b, r14b
je 0x140136d75
lea r9, [rbp - 0x31]
mov rcx, r12
lea r8, [rbp - 0x39]
call fcn.14008a4fc
mov ebx, eax
test eax, eax
jns 0x140136e2a
cmp eax, 0x80070002
jne 0x140136ddf
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140136d71
test byte [rcx + 0x1c], 0x20
je 0x140136d71
cmp byte [rcx + 0x19], 4
jb 0x140136d71
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x3c
call fcn.140004968
mov rsi, qword [rbp - 0x39]
mov edi, dword [rbp - 1]
lea rcx, [rbp - 0x21]
mov edx, edi
mov r8d, 0x10
call fcn.14000f570
mov r14, qword [rbp - 0x21]
mov ebx, eax
test eax, eax
jns 0x140137078
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1401371d6
test byte [rcx + 0x1c], 0x20
je 0x1401371d6
cmp byte [rcx + 0x19], 2
jb 0x1401371d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x43
mov r9d, ebx
call fcn.140004988
jmp 0x1401371cf
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x140136e77
test byte [rcx + 0x1c], 0x20
je 0x140136e77
cmp byte [rcx + 0x19], 2
jb 0x140136e77
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x3d
mov r9d, eax
call fcn.140004988
mov rsi, qword [rbp - 0x39]
mov rcx, qword [0x14016d090]
jmp 0x1401371f2
mov r8d, dword [rbp - 0x31]
cmp r8d, 4
jae 0x140136e80
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x140136e72
test byte [rcx + 0x1c], 0x20
je 0x140136e72
cmp byte [rcx + 0x19], 2
jb 0x140136e72
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140157858]
mov edx, 0x3e
call fcn.140004988
mov rcx, qword [0x14016d090]
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x39]
jmp 0x1401371f2
mov rsi, qword [rbp - 0x39]
shr r8d, 1
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r13w
jne 0x140137033
lea eax, [r8 - 2]
cmp word [rsi + rax*2], r13w
jne 0x140137033
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x140136edc
test byte [rcx + 0x1c], 0x20
je 0x140136edc
cmp byte [rcx + 0x19], 4
jb 0x140136edc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x40
mov r9, rsi
call fcn.140005868
mov rdi, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140136ee3
jmp 0x140136f9a
test r15, r15
je 0x140136f04
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x29], r13
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400826fc
mov ebx, eax
test eax, eax
js 0x140136fed
mov r15, qword [rbp - 0x29]
lea rdx, [rbp + 0x1f]
mov eax, 0x5c
mov rcx, r15
mov word [r15 + 2], ax
call fcn.1400853ec
mov ebx, eax
test eax, eax
js 0x140136fa8
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140136f5f
mov rcx, qword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
cmp qword [rax + 0x10], rdx
jne 0x140136f57
cmp qword [rax + 0x18], rcx
je 0x140136f62
mov rax, qword [rax]
test rax, rax
jne 0x140136f4b
mov rax, r13
test rax, rax
jne 0x140136f74
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400ee3f0
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140136f7b
lea rdi, [rdi + rax*2]
mov rax, rcx
add rdi, 2
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140136f90
test rax, rax
jne 0x140136ef2
jmp 0x140136d75
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1401371f2
test byte [rcx + 0x1c], 0x20
je 0x1401371f2
cmp byte [rcx + 0x19], 2
jb 0x1401371f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400058c8
jmp 0x140136e1e
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14013702a
test byte [rcx + 0x1c], 0x20
je 0x14013702a
cmp byte [rcx + 0x19], 2
jb 0x14013702a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x41
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400058c8
mov r15, qword [rbp - 0x29]
jmp 0x140136e1e
mov r15, qword [rbp - 0x29]
jmp 0x1401371f2
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x14013706e
test byte [rcx + 0x1c], 0x20
je 0x14013706e
cmp byte [rcx + 0x19], 2
jb 0x14013706e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x3f
call fcn.140004968
mov rcx, qword [0x14016d090]
mov ebx, 0x80070057
jmp 0x1401371f2
mov rcx, qword [rbp - 0x11]
mov r8d, r13d
test edi, edi
je 0x1401370a9
mov rdx, r14
test rcx, rcx
je 0x14013727a
mov rax, rcx
inc r8d
mov rcx, qword [rcx]
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rdx], xmm0
add rdx, 0x10
cmp r8d, edi
jb 0x140137086
lea r9, [rbp - 0x19]
mov rdx, r14
lea r8, [rbp - 0x2d]
mov ecx, edi
call fcn.140082b08
mov rdi, qword [rbp - 0x19]
mov ebx, eax
test eax, eax
jns 0x14013710d
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1401371c1
test byte [rcx + 0x1c], 0x20
je 0x1401371c1
cmp byte [rcx + 0x19], 2
jb 0x1401371c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x44
mov r9d, ebx
call fcn.140004988
jmp 0x1401371ba
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140137144
test byte [rcx + 0x1c], 0x20
je 0x140137144
cmp byte [rcx + 0x19], 4
jb 0x140137144
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x45
mov r9, rdi
call fcn.140005868
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]
test eax, eax
je 0x1401371ba
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1401371c1
test byte [rcx + 0x1c], 0x20
je 0x1401371c1
cmp byte [rcx + 0x19], 2
jb 0x1401371c1
mov rcx, qword [rcx + 0x10]
lea r9, str.RestoredVolumes
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r8, [0x140157858]
call fcn.1400058c8
mov rcx, qword [0x14016d090]
test rdi, rdi
je 0x1401371d6
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
test r14, r14
je 0x1401371eb
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
test rsi, rsi
je 0x140137207
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
test r15, r15
je 0x14013721c
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x140137242
test byte [rcx + 0x1c], 0x20
je 0x140137242
cmp byte [rcx + 0x19], 4
jb 0x140137242
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157858]
mov edx, 0x47
call fcn.140004968
lea rcx, [rbp - 0x11]
call fcn.1400e0714
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14013cc00
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
mov ecx, 0x80004005
call fcn.140001ae4
int3