Function at 0x140028970
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov r14, rcx
mov dword [rcx + 0x4c], 3
mov dword [rbp + 0x6f], 1
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
call qword [rax + reloc.ATL100.DLL_Ordinal_32]
xor r12d, r12d
mov qword [rbp - 0x29], r12
mov dword [rbp - 0x21], r12d
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x31], r12
lea rax, [rbp - 9]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rbx, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140028c73
mov rax, qword [rbp - 0x31]
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x21], r12d
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x59], rax
test rbx, 0xffffffffffff0000
jne 0x140028a58
movzx ebx, bx
xor edx, edx
mov ecx, ebx
call fcn.1400017e0
test rax, rax
je 0x140028a6b
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140001f70
jmp 0x140028a6b
mov r8d, 0x25
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.140001e80
nop
lea r8, [0x1400ddd20]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 1]
call fcn.140002ce0
nop
lea r8, str.TaskManager
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x59]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140028af1
cmp dword [rbx + 0x10], 0
jl 0x140028ae3
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140028ae3
call fcn.140001b90
mov rdi, rax
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140028ad9
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x59], rax
jmp 0x140028af1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x59]
call fcn.140001e80
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140028b11
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140028b30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp - 0x11], r12
lea rax, [rbp - 5]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rbp - 0x59]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140028c3e
mov eax, r12d
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140028b8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x11]
mov qword [rbp - 0x29], rdi
test eax, eax
jne 0x140028c42
lea rsi, str.Install
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Task
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [r14 + 0x5c], 0
je 0x140028c42
mov dword [rbp + 0x77], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SelfUpdate
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [r14 + 0x50]
mov dword [rbp + 0x7f], r11d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.UpdateType
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140028c42
mov rdi, qword [rbp - 0x29]
test rdi, rdi
je 0x140028c54
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r12
mov dword [rbp - 0x21], r12d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140028c73
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], r12
mov dword [rbp + 0x67], r12d
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
mov r8d, dword [r14 + 0x50]
lea rdx, [0x1400de14c]
lea rcx, [rbp - 0x49]
call fcn.140004440
lea r11, [rbp - 0x49]
mov rbx, qword [rbp - 0x49]
mov rax, qword [rbp - 0x79]
mov rdi, qword [rbp - 0x71]
cmp r11, rdi
jae 0x140028da4
lea rcx, [rbp - 0x49]
cmp rax, rcx
ja 0x140028da4
lea r12, [rbp - 0x49]
sub r12, rax
sar r12, 3
movabs rsi, 0x1fffffffffffffff
movabs r13, 0x1ffffffffffffffe
mov rdx, qword [rbp - 0x69]
cmp rdi, rdx
jne 0x140028d73
mov rcx, rdi
sub rcx, rax
sar rcx, 3
cmp rcx, r13
jbe 0x140028d34
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rcx
sub rdx, rax
sar rdx, 3
cmp rcx, rdx
jbe 0x140028d73
mov r8, rdx
shr r8, 1
mov rax, rsi
sub rax, r8
cmp rax, rdx
jae 0x140028d58
xor edx, edx
jmp 0x140028d5b
add rdx, r8
cmp rdx, rcx
cmovb rdx, rcx
lea rcx, [rbp - 0x79]
call fcn.14000dcf0
mov rdi, qword [rbp - 0x71]
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x140028d98
mov rcx, qword [rax + r12*8]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
mov rdi, qword [rbp - 0x71]
add rdi, 8
xor r12d, r12d
jmp 0x140028e3f
movabs rsi, 0x1fffffffffffffff
movabs r13, 0x1ffffffffffffffe
mov rdx, qword [rbp - 0x69]
cmp rdi, rdx
jne 0x140028e1a
mov rcx, rdi
sub rcx, rax
sar rcx, 3
cmp rcx, r13
jbe 0x140028dde
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rcx
sub rdx, rax
sar rdx, 3
cmp rcx, rdx
jbe 0x140028e1a
mov r8, rdx
shr r8, 1
mov rax, rsi
sub rax, r8
cmp rax, rdx
jae 0x140028e03
mov rdx, r12
jmp 0x140028e06
add rdx, r8
cmp rdx, rcx
cmovb rdx, rcx
lea rcx, [rbp - 0x79]
call fcn.14000dcf0
mov rdi, qword [rbp - 0x71]
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x41], rdi
test rdi, rdi
je 0x140028e3b
lea rcx, [rbx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
mov rdi, qword [rbp - 0x71]
add rdi, 8
mov qword [rbp - 0x71], rdi
lea rdx, [rbp + 0x67]
mov rcx, qword [r14 + 0x30]
call fcn.1400654c0
mov r8d, dword [rbp + 0x67]
lea rdx, [0x1400de14c]
lea rcx, [rbp - 0x51]
call fcn.140004440
lea r11, [rbp - 0x51]
mov rcx, qword [rbp - 0x79]
mov rdi, qword [rbp - 0x71]
cmp r11, rdi
jae 0x140028f1d
lea rax, [rbp - 0x51]
cmp rcx, rax
ja 0x140028f1d
lea r12, [rbp - 0x51]
sub r12, rcx
sar r12, 3
mov rdx, qword [rbp - 0x69]
cmp rdi, rdx
jne 0x140028ef3
mov rax, rdi
sub rax, rcx
sar rax, 3
cmp rax, r13
jbe 0x140028eb7
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
sub rdx, rcx
sar rdx, 3
cmp rax, rdx
jbe 0x140028ef3
mov rcx, rdx
shr rcx, 1
sub rsi, rcx
cmp rsi, rdx
jae 0x140028ed8
xor edx, edx
jmp 0x140028edb
add rdx, rcx
cmp rdx, rax
cmovb rdx, rax
lea rcx, [rbp - 0x79]
call fcn.14000dcf0
mov rdi, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x79]
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x41], rdi
test rdi, rdi
je 0x140028f18
mov rcx, qword [rcx + r12*8]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
mov rdi, qword [rbp - 0x71]
jmp 0x140028fa1
mov rdx, qword [rbp - 0x69]
cmp rdi, rdx
jne 0x140028f7c
mov rax, rdi
sub rax, rcx
sar rax, 3
cmp rax, r13
jbe 0x140028f43
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
sub rdx, rcx
sar rdx, 3
cmp rax, rdx
jbe 0x140028f7c
mov rcx, rdx
shr rcx, 1
sub rsi, rcx
cmp rsi, rdx
jae 0x140028f65
mov rdx, r12
jmp 0x140028f68
add rdx, rcx
cmp rdx, rax
cmovb rdx, rax
lea rcx, [rbp - 0x79]
call fcn.14000dcf0
mov rdi, qword [rbp - 0x71]
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x41], rdi
test rdi, rdi
je 0x140028fa1
mov rcx, qword [rbp - 0x51]
add rcx, 0xffffffffffffffe8
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
mov rdi, qword [rbp - 0x71]
add rdi, 8
mov qword [rbp - 0x71], rdi
mov rax, qword [r14]
lea r8, [rbp - 0x79]
lea rdx, [r14 + 0x4c]
mov rcx, r14
call qword [rax + 0x18]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140028fd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140028ff7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x140029043
mov rdi, qword [rbp - 0x71]
cmp rbx, rdi
je 0x14002903b
nop dword [rax]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002902e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rdi
jne 0x140029010
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140029060
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret