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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rdx, [rsp + 0x50]
xor ebp, ebp
mov ecx, 0x104
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
lea rdx, str._unins_mxz.bat
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140001980
lea rdx, [rsp + 0x160]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rdx, rbp
nop dword [rax + rax]
movzx eax, byte [rsp + rdx + 0x160]
inc rdx
mov byte [rsp + rdx + 0x37f], al
test al, al
jne 0x1400019b0
mov rcx, rbp
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x160]
inc rcx
mov byte [rsp + rcx + 0x26f], al
test al, al
jne 0x1400019d0
lea rcx, [rsp + 0x270]
mov edx, 0x5c
call qword [sym.imp.MSVCR90.dll_strrchr]
test rax, rax
je 0x140001a01
mov byte [rax], bpl
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasb al, byte [rdi]
mov rax, qword [str._sc_mxz.exe]
lea rcx, [rsp + 0x380]
mov qword [rdi - 1], rax
mov eax, dword [0x1400034b0]
mov edx, 0x5c
mov dword [rdi + 7], eax
call qword [sym.imp.MSVCR90.dll_strrchr]
test rax, rax
je 0x140001a40
mov byte [rax], bpl
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001b90
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
lea rdi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_n:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_ndel___s_
mov qword [rsp + 0x4b0], rsi
not rcx
lea edx, [rcx + rcx*2 - 3]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x50]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx + 0x31]
movsxd rdi, eax
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, 1
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.MSVCR90.dll_memset
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x270]
lea r8, [rsp + 0x160]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
lea rdx, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_n:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_ndel___s_
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll_sprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x40]
mov rdx, rsi
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rbp
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
lea rdx, [0x1400034b8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
test rsi, rsi
je 0x140001b88
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rsi, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400026d0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret