Function at 0x14021d440
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, rdx
mov r15, rcx
xor edi, edi
mov dword [rbp + 0xa8], edi
mov r12d, edi
mov rax, qword [rdx]
test rax, rax
jne 0x14021d488
lea r12d, [rdi + 0xd]
jmp 0x14021db59
add rax, 8
mov qword [rbp - 0x28], rax
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
mov qword [rbp + 0xb8], rbx
cmp rbx, rsi
je 0x14021db59
test r12d, r12d
jne 0x14021db59
mov rdx, qword [rbx]
test rdx, rdx
je 0x14021db3a
add rdx, 8
lea rcx, [r15 - 0x18]
call fcn.1402175e0
test al, al
jne 0x14021db3a
mov ecx, 0x100
call fcn.1400be454
test rax, rax
je 0x14021d4ed
mov rcx, rax
call fcn.1400746cc
mov r12, rax
jmp 0x14021d4f0
mov r12, rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rdi
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.14007505c
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rax], rdx
mov rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x14021d551
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14021d54a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14021d54a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rbp + 0xb8]
mov r8, r12
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1400020a0
nop
mov rdx, qword [rbx]
add rdx, 8
mov rcx, qword [rsp + 0x50]
add rcx, 8
call fcn.14000c244
mov r11, qword [rbx]
mov ecx, dword [r11]
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rbx]
mov qword [rbp - 0x40], rdx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14021d5b6
mov edx, 1
lock add dword [rax + 8], edx
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov qword [rcx + 0xe0], rdx
mov rdi, qword [rcx + 0xe8]
mov qword [rcx + 0xe8], rax
test rdi, rdi
je 0x14021d602
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14021d5fb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14021d5fb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rbp + 0xb8]
mov rax, qword [r14]
mov rcx, qword [rax + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0xf0], rcx
mov rax, qword [rbx]
mov edi, dword [rax + 0x60]
or edi, 0xf003f
mov edx, dword [rax + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140219ae0
nop
lea r8, [0x140352420]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14001c3e0
nop
mov r8, qword [rbx]
add r8, 0x58
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140004278
mov r8, qword [rax]
mov rax, qword [rbx]
mov ecx, dword [rax + 0x50]
call fcn.140217510
mov rdx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x28
mov r9d, edi
call fcn.1400114d4
mov r12d, eax
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
xor edi, edi
test ecx, ecx
jg 0x14021d69f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14021d6be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14021d6dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r12d, r12d
jne 0x14021db0b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0xb0], rbx
mov rdi, qword [rbp + 0xb8]
mov rax, qword [rdi]
test byte [rax + 0x50], 8
je 0x14021d7de
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
lea r8d, [r12 + 0xf]
lea rdx, str.UninstallString
call fcn.14000c9f8
mov rcx, qword [rsp + 0x50]
add rcx, 0x20
lea r9, [0x140330de8]
lea r8, str.UninstallString
lea rdx, [rbp - 0x58]
call fcn.140224ba8
nop
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14021d781
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x70]
cmp dword [rcx - 0x10], 0
je 0x14021d922
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x68]
call fcn.14022a660
nop
mov r9, qword [rbx]
mov r9, qword [r9 + 0x70]
mov rbx, qword [rbp - 0x68]
mov r8, rbx
lea rdx, str.__s___s
lea rcx, [rbp + 0xb0]
call fcn.14000d9c8
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
jmp 0x14021d915
test byte [rax + 0x50], 2
je 0x14021d929
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov r8d, VariantTimeToDosDateTime
lea rdx, [0x14035b4c0]
call fcn.14000c9f8
mov rdx, qword [rdi]
mov rax, qword [rdx + 0x70]
cmp dword [rax - 0x10], 0
je 0x14021d832
add rdx, 0x70
lea r8, [0x14034da64]
lea rcx, [rbp - 0x70]
call fcn.14001c3e0
nop
mov ecx, 1
or dword [rbp + 0xa8], ecx
jmp 0x14021d84b
lea rdx, [0x140330de8]
lea rcx, [rsp + 0x78]
call fcn.14000cb18
nop
or dword [rbp + 0xa8], 2
mov rbx, qword [rax]
mov rdx, qword [rdi]
add rdx, 0x58
lea rcx, [rbp - 0x48]
call fcn.1402197e0
nop
mov rcx, qword [r14]
lea rdx, str._quiet
lea r8, [0x140330de8]
xor edi, edi
cmp byte [rcx], dil
cmovne r8, rdx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, str.msiexec.exe__s_s_X_s
lea rcx, [rbp + 0xb0]
call fcn.14000d9c8
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14021d8ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, dword [rbp + 0xa8]
test al, 2
je 0x14021d8f2
and eax, 0xfffffffd
mov dword [rbp + 0xa8], eax
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14021d8ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0xa8]
mov ecx, 1
test cl, al
je 0x14021d922
and eax, 0xfffffffe
mov dword [rbp + 0xa8], eax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14021d922
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0xb0]
xor edi, edi
cmp dword [rbx - 0x10], edi
jne 0x14021d939
lea r12d, [rdi + 0xd]
jmp 0x14021daef
mov rdi, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x50]
xor edi, edi
test r9, r9
je 0x14021daef
lea eax, [rdi + 1]
mov dword [rsp + 0x20], eax
lea r8d, [rdi + 4]
mov edx, eax
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14021daef
lea edi, [rax + 0x68]
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.1400c7360
mov dword [rbp - 0x10], edi
lea eax, [rdi - 0x67]
mov word [rbp + 0x30], ax
mov rdi, qword [rsp + 0x50]
mov edx, dword [rbx - 0x10]
test edx, edx
js 0x14021db4e
mov ecx, eax
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14021d9d1
lea rcx, [rbp + 0xb0]
call fcn.14000c998
mov rbx, qword [rbp + 0xb0]
lea rax, [rdi + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov eax, 1
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne dil
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400beaac
xor ecx, ecx
test eax, eax
js 0x14021db43
cmp eax, dword [rbx - 0xc]
jg 0x14021db43
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], cx
test dil, dil
je 0x14021dae4
lea eax, [rcx + 1]
add dword [r15 - 0x10], eax
mov edx, dword [r15 - 0x10]
lea r9, [0x140035138]
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, eax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
xor edi, edi
test rax, rax
je 0x14021da96
lea ecx, [rdi + 1]
lock add dword [rax + 8], ecx
mov rbx, qword [rbp + 0xb0]
lea rcx, [r15 + 0xa8]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x20]
call fcn.140074e30
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14021daef
lock dec dword [rcx + 8]
jne 0x14021dadb
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rbx + 0xc]
jne 0x14021dadb
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rbp + 0xb0]
jmp 0x14021daef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
xor edi, edi
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021db0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14021db33
lock dec dword [rbx + 8]
jne 0x14021db33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rbx + 0xc]
jne 0x14021db33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rbx, qword [rbp + 0xb8]
add rbx, 0x10
jmp 0x14021d497
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov eax, r12d
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret