Function at 0x140019648
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Delete registry value
Query or enumerate registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov word [rsp + 0x20], r9w
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r14, rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rbp + 0x6f], ebx
mov qword [rsp + 0x58], rbx
mov r13d, r8d
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
jne 0x1400196ea
mov rcx, qword [0x140050310]
or rdi, 0xffffffffffffffff
cmp rcx, rdi
jne 0x1400196ae
lea edx, [rbx + 2]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, rdi
je 0x1400196d8
cmp dword [0x1400516e0], 2
jl 0x1400196d8
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov r8d, 0x2b
mov qword [rsp + 0x20], rbx
lea rdx, str.ERROR:_Invalid_params_given_to_DoProcess._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140019b6f
lea rdx, [0x140042eb0]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140019786
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x140019786
lea rdx, str._NoMigrate
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140019786
mov rcx, qword [0x140050310]
or rdi, 0xffffffffffffffff
mov esi, 4
cmp rcx, rdi
jne 0x14001974b
mov edx, esi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, rdi
je 0x140019774
cmp dword [0x1400516e0], esi
jl 0x140019774
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov r8d, 0x3a
mov qword [rsp + 0x20], rbx
lea rdx, str.Library_migration_skipped_due_to_installing_app_request._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x140019b6f
test r14, r14
je 0x1400197ae
mov rcx, r14
call fcn.140017448
test eax, eax
jne 0x1400197ae
mov r8, r14
lea rdx, str.ERROR:_Application__S_not_found.__Process_could_not_be_executed._r_n
lea ecx, [rax + 2]
call fcn.140016868
jmp 0x1400196d8
or rdi, 0xffffffffffffffff
mov rsi, rdi
inc rsi
cmp word [r15 + rsi*2], bx
jne 0x1400197b5
add rsi, 5
mov eax, 2
mul rsi
cmovo rax, rdi
mov rcx, rax
call fcn.14003c310
mov r12, rax
test rax, rax
jne 0x1400197e7
lea ecx, [rax + 8]
jmp 0x1400196dd
mov r8, rsi
mov rdx, r12
mov rcx, r15
call fcn.140016b08
mov eax, ebx
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x68
mov edx, 0xffff
mov qword [rbp - 0x41], rbx
cmp word [rbp + 0x7f], dx
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov word [rbp - 7], bx
setne al
mov qword [rbp - 1], rbx
mov dword [rbp - 0xd], eax
mov eax, ebx
cmovne ax, word [rbp + 0x7f]
xor r9d, r9d
mov word [rbp - 9], ax
xor r8d, r8d
lea rax, [rsp + 0x58]
movdqa xmmword [rbp - 0x39], xmm0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rbx
mov dword [rbp - 0x11], ebx
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400198b8
mov rcx, qword [rsp + 0x58]
lea rdx, str.CurrentItemTotalProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.CurrentItemProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.CurrentItemEstimatedTime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, 4
lea rdx, str.Starting_process__S._r_n
mov ecx, esi
mov r8, r15
call fcn.140016868
lea rax, [rbp - 0x69]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x49]
mov rdx, r12
mov qword [rsp + 0x40], rax
mov rcx, r14
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14001995a
mov rcx, r12
call fcn.14003c2b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rsi + 0x53]
mov r8, r15
test eax, eax
lea rdx, str.ERROR:_Process__S_failed.__Error:_0x_x._r_n
cmove eax, ecx
lea ecx, [rsi - 2]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.140016868
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400196e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400196e3
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14001996d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rbx
test r13d, r13d
je 0x140019b06
mov r14d, ebx
mov dword [rsp + 0x50], esi
mov r13d, ebx
mov dword [rbp - 0x79], ebx
mov dword [rbp - 0x75], ebx
mov r9d, 0xfa
mov edi, 1
jmp 0x140019a95
test r14d, r14d
jne 0x140019a13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x1400199ad
mov r14d, edi
jmp 0x140019a80
lea rax, [rbp - 0x79]
mov dword [rbp - 0x79], esi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp - 0x75]
xor r8d, r8d
lea rdx, str.CurrentItemTotalProgressCount
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019a13
mov rcx, qword [0x1400516d8]
mov r14d, edi
mov eax, dword [rbp - 0x75]
mov dword [rbp - 0x71], eax
test rcx, rcx
je 0x140019a13
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140019a13
mov r9d, dword [rbp - 0x71]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5d9
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140019a80
lea rax, [rbp - 0x79]
mov dword [rbp - 0x79], esi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp - 0x75]
xor r8d, r8d
lea rdx, str.CurrentItemProgressCount
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019a80
mov rcx, qword [0x1400516d8]
mov eax, dword [rbp - 0x75]
mov dword [rbp - 0x71], eax
test rcx, rcx
je 0x140019a80
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140019a80
mov r9d, dword [rbp - 0x71]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5d8
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0x2932e0
cmp r13d, eax
ja 0x140019ab1
mov eax, 0xfa
add r13d, eax
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 0x69]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x140019996
jmp 0x140019ae6
mov r9d, eax
mov dword [rbp + 0x6f], edi
mov r8, r15
lea rdx, str.ERROR:__Process__S_deadlocked.__Terminated_after__lums._r_n
mov ecx, edi
call fcn.140016868
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140019ada
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp - 0x69]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [rbp + 0x6f], ebx
jne 0x140019b06
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140019b06
mov ecx, dword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r12
call fcn.14003c2b8
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140019b21
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x69], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140019b67
lea rdx, str.CurrentItemTotalProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.CurrentItemProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.CurrentItemEstimatedTime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x6f], ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret