Function at 0x140003af0
Capabilities:
Create process on windows
Delete registry key
Get common file path
Get installed programs
Move file
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r15
lea rbp, [r11 - 0xa38]
sub rsp, 0xb18
mov rax, qword [0x14006b008]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov qword [r11 + 0x10], rsi
mov r15, r8
mov qword [r11 - 0x28], r14
xor edx, edx
mov r14, rcx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.140008710
xor edi, edi
lea rdx, [rbp + 0x3e0]
mov r8d, 0x104
mov dword [rsp + 0x34], edi
xor ecx, ecx
mov dword [rsp + 0x38], edi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140004033
lea r8, [rbp + 0x3e0]
mov edx, 0x104
lea rax, [rbp + 0x1d0]
sub r8, rax
lea rcx, [rbp + 0x1d0]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003bb6
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003bb6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003b93
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140004033
xor edx, edx
lea rcx, [rbp + 0x1d0]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x140004033
mov word [rax], di
lea rdx, [0x140054da0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], edi
test eax, eax
jne 0x140003c91
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140054dd0]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003c91
mov edx, dword [rsp + 0x30]
lea ecx, [rax + 0x40]
add rdx, 4
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140003c91
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Components
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
je 0x140003c93
mov ebx, edi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003ca3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140004033
xor edx, edx
mov dword [rsp + 0x50], MsiRecordGetStringA
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x68]
call fcn.140008710
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x5f0]
mov r8d, 0x410
call fcn.140008710
lea rax, [rbp - 0x40]
mov dword [rsp + 0x54], 0x140
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rbp + 0x5f0]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x70], rax
xor r8d, r8d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x60], rdi
lea edx, [r9 + 0x25]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov dword [rbp - 0x80], 1
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140004033
mov ecx, 0x104
lea rax, [rbp - 0x40]
cmp word [rax], di
je 0x140003d51
add rax, 2
sub rcx, 1
jne 0x140003d42
mov eax, 0x104
mov r8, rdi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140004033
mov edx, 0x104
lea rcx, [rbp - 0x40]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x140003db1
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x1400546e4]
sub r9, rcx
nop
test rax, rax
je 0x140003db1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140003db1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140003d90
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140004033
mov ecx, 0x104
lea rax, [rbp - 0x40]
nop
cmp word [rax], di
je 0x140003ddf
add rax, 2
sub rcx, 1
jne 0x140003dd0
mov eax, 0x104
mov r8, rdi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140004033
mov edx, 0x104
lea rcx, [rbp - 0x40]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x140003e41
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, str.msiexec.exe
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x140003e41
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x140003e41
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140003e20
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140004033
movzx eax, word [rsi]
mov rbx, rsi
test ax, ax
je 0x140003ec5
mov r9, rbx
lea r8, str._x__s__qn
mov edx, 0x208
lea rcx, [rbp + 0x5f0]
call fcn.140004810
test eax, eax
js 0x140003ec2
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140003ec2
mov rcx, qword [rbp - 0x48]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rbx, [rbx + rax*2]
movzx eax, word [rbx]
test ax, ax
jne 0x140003e60
jmp 0x140003ec5
movzx eax, word [rbx]
cmp di, ax
jne 0x140004033
lea rdx, str.SOFTWARELenovoFnApps
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140004033
xor edx, edx
lea rcx, [rbp + 0x5f0]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.140008710
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140003f88
lea rdx, [0x140054e60]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003f88
mov r8d, 0x104
lea rdx, [rbp + 0x5f0]
lea rcx, [rbp - 0x40]
call fcn.140004cc0
test eax, eax
je 0x140003f88
xor r8d, r8d
lea rdx, [rbp + 0x5f0]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140003f88
xor edx, edx
lea rcx, [rbp + 0x5f0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, 1
test eax, eax
jne 0x140003f8a
mov ebx, edi
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x1d0]
call fcn.140004bf0
lea rdx, [rsp + 0x38]
lea rcx, str.C:DRIVERSWINOSD
call fcn.140004bf0
lea rdx, [0x140054e90]
mov rcx, 0xffffffff80000002
call fcn.140004aa0
lea rdx, [0x140054f50]
mov rcx, 0xffffffff80000002
call fcn.140004aa0
lea rdx, [0x140054f18]
mov rcx, 0xffffffff80000002
call fcn.140004aa0
lea rdx, str.SOFTWARELenovoOnScreenDisplay
mov rcx, 0xffffffff80000001
call fcn.140004aa0
lea rdx, str.SOFTWARELenovoLCDShadow
mov rcx, 0xffffffff80000001
call fcn.140004aa0
lea rdx, str.SOFTWARELenovoLenovo_Settings_KBDMgr
mov rcx, 0xffffffff80000001
call fcn.140004aa0
lea rdx, str.SOFTWARELenovoUltraZoom
mov rcx, 0xffffffff80000001
call fcn.140004aa0
jmp 0x140004035
mov ebx, edi
mov r14, qword [rsp + 0xb10]
test rsi, rsi
je 0x14000404b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0xb48]
test r15, r15
je 0x14000406c
cmp dword [rsp + 0x34], edi
jne 0x140004064
cmp dword [rsp + 0x38], edi
je 0x140004069
mov edi, 1
mov dword [r15], edi
mov eax, ebx
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.1400074e0
add rsp, 0xb18
pop r15
pop rdi
pop rbx
pop rbp
ret