Function at 0x140003410
Capabilities:
Create process on windows
Delete registry key
Get common file path
Get installed programs
Get program files directory
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1250]
mov eax, 0x1350
call fcn.140007470
sub rsp, rax
mov rax, qword [0x14006b008]
xor rax, rsp
mov qword [rbp + 0x1240], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x800]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x5f0]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0xc20]
mov r8d, 0x208
call fcn.140008710
xor r14d, r14d
lea rcx, [rbp + 0x5f0]
mov edx, 0x104
mov edi, r14d
call fcn.140001c10
test eax, eax
je 0x140003ad7
lea r8, [rbp + 0x5f0]
mov edx, 0x104
lea rax, [rbp + 0x1d0]
sub r8, rax
lea rcx, [rbp + 0x1d0]
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400034f3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400034f3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400034d0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140003ad7
xor edx, edx
lea rcx, [rbp + 0x1d0]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x140003ad7
xor r9d, r9d
mov word [rax], r14w
lea rax, [rbp + 0x800]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140003ad7
lea rdx, str.LenovoHotkey
lea rcx, [rbp + 0x800]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003ad7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x1378], rbx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], r14
lea rdx, [0x140054c08]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], r14d
test eax, eax
jne 0x14000361b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140054c38]
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000361b
mov edx, dword [rsp + 0x30]
lea ecx, [rax + 0x40]
add rdx, 4
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000361b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140054c50]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
je 0x14000361e
mov ebx, r14d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000362e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140003a9c
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 + 0xe30]
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 + 0xe30]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x70], rax
xor r8d, r8d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x60], r14
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 0x140003a99
mov ecx, 0x104
lea rax, [rbp - 0x40]
nop dword [rax]
cmp word [rax], r14w
je 0x1400036e0
add rax, 2
sub rcx, 1
jne 0x1400036d0
mov eax, 0x104
mov r8, r14
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140003a99
mov edx, 0x104
lea rcx, [rbp - 0x40]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x140003741
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x1400546d4]
sub r9, rcx
nop
test rax, rax
je 0x140003741
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140003741
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140003720
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140003a99
mov ecx, 0x104
lea rax, [rbp - 0x40]
nop
cmp word [rax], r14w
je 0x140003770
add rax, 2
sub rcx, 1
jne 0x140003760
mov eax, 0x104
mov r8, r14
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140003a99
mov edx, 0x104
lea rcx, [rbp - 0x40]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x1400037d1
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x140054c68]
sub r9, rcx
nop
test rax, rax
je 0x1400037d1
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x1400037d1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400037b0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140003a99
xor edx, edx
lea rcx, [rbp + 0xa10]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x3e0]
mov r8d, 0x208
call fcn.140008710
movzx eax, word [rdi]
mov rbx, rdi
test ax, ax
je 0x140003906
nop dword [rax]
mov rcx, rbx
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 5
je 0x1400038e4
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.msi
mov edx, 0x104
lea rcx, [rbp + 0xa10]
call fcn.140004810
test eax, eax
js 0x140003903
lea r9, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov qword [rsp + 0x20], rbx
lea r8, [0x140054d08]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call fcn.140004810
test eax, eax
js 0x140003903
lea r9, [rbp + 0xa10]
mov edx, 0x208
lea r8, str._i___s___q
lea rcx, [rbp + 0xe30]
call fcn.140004810
test eax, eax
js 0x140003903
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140003903
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]
lea rdx, [rbp + 0x3e0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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 0x140003820
jmp 0x140003906
movzx eax, word [rbx]
cmp r14w, ax
mov ebx, r14d
sete bl
jne 0x140003a9c
xorps xmm0, xmm0
mov dword [rsp + 0x5c], r14d
lea rcx, [rbp + 0x5f0]
mov dword [rbp - 0x7e], r14d
movdqu xmmword [rsp + 0x72], xmm0
mov word [rbp - 0x7a], r14w
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rbp + 0x5f0]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rcx
lea r9, [rbp + 0x800]
lea rcx, [rbp + 0xc20]
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x68], rcx
lea r8, [0x140054d30]
mov ecx, 0x614
mov qword [rsp + 0x20], rax
mov word [rsp + 0x70], cx
mov edx, 0x104
lea rcx, [rbp + 0xc20]
call fcn.140004810
test eax, eax
js 0x140003a99
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x140003a99
lea r8, [rbp + 0x800]
mov rcx, rsi
lea rdx, [rbp + 0x1d0]
call fcn.140002800
test eax, eax
je 0x140003a99
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140054d40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, r14d
sete bl
test eax, eax
jne 0x140003a87
xor edx, edx
lea rcx, [rbp + 0x3e0]
mov r8d, 0x208
call fcn.140008710
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.SetupVersion
lea rax, [rbp + 0x3e0]
mov dword [rsp + 0x34], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003a87
mov eax, dword [rsp + 0x34]
lea rdx, str.Version
mov rcx, qword [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ebx, r14d
sete bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003a9c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003a9c
mov ebx, r14d
test rdi, rdi
je 0x140003aaa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x1378]
mov rcx, qword [rbp + 0x1240]
xor rcx, rsp
call fcn.1400074e0
mov rsi, qword [rsp + 0x1380]
add rsp, 0x1350
pop r14
pop rdi
pop rbp
ret
mov eax, r14d
jmp 0x140003ab4