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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2618]
mov eax, 0x26f0
call sub.ntdll.dll___chkstk
sub rsp, rax
lea rdx, [rbp - 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [rbp - 0x20]
xor r12d, r12d
mov ecx, r12d
mov edx, r12d
lea rsi, [rbp - 0x20]
jmp 0x18000ac78
cmp ax, 0x5c
jne 0x18000ac6e
lea rsi, [rbp - 0x1e]
movsxd rax, ecx
lea rsi, [rsi + rax*2]
movzx eax, word [rbp + rdx*2 - 0x1e]
inc ecx
inc rdx
test ax, ax
jne 0x18000ac5d
mov word [rsi - 2], r12w
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, 0x400
lea r8, str._d.cmd
lea rcx, [rbp + 0x5f0]
mov edx, r13d
mov r9d, eax
call fcn.18000cb8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, r12d
mov r15d, eax
cmp word [rsi], r12w
je 0x18000acc8
mov rcx, rsi
lea rcx, [rcx + 2]
inc edi
cmp word [rcx], r12w
jne 0x18000acbc
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rdi + 1]
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [0x180013580]
movsxd rbx, eax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov ebx, 0xfde9
lea r9d, [rdi + 1]
mov r8, rsi
xor edx, edx
mov ecx, ebx
mov r14, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, r12d
cmp word [rbp + 0x5f0], r12w
je 0x18000ad51
lea rcx, [rbp + 0x5f0]
lea rcx, [rcx + 2]
inc edi
cmp word [rcx], r12w
jne 0x18000ad45
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rdi + 1]
lea r8, [rbp + 0x5f0]
xor edx, edx
mov ecx, ebx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [0x180013580]
movsxd rbx, eax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rdi + 1]
lea r8, [rbp + 0x5f0]
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r14
lea r8, str.attrib__r__s__h___s__r_n:_d_r_ndel___s__r_nif_exist___s__goto__d_r_ndel__s_r_n
lea rcx, [rbp + 0x1f0]
mov r9, r14
mov edx, r13d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
call fcn.18000ca68
mov rcx, qword [0x180013580]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180013580]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, r12d
cmp byte [rbp + 0x1f0], r12b
je 0x18000ae30
lea rax, [rbp + 0x1f0]
inc rax
inc ebx
cmp byte [rax], r12b
jne 0x18000ae26
lea rax, [rbp + 0x5f0]
lea r9, [rbp - 0x20]
lea r8, str._s_s
lea rcx, [rbp + 0x15f0]
mov edx, r13d
mov qword [rsp + 0x20], rax
call fcn.18000cb8c
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x15f0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000af8b
lea r9, [rbp + 0x2620]
lea rdx, [rbp + 0x1f0]
mov r8d, ebx
mov rcx, rax
mov dword [rbp + 0x2620], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call sub.ntdll.dll_memset
xor eax, eax
lea rcx, [rbp + 0xdf0]
mov edx, r13d
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.cmd.exe
lea rcx, [rbp + 0xdf0]
call fcn.18000cad0
lea r9, [rbp + 0x5f0]
lea r8, str._C__s
lea rcx, [rbp + 0x1df0]
mov edx, r13d
call fcn.18000cb8c
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x1df0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rcx, [rbp + 0xdf0]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0xc000000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000af8b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x26f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret