Function at 0x180001010
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x860]
sub rsp, 0x960
mov rax, qword [0x180019008]
xor rax, rsp
mov qword [rbp + 0x850], rax
xor esi, esi
lea r9, [rbp - 0x70]
mov qword [rbp - 0x70], rsi
lea edx, [rsi + 4]
lea rcx, [rsi - 2]
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x180001069
lea r9, [rbp - 0x70]
xor r8d, r8d
lea edx, [rsi + 4]
lea rcx, [rsi - 2]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
lea rdx, [rbp + 0x50]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180001128
lea r8, [0x1800168c0]
mov edx, 0x200
lea rcx, [rbp + 0x50]
call fcn.180005268
test eax, eax
jne 0x180001128
lea r8, [0x180019b5e]
mov edx, 0x200
lea rcx, [rbp + 0x50]
call fcn.180005268
test eax, eax
jne 0x180001128
mov qword [rsp + 0x30], rsi
lea edx, [rax + 2]
mov dword [rsp + 0x28], 0x4000100
lea r8d, [rax + 7]
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x50]
mov word [rbp + 0x44e], si
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180001128
mov eax, dword gs:[0x68]
cmp eax, 0x50
jne 0x180001128
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x18000111e
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, 0x6009f4a1
jmp 0x1800013ad
mov qword [rsp + 0x970], rbx
lea rdx, [rbp + 0x450]
mov r8d, 0x200
mov qword [rsp + 0x978], rdi
lea rcx, [0x180000000]
mov word [rbp + 0x450], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp + 0x450]
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180001193
mov ebx, 0xe009f489
jmp 0x1800011c1
mov r9d, 1
mov byte [rbp - 0x40], 1
lea r8, [rbp - 0x40]
mov dword [rsp + 0x20], 0xd
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1800199f8]
mov rdi, rsi
mov qword [rbp - 0x68], rsi
test eax, eax
je 0x180001299
cmp dword [0x180019ac8], esi
je 0x180001299
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
xorps xmm1, xmm1
mov qword [rsp + 0x58], rsi
lea r9, [rsp + 0x50]
mov dword [rsp + 0x60], 0x30
lea r8, [rsp + 0x60]
mov dword [rsp + 0x78], esi
mov edx, 0x40
lea rcx, [rbp - 0x68]
movdqu xmmword [rsp + 0x68], xmm0
movdqu xmmword [rbp - 0x80], xmm1
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov ebx, eax
test eax, eax
js 0x180001338
movsxd rdx, dword [0x180019ac8]
lea r9, [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntdll.dll_ZwDuplicateObject]
mov rcx, qword [rbp - 0x68]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
test ebx, ebx
js 0x18000128f
mov rcx, qword [rbp - 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov eax, 0xe009f48d
test rdi, rdi
cmove ebx, eax
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntdll.dll_ZwClose]
test ebx, ebx
js 0x180001338
test rdi, rdi
jne 0x1800012a8
int 0x2c
mov dword [rdi], 0xe009f4a7
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rdx, [rdi + 0x1024]
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x68
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rcx, [rdi + 4]
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
movups xmmword [rbp - 0x28], xmm0
mov dword [rsp + 0x28], 4
movups xmmword [rbp - 0x18], xmm0
mov dword [rsp + 0x20], esi
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
mov dword gs:[0x1250], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180001357
mov ebx, dword gs:[0x1250]
mov eax, 0xe009f49c
test ebx, ebx
mov rcx, rdi
cmovns ebx, eax
mov dword [rdi], ebx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x180001353
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, ebx
jmp 0x18000139d
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov dword [rdi], ebx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x18000139b
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ntdll.dll_ZwClose]
xor eax, eax
mov rbx, qword [rsp + 0x970]
mov rdi, qword [rsp + 0x978]
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.180001400
mov rsi, qword [rsp + 0x980]
add rsp, 0x960
pop rbp
ret