Function at 0x140137c04
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 0x140137c74
test byte [rcx + 0x1c], 0x20
je 0x140137c74
cmp byte [rcx + 0x19], 4
jb 0x140137c74
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x3b
call fcn.1400049d8
xor r13d, r13d
lea rsi, str.base_stor_blb_bmr_asrrestore.cpp
test rbx, rbx
jne 0x140137c97
lea r8, str.rgguidVolumes
mov edx, 0x3eb
mov rcx, rsi
call fcn.140082070
test edi, edi
jne 0x140137caf
lea r8, str.cVolumes___0
mov edx, 0x3ec
mov rcx, rsi
call fcn.140082070
test r12, r12
jne 0x140137cc8
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 [0x140157cb8]
movdqu xmmword [rbp + 7], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test edi, edi
je 0x140137d27
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400eee1c
add rbx, 0x10
sub rdi, 1
jne 0x140137d11
test r14b, r14b
je 0x140137d89
lea r9, [rbp - 0x31]
mov rcx, r12
lea r8, [rbp - 0x39]
call fcn.14008aa48
mov ebx, eax
test eax, eax
jns 0x140137e3e
cmp eax, 0x80070002
jne 0x140137df3
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140137d85
test byte [rcx + 0x1c], 0x20
je 0x140137d85
cmp byte [rcx + 0x19], 4
jb 0x140137d85
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
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 0x14013808c
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381ea
test byte [rcx + 0x1c], 0x20
je 0x1401381ea
cmp byte [rcx + 0x19], 2
jb 0x1401381ea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x43
mov r9d, ebx
call fcn.1400049f8
jmp 0x1401381e3
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137e8b
test byte [rcx + 0x1c], 0x20
je 0x140137e8b
cmp byte [rcx + 0x19], 2
jb 0x140137e8b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x3d
mov r9d, eax
call fcn.1400049f8
mov rsi, qword [rbp - 0x39]
mov rcx, qword [0x14016f048]
jmp 0x140138206
mov r8d, dword [rbp - 0x31]
cmp r8d, 4
jae 0x140137e94
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137e86
test byte [rcx + 0x1c], 0x20
je 0x140137e86
cmp byte [rcx + 0x19], 2
jb 0x140137e86
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140158800]
mov edx, 0x3e
call fcn.1400049f8
mov rcx, qword [0x14016f048]
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x39]
jmp 0x140138206
mov rsi, qword [rbp - 0x39]
shr r8d, 1
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r13w
jne 0x140138047
lea eax, [r8 - 2]
cmp word [rsi + rax*2], r13w
jne 0x140138047
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140137ef0
test byte [rcx + 0x1c], 0x20
je 0x140137ef0
cmp byte [rcx + 0x19], 4
jb 0x140137ef0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x40
mov r9, rsi
call fcn.1400058d8
mov rdi, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140137ef7
jmp 0x140137fae
test r15, r15
je 0x140137f18
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 0x140138001
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 0x140137fbc
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140137f73
mov rcx, qword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
cmp qword [rax + 0x10], rdx
jne 0x140137f6b
cmp qword [rax + 0x18], rcx
je 0x140137f76
mov rax, qword [rax]
test rax, rax
jne 0x140137f5f
mov rax, r13
test rax, rax
jne 0x140137f88
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1400eee1c
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140137f8f
lea rdi, [rdi + rax*2]
mov rax, rcx
add rdi, 2
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140137fa4
test rax, rax
jne 0x140137f06
jmp 0x140137d89
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140138206
test byte [rcx + 0x1c], 0x20
je 0x140138206
cmp byte [rcx + 0x19], 2
jb 0x140138206
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
jmp 0x140137e32
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14013803e
test byte [rcx + 0x1c], 0x20
je 0x14013803e
cmp byte [rcx + 0x19], 2
jb 0x14013803e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x41
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
mov r15, qword [rbp - 0x29]
jmp 0x140137e32
mov r15, qword [rbp - 0x29]
jmp 0x140138206
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140138082
test byte [rcx + 0x1c], 0x20
je 0x140138082
cmp byte [rcx + 0x19], 2
jb 0x140138082
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x3f
call fcn.1400049d8
mov rcx, qword [0x14016f048]
mov ebx, 0x80070057
jmp 0x140138206
mov rcx, qword [rbp - 0x11]
mov r8d, r13d
test edi, edi
je 0x1401380bd
mov rdx, r14
test rcx, rcx
je 0x14013828e
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 0x14013809a
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 0x140138121
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381d5
test byte [rcx + 0x1c], 0x20
je 0x1401381d5
cmp byte [rcx + 0x19], 2
jb 0x1401381d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x44
mov r9d, ebx
call fcn.1400049f8
jmp 0x1401381ce
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140138158
test byte [rcx + 0x1c], 0x20
je 0x140138158
cmp byte [rcx + 0x19], 4
jb 0x140138158
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
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 0x1401381ce
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1401381d5
test byte [rcx + 0x1c], 0x20
je 0x1401381d5
cmp byte [rcx + 0x19], 2
jb 0x1401381d5
mov rcx, qword [rcx + 0x10]
lea r9, str.RestoredVolumes
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r8, [0x140158800]
call fcn.140005938
mov rcx, qword [0x14016f048]
test rdi, rdi
je 0x1401381ea
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test r14, r14
je 0x1401381ff
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
test rsi, rsi
je 0x14013821b
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test r15, r15
je 0x140138230
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140138256
test byte [rcx + 0x1c], 0x20
je 0x140138256
cmp byte [rcx + 0x19], 4
jb 0x140138256
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158800]
mov edx, 0x47
call fcn.1400049d8
lea rcx, [rbp - 0x11]
call fcn.1400e1118
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14013e290
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