Function at 0x140003020
Capabilities:
Create thread
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
call fcn.140004a40
lea rdx, str.AddQsTrayIcon_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140002f00
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
cmp bx, word [str.LenovoVantageToolbar]
je 0x1400031dc
cmp bx, word [rsp + 0x60]
je 0x1400031dc
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140003132
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400030fb
lea rdx, str.Set_QS_auto_start_failed_2:_open_registry_failed
jmp 0x1400031e3
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003132
lea rdx, str.Set_QS_auto_start_failed_3:_open_registry_failed
jmp 0x1400031e3
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140003140
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.LenovoVantageToolbar
lea rax, [rsp + 0x60]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x1400031a6
lea r9, [rsp + 0x60]
lea r8, str.LenovoVantageToolbar
lea rdx, str.Set_QS_auto_start_failed_4:_set_registry_value_failed._name____s___value____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
jmp 0x1400031ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400031bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x60]
lea r8, str.LenovoVantageToolbar
lea rdx, str.Set_QS_auto_start_successful._name____s___value____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
jmp 0x1400031ef
lea rdx, str.Set_QS_auto_start_failed_1:_invalid_params
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov cl, 1
call fcn.140003f80
mov cl, 1
call fcn.1400038d0
lea rax, [fcn.140004580]
mov qword [rsp + 0x28], rbx
mov qword [0x14000d088], rax
lea r9, vtable.CBGRegitryMonitor.0
lea rax, str.SOFTWAREClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
mov qword [0x14000d090], rbx
lea r8, [0x140001c60]
mov qword [0x14000d0b0], rax
xor edx, edx
mov qword [0x14000d0a8], 0xffffffff80000001
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x14000325a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0xffffffff
call fcn.1400046d0
cmp dword [rsp + 0x50], 0xffffffff
jne 0x14000327a
xor ecx, ecx
call fcn.140004580
lea rdx, str.AddQsTrayIcon_2_end
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006280
add rsp, 0x280
pop rbx
ret