Function at 0x140002dbc
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ebx, ebx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov qword [rsp + 0x30], rbx
xor r9d, r9d
lea edi, [rbx + 2]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002e65
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallResult
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003003
cmp dword [rsp + 0x50], 0xd2af9
je 0x140002ece
cmp dword [rsp + 0x50], 0xc00d2afb
je 0x140002ece
mov rcx, qword [rsp + 0x58]
lea rdx, str.SystemUptime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140002fcb
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x60], rbx
call fcn.140002cc4
test eax, eax
jne 0x140002f0e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 8
lea rdx, str.SystemUptime
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002fcb
mov edi, 0x104
lea rcx, [rsp + 0x70]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140002fc0
lea r8, str.unregmp2.exe
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140001584
test eax, eax
js 0x140002fc0
lea r8, str.__FixUps
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140001584
test eax, eax
js 0x140002fc0
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140002f87
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.WMC_RebootCheck
lea rax, [rsp + 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, str.InstallResult
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret