Function at 0x14000544c
Capabilities:
Accept command line arguments
Check os version
Compare security identifiers
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2888]
mov eax, 0x2960
call fcn.140009b20
sub rsp, rax
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rbp + 0x2850], rax
mov rdi, rcx
mov dword [rbp + 0xa20], 0x11c
lea rax, [rbp + 0x88]
mov r15d, 1
lea rcx, [rbp + 0xa20]
mov dword [rbp + 0x80], r15d
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r13d, r13d
test eax, eax
je 0x1400054d0
mov byte [0x1400100da], r15b
mov byte [0x14000fdc4], r15b
mov rax, qword [0x14000e0c0]
mov r14d, 0x104
mov word [rax], r13w
mov rax, qword [0x14000e8d0]
mov word [rax], r13w
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], r14d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, 0x22
mov rbx, rax
lea r12d, [rcx - 2]
cmp word [rax], cx
jne 0x14000551e
add rbx, 2
jmp 0x140005522
movzx ecx, r12w
movzx eax, word [rbx]
test ax, ax
je 0x140005545
cmp ax, cx
je 0x14000553b
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x14000552a
cmp word [rbx], r13w
je 0x140005545
add rbx, 2
mov ecx, 0xfffffff5
mov qword [0x1400100f0], rdi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000fdd0], rax
cmp rax, 0xffffffffffffffff
je 0x140005572
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140005579
mov qword [0x14000fdd0], r13
mov edi, 0x800
mov dword [rbp - 0x28], r13d
mov r8d, edi
lea rcx, [rbp + 0xe40]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x1850]
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [0x14000fc14], r13d
mov esi, 9
cmp word [rbx], r12w
je 0x1400055bb
cmp word [rbx], si
jne 0x1400055c1
add rbx, 2
jmp 0x1400055b0
movzx eax, word [rbx]
mov ecx, 0xfffd
sub ax, 0x2d
test cx, ax
jne 0x14000582b
lea rax, [rbx + 2]
test rax, rax
je 0x14000582b
movzx eax, word [rax]
or ax, r12w
cmp ax, 0x60
jne 0x14000582b
add rbx, 4
mov rax, rbx
mov qword [rsp + 0x68], rbx
cmp word [rbx], r12w
je 0x14000560b
cmp word [rbx], si
jne 0x140005611
lea rbx, [rax + 2]
jmp 0x1400055f8
lea rax, [rbp + 0xe40]
mov r8d, 0x400
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], rax
lea rcx, [rsp + 0x68]
call fcn.140005014
test al, al
jne 0x140005647
xor edx, edx
xor ecx, ecx
call fcn.140002cb0
mov ebx, 0x667
jmp 0x1400057a5
mov eax, dword [rbp + 0x98]
mov r9d, 0x20019
add eax, eax
mov dword [rbp - 0x60], r13d
cmp byte [0x1400100da], r13b
mov dword [rsp + 0x70], eax
jne 0x140005676
cmp byte [0x14000fdc4], r13b
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005823
mov rcx, qword [rbp - 0x18]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
mov rax, qword [rbp + 0x90]
lea rdx, [rbp + 0xe40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
jne 0x140005754
mov ebx, dword [rsp + 0x70]
shr ebx, 1
cmp ebx, r14d
jbe 0x1400056f5
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x1400056fc
lea rdi, [rbp + 0xa0]
test rdi, rdi
je 0x140005796
mov rcx, qword [rbp + 0x90]
lea rax, [rbp + 0xa0]
cmp rcx, rax
je 0x14000571e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x18]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0xe40]
mov qword [rbp + 0x90], rdi
mov dword [rbp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140005823
cmp dword [rbp - 0x60], r15d
jne 0x140005823
mov rdi, qword [rbp + 0x90]
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
cmp r14w, r12w
je 0x140005790
cmp r14w, si
jne 0x140005e24
add rdi, 2
jmp 0x140005777
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0xe
mov ebx, r13d
jmp 0x1400057a5
mov r12d, 0x7fffffff
mov rcx, rbx
mov eax, r12d
cmp word [rcx], r13w
je 0x140005846
add rcx, 2
sub rax, r15
jne 0x140005837
test rax, rax
je 0x140005853
mov rcx, r12
sub rcx, rax
jmp 0x140005856
mov rcx, r13
test rax, rax
jne 0x140005865
mov ebx, 0x65b
jmp 0x1400057a5
lea esi, [rcx + 1]
cmp esi, r14d
jle 0x140005883
movsxd rdx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x14000588a
lea rdi, [rbp + 0xa0]
test rdi, rdi
je 0x1400057a0
mov rcx, qword [rbp + 0x90]
lea rax, [rbp + 0xa0]
cmp rcx, rax
je 0x1400058ac
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, str.update
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0xb60], rax
lea rcx, str.package
lea rax, str.uninstall
mov dword [rbp + 0x98], esi
mov qword [rbp + 0xb78], rax
lea rax, [0x14000ad70]
mov qword [rbp + 0xb98], rax
lea rax, str.help
mov qword [rbp + 0xba8], rax
lea rax, [0x14000ad84]
mov qword [rbp + 0xbb0], rax
lea rax, str.quiet
mov qword [rbp + 0xbc0], rax
lea rax, [0x14000ada0]
mov word [rdi], r13w
movsd xmm0, qword [str.PATCH]
movups xmm1, xmmword [0x14000aef0]
mov qword [rbp + 0xbc8], rax
lea rax, str.passive
mov qword [rbp + 0xbd8], rax
lea rax, str._qb___REBOOTPROMPTS
mov qword [rbp + 0xbe0], rax
lea rax, str.norestart
mov qword [rbp + 0xbf0], rax
lea rax, str.REBOOTReallySuppress
mov qword [rbp + 0xbf8], rax
lea rax, str.forcerestart
mov qword [rbp + 0xc08], rax
lea rax, str.REBOOTForce
mov qword [rbp + 0xc10], rax
lea rax, str.promptrestart
mov qword [rbp + 0xc20], rax
lea rax, str.REBOOTPROMPT__
mov qword [rbp + 0xc28], rax
lea rax, [0x14000aeb0]
mov qword [rbp + 0xc38], rax
lea rax, [0x14000aeb8]
mov qword [rbp + 0xc40], rax
mov eax, dword [0x14000aec0]
mov dword [rbp + 0xc58], eax
movzx eax, word [0x14000aec4]
mov word [rbp + 0xc5c], ax
mov eax, dword [0x14000aec8]
mov dword [rbp + 0xc50], eax
movzx eax, word [0x14000aecc]
mov word [rbp + 0xc54], ax
mov eax, dword [0x14000aed8]
mov dword [rbp + 0xc78], eax
movzx eax, word [0x14000aedc]
movsd qword [rbp + 0xc70], xmm0
movups xmm0, xmmword [str.MSIPATCHREMOVE]
mov word [rbp + 0xc7c], ax
mov rax, r12
mov qword [rbp + 0xb68], r13
mov byte [rbp + 0xb70], r13b
mov qword [rbp + 0xb80], r13
mov byte [rbp + 0xb88], r13b
mov qword [rbp + 0xb90], rcx
mov byte [rbp + 0xba0], r15b
mov byte [rbp + 0xbb8], r15b
mov byte [rbp + 0xbd0], r15b
mov byte [rbp + 0xbe8], r15b
mov byte [rbp + 0xc00], r15b
mov byte [rbp + 0xc18], r15b
mov byte [rbp + 0xc30], r15b
mov byte [rbp + 0xc48], r15b
movups xmmword [rbp + 0xc80], xmm0
movups xmmword [rbp + 0xc90], xmm1
cmp word [rcx], r13w
je 0x140005a99
add rcx, 2
sub rax, r15
jne 0x140005a8a
test rax, rax
je 0x140005aa6
mov r14, r12
sub r14, rax
jmp 0x140005aa9
mov r14, r13
test rax, rax
je 0x14000585b
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x70], r13
call fcn.140002a7c
mov rdi, rax
test rax, rax
je 0x140005b98
mov rsi, qword [rbp - 0x70]
movzx eax, word [rdi]
test ax, ax
je 0x140005b98
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005b69
lea r15, [rsi - 1]
mov ecx, 1
cmp r15, rcx
jne 0x140005b2e
or dword [rsp + 0x28], 0xffffffff
lea rax, [0x14000af00]
mov edx, ecx
mov qword [rsp + 0x20], rax
mov ecx, 0x409
lea r9d, [rsi - 1]
lea r8, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005caa
cmp r14, r15
mov r15d, 1
jne 0x140005b69
lea rax, str.package
mov dword [rsp + 0x28], r14d
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 2]
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005cb0
mov rsi, r13
mov qword [rbp - 0x70], r13
cmp qword [rbp - 0x50], r13
je 0x140005b8c
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140002a7c
mov rsi, qword [rbp - 0x70]
mov rdi, rax
jmp 0x140005b8f
mov rdi, r13
test rdi, rdi
jne 0x140005ad7
lea rax, [rbp + 0xc50]
mov byte [rbp + 0xb70], r15b
mov qword [rbp + 0xb68], rax
lea rax, [rbp + 0xc58]
mov byte [rbp + 0xb88], r15b
lea rdx, [rbp - 0x70]
mov qword [rbp + 0xb80], rax
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x70], r13
call fcn.140002a7c
mov rbx, rax
test rax, rax
je 0x140005d6f
mov rdi, qword [rbp - 0x70]
movzx eax, word [rbx]
test ax, ax
je 0x140005d6f
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005c57
mov r14d, r13d
lea r15, [rbp + 0xb60]
mov rsi, r13
mov rax, qword [r15]
lea r9d, [rdi - 1]
or dword [rsp + 0x28], 0xffffffff
lea r8, [rbx + 2]
mov edx, 1
mov qword [rsp + 0x20], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005cd8
mov eax, 1
add r15, 0x18
add r14d, eax
add rsi, rax
cmp r14d, 0xa
jb 0x140005c0e
xor r13d, r13d
mov r15d, eax
mov r9b, r15b
mov dword [rbp + 0x9c], 0x104
mov r8, rdi
lea rcx, [rbp + 0x90]
mov rdx, rbx
call fcn.140002b80
mov ebx, eax
test eax, eax
jne 0x1400057a5
mov rdi, r13
mov qword [rbp - 0x70], r13
cmp qword [rbp - 0x50], r13
je 0x140005d63
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140002a7c
mov rdi, qword [rbp - 0x70]
mov rbx, rax
jmp 0x140005d66
mov r15d, 1
lea rax, [rbp + 0xc70]
mov byte [rbp + 0xb70], r13b
mov qword [rbp + 0xb68], rax
lea rax, [rbp + 0xc80]
mov byte [rbp + 0xb88], r13b
jmp 0x140005bbb
lea rax, [rsi + rsi*2]
mov dword [rbp + 0x9c], 0x104
mov r10, qword [rbp + rax*8 + 0xb68]
xor r13d, r13d
mov r9b, byte [rbp + rax*8 + 0xb70]
mov r8d, r13d
test r10, r10
je 0x140005d3c
mov r8, r12
lea ecx, [r13 + 1]
mov rdx, r12
mov rax, r10
cmp word [rax], r13w
je 0x140005d1d
add rax, 2
sub rdx, rcx
jne 0x140005d0e
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test rdx, rdx
je 0x140005d37
sub r8, rdx
jmp 0x140005d41
mov r8, r13
jmp 0x140005d41
mov ecx, 0x80070057
test ecx, ecx
js 0x14000585b
mov rdx, r10
lea rcx, [rbp + 0x90]
call fcn.140002b80
mov r15d, 1
jmp 0x140005c76
mov rbx, r13
test rbx, rbx
jne 0x140005be7
mov rdi, qword [rbp + 0x90]
mov rcx, r13
test rdi, rdi
je 0x140005dad
mov r8, r12
cmp word [rdi], r13w
je 0x140005d90
add rdi, 2
sub r8, r15
jne 0x140005d81
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test r8, r8
je 0x140005db2
mov rcx, r12
sub rcx, r8
jmp 0x140005db2
mov edx, 0x80070057
test edx, edx
js 0x14000585b
mov r12d, 0x20
test rcx, rcx
je 0x140005df7
mov rax, qword [rbp + 0x90]
lea rdx, [rax - 2]
lea rdx, [rdx + rcx*2]
cmp word [rdx], r12w
je 0x140005de4
mov eax, 9
cmp word [rdx], ax
jne 0x140005df7
cmp rdx, qword [rbp + 0x90]
jb 0x140005df7
mov word [rdx], r13w
sub rdx, 2
jmp 0x140005dd4
mov rdi, qword [rbp + 0x90]
jmp 0x140005e15
cmp r14w, r12w
je 0x140005e11
mov eax, 9
cmp r14w, ax
jne 0x140005e24
add rdi, 2
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
test r14w, r14w
jne 0x140005e00
mov r15, qword [0x14000fb50]
mov esi, r13d
mov dword [rbp - 0x7c], r13d
mov ebx, 0x667
lea rcx, str.RUVEH_IJDqXFAtPYZlgmnc
mov r8d, 0x52
test r14w, r14w
je 0x1400064c9