Function at 0x14021faf0
Capabilities:
Create process on windows
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov r15, qword [rbp + 0xc0]
test r15, r15
jne 0x14021fb60
lea rax, str.invalid_substitutor
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x62]
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
lea ecx, [r15 + 1]
call fcn.1401fc9c0
xor al, al
jmp 0x14021ff60
cmp byte [rbp + 0xd8], 0
je 0x14021fbc0
cmp qword [rdx + 0x18], 8
jb 0x14021fb75
mov rcx, qword [rdx]
jmp 0x14021fb78
mov rcx, rdi
call fcn.14021ee40
test al, al
jne 0x14021fbc0
cmp qword [rdi + 0x18], 8
jb 0x14021fb8b
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rdi
lea rax, str.Signature_check_failed_for_command__s
mov qword [rsp + 0x20], rax
mov r9d, 0x67
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
lea ecx, [r9 - 0x66]
call fcn.1401fc9c0
xor al, al
jmp 0x14021ff60
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x20]
call fcn.14028e7e0
mov dword [rbp - 0x20], 0x68
xor r12d, r12d
cmp byte [rbp + 0xc8], r12b
je 0x14021fbfc
mov dword [rbp + 0x1c], 1
mov word [rbp + 0x20], r12w
mov r8, rdi
lea rdx, [0x14032c3c8]
lea rcx, [rsp + 0x70]
call fcn.140044a90
nop
lea r8, [0x1402e58d8]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140044b70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140032520
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14021fc53
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14002e610
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14021fc83
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14002e610
mov rcx, qword [rbp - 0x30]
inc rcx
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
lea rdx, [0x1403eed54]
mov rcx, rax
call fcn.14026e5e4
mov rbx, rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x14021fce3
lea rax, str.Failed_to_allocate_memory_for_cmdLine.
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0x78]
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
lea ecx, [rsi + 2]
call fcn.1401fc9c0
jmp 0x14021fdf8
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
inc rdx
mov rcx, rbx
call fcn.1400eafd0
cmp qword [r14 + 0x18], 8
jb 0x14021fd0a
mov r14, qword [r14]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14021fd7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
lea rax, str.Unable_to_run__s__error___d_
mov qword [rsp + 0x20], rax
mov r9d, 0x7e
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
lea ecx, [r9 - 0x7d]
call fcn.1401fc9c0
jmp 0x14021fdf8
or edx, 0xffffffff
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14021fdae
cmp qword [rdi + 0x18], 8
jb 0x14021fd9a
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rdi
lea rax, str.Wait_for_process_failed_for_command__s
mov r9d, 0x84
jmp 0x14021fddb
mov dword [rbp - 0x60], r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14021fe00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_get_process_exit_code___d_
mov r9d, 0x8b
mov qword [rsp + 0x20], rax
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
mov ecx, 1
call fcn.1401fc9c0
xor dil, dil
jmp 0x14021ff05
cmp byte [rbp + 0xd0], 0
je 0x14021fe54
cmp qword [rdi + 0x18], 8
jb 0x14021fe13
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14021fe54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_delete_executable___d_
mov qword [rsp + 0x20], rax
mov r9d, DllRegisterServer
lea r8, str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
lea rdx, str.ExecuteLocalCommand.cpp
mov ecx, 1
call fcn.1401fc9c0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
mov rdx, qword [0x1403dde00]
cmp word [rdx], 0
jne 0x14021fe80
mov rsi, r12
jmp 0x14021fe8a
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x14021fe80
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.14002c3d0
nop
mov edx, dword [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.140029430
nop
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1401fe240
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14021fed3
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14002e610
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14021ff02
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14002e610
mov dil, 1
test rbx, rbx
je 0x14021ff13
mov rcx, rbx
call fcn.14026e340
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14021ff2d
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14021ff4d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14021ff5c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x160
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret