Function at 0x140137c14
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 [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r9
mov edi, edx
mov rbx, r8
mov r14b, cl
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140137c84
test byte [rcx + 0x1c], 0x20
je 0x140137c84
cmp byte [rcx + 0x19], 4
jb 0x140137c84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x3b
call fcn.1400049d8
xor r13d, r13d
lea rsi, str.base_stor_blb_bmr_asrrestore.cpp
test rbx, rbx
jne 0x140137ca7
lea r8, str.rgguidVolumes
mov edx, 0x3eb
mov rcx, rsi
call fcn.140082070
test edi, edi
jne 0x140137cbf
lea r8, str.cVolumes___0
mov edx, 0x3ec
mov rcx, rsi
call fcn.140082070
test r12, r12
jne 0x140137cd8
lea r8, str.hKey
mov edx, 0x3ed
mov rcx, rsi
call fcn.140082070
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 [0x140151210]
movdqu xmmword [rbp + 7], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test edi, edi
je 0x140137d37
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400eee2c
add rbx, 0x10
sub rdi, 1
jne 0x140137d21
test r14b, r14b
je 0x140137d99
lea r9, [rbp - 0x31]
mov rcx, r12
lea r8, [rbp - 0x39]
call fcn.14008aa48
mov ebx, eax
test eax, eax
jns 0x140137e4e
cmp eax, 0x80070002
jne 0x140137e03
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140137d95
test byte [rcx + 0x1c], 0x20
je 0x140137d95
cmp byte [rcx + 0x19], 4
jb 0x140137d95
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x3c
call fcn.1400049d8
mov rsi, qword [rbp - 0x39]
mov edi, dword [rbp - 1]
lea rcx, [rbp - 0x21]
mov edx, edi
mov r8d, 0x10
call fcn.14000f99c
mov r14, qword [rbp - 0x21]
mov ebx, eax
test eax, eax
jns 0x14013809c
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381fa
test byte [rcx + 0x1c], 0x20
je 0x1401381fa
cmp byte [rcx + 0x19], 2
jb 0x1401381fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x43
mov r9d, ebx
call fcn.1400049f8
jmp 0x1401381f3
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137e9b
test byte [rcx + 0x1c], 0x20
je 0x140137e9b
cmp byte [rcx + 0x19], 2
jb 0x140137e9b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x3d
mov r9d, eax
call fcn.1400049f8
mov rsi, qword [rbp - 0x39]
mov rcx, qword [0x14016f048]
jmp 0x140138216
mov r8d, dword [rbp - 0x31]
cmp r8d, 4
jae 0x140137ea4
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137e96
test byte [rcx + 0x1c], 0x20
je 0x140137e96
cmp byte [rcx + 0x19], 2
jb 0x140137e96
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140158818]
mov edx, 0x3e
call fcn.1400049f8
mov rcx, qword [0x14016f048]
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x39]
jmp 0x140138216
mov rsi, qword [rbp - 0x39]
shr r8d, 1
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r13w
jne 0x140138057
lea eax, [r8 - 2]
cmp word [rsi + rax*2], r13w
jne 0x140138057
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137f00
test byte [rcx + 0x1c], 0x20
je 0x140137f00
cmp byte [rcx + 0x19], 4
jb 0x140137f00
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x40
mov r9, rsi
call fcn.1400058d8
mov rdi, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140137f07
jmp 0x140137fbe
test r15, r15
je 0x140137f28
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x29], r13
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140082c18
mov ebx, eax
test eax, eax
js 0x140138011
mov r15, qword [rbp - 0x29]
lea rdx, [rbp + 0x1f]
mov eax, 0x5c
mov rcx, r15
mov word [r15 + 2], ax
call fcn.140085904
mov ebx, eax
test eax, eax
js 0x140137fcc
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140137f83
mov rcx, qword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
cmp qword [rax + 0x10], rdx
jne 0x140137f7b
cmp qword [rax + 0x18], rcx
je 0x140137f86
mov rax, qword [rax]
test rax, rax
jne 0x140137f6f
mov rax, r13
test rax, rax
jne 0x140137f98
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400eee2c
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140137f9f
lea rdi, [rdi + rax*2]
mov rax, rcx
add rdi, 2
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140137fb4
test rax, rax
jne 0x140137f16
jmp 0x140137d99
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140138216
test byte [rcx + 0x1c], 0x20
je 0x140138216
cmp byte [rcx + 0x19], 2
jb 0x140138216
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
jmp 0x140137e42
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14013804e
test byte [rcx + 0x1c], 0x20
je 0x14013804e
cmp byte [rcx + 0x19], 2
jb 0x14013804e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x41
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
mov r15, qword [rbp - 0x29]
jmp 0x140137e42
mov r15, qword [rbp - 0x29]
jmp 0x140138216
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140138092
test byte [rcx + 0x1c], 0x20
je 0x140138092
cmp byte [rcx + 0x19], 2
jb 0x140138092
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x3f
call fcn.1400049d8
mov rcx, qword [0x14016f048]
mov ebx, 0x80070057
jmp 0x140138216
mov rcx, qword [rbp - 0x11]
mov r8d, r13d
test edi, edi
je 0x1401380cd
mov rdx, r14
test rcx, rcx
je 0x14013829e
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 0x1401380aa
lea r9, [rbp - 0x19]
mov rdx, r14
lea r8, [rbp - 0x2d]
mov ecx, edi
call fcn.140083024
mov rdi, qword [rbp - 0x19]
mov ebx, eax
test eax, eax
jns 0x140138131
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381e5
test byte [rcx + 0x1c], 0x20
je 0x1401381e5
cmp byte [rcx + 0x19], 2
jb 0x1401381e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x44
mov r9d, ebx
call fcn.1400049f8
jmp 0x1401381de
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140138168
test byte [rcx + 0x1c], 0x20
je 0x140138168
cmp byte [rcx + 0x19], 4
jb 0x140138168
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x45
mov r9, rdi
call fcn.1400058d8
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 0x1401381de
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381e5
test byte [rcx + 0x1c], 0x20
je 0x1401381e5
cmp byte [rcx + 0x19], 2
jb 0x1401381e5
mov rcx, qword [rcx + 0x10]
lea r9, str.RestoredVolumes
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r8, [0x140158818]
call fcn.140005938
mov rcx, qword [0x14016f048]
test rdi, rdi
je 0x1401381fa
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test r14, r14
je 0x14013820f
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
test rsi, rsi
je 0x14013822b
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test r15, r15
je 0x140138240
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140138266
test byte [rcx + 0x1c], 0x20
je 0x140138266
cmp byte [rcx + 0x19], 4
jb 0x140138266
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158818]
mov edx, 0x47
call fcn.1400049d8
lea rcx, [rbp - 0x11]
call fcn.1400e1128
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14013e2a0
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.140001b04
int3