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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
call fcn.140004c40
lea rdx, str.AddQsTrayIcon_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140002f10
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
xor r8d, r8d
lea rdx, [0x140008938]
lea rcx, [rsp + 0x58]
call fcn.140005760
nop
lea rcx, [rsp + 0x58]
call fcn.140005170
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
xor edi, edi
cmp di, word [str.LenovoVantageToolbar]
je 0x140003202
test rbx, rbx
je 0x140003202
cmp di, word [rbx]
je 0x140003202
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140003166
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000312f
lea rdx, str.Set_QS_auto_start_failed_2:_open_registry_failed
jmp 0x140003209
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003166
lea rdx, str.Set_QS_auto_start_failed_3:_open_registry_failed
jmp 0x140003209
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], di
jne 0x140003170
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8, str.LenovoVantageToolbar
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x1400031ce
mov r9, rbx
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 0x140003215
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400031e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rdi
mov r9, rbx
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 0x140003215
lea rdx, str.Set_QS_auto_start_failed_1:_invalid_params
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov cl, 1
call fcn.140003ff0
mov cl, 1
call fcn.140003940
lea rax, [fcn.1400045f0]
mov qword [0x14000e088], rax
mov qword [0x14000e090], rdi
mov qword [0x14000e0a8], 0xffffffff80000001
lea rax, str.SOFTWAREClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
mov qword [0x14000e0b0], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
lea r9, vtable.CBGRegitryMonitor.0
lea r8, [0x140001c60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x140003280
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.140004740
cmp dword [rsp + 0x50], 0xffffffff
jne 0x1400032a0
xor ecx, ecx
call fcn.1400045f0
lea rdx, str.AddQsTrayIcon_2_end
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400032f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400032f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400066b0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret