Function at 0x140023ae0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
lea r12, [rcx + 0x38]
mov rcx, r12
call fcn.140002250
xor r13d, r13d
mov qword [rbp + 0x1f], r13
mov dword [rbp + 0x27], r13d
mov qword [rbp + 0x2f], r13
mov r9d, 0x2001f
lea rbx, str.SOFTWARESony_CorporationVAIO_Update
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x1f]
call fcn.140008440
test eax, eax
jne 0x140023dd2
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x77], rax
test rbx, 0xffffffffffff0000
jne 0x140023b8b
movzx ebx, bx
xor edx, edx
mov ecx, ebx
call fcn.1400017e0
test rax, rax
je 0x140023b9e
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x77]
call fcn.140001f70
jmp 0x140023b9e
mov r8d, 0x25
mov rdx, rbx
lea rcx, [rbp + 0x77]
call fcn.140001e80
nop
lea r8, [0x1400ddd20]
lea rdx, [rbp + 0x77]
lea rcx, [rbp + 0xf]
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 + 0x77]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x140023c26
cmp dword [rbx + 0x10], 0
jl 0x140023c18
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140023c18
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140023c0e
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x77], rax
jmp 0x140023c26
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x77]
call fcn.140001e80
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140023c45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140023c63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp + 0x7f], r13
mov rbx, qword [rbp + 0x77]
mov rdi, qword [rbp + 0x2f]
test rdi, rdi
je 0x140023d01
cmp qword [rdi], 0
je 0x140023cf4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140023c9a
mov eax, 1
jmp 0x140023d3b
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023cfa
mov qword [rsp + 0x50], r13
mov rdx, qword [rdi]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call rax
jmp 0x140023d3b
cmp dword [rdi + 8], 0
jne 0x140023d01
mov eax, 1
jmp 0x140023d3b
lea rax, [rbp + 0x67]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023d9f
mov eax, r13d
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140023d51
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x7f]
mov qword [rbp + 0x1f], rdi
test eax, eax
jne 0x140023da3
mov r12, qword [r12]
mov eax, r13d
test r12, r12
setne al
test eax, eax
je 0x140023da3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
lea rdx, str.AppName
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140023da3
mov rdi, qword [rbp + 0x1f]
test rdi, rdi
je 0x140023db5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x1f], r13
mov dword [rbp + 0x27], r13d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140023dd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140023de1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret