Function at 0x140001940
Capabilities:
Query environment variable
Spoof parent pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r14, qword [rbp + 0x380]
lea rdi, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rcx
xor eax, eax
lea rdx, [rbp - 0x10]
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x18], rax
mov rbx, r8
movups xmmword [rbp - 0x68], xmm0
mov qword [rsp + 0x68], rax
mov ecx, 0x70
movups xmmword [rbp - 0x58], xmm0
mov r8d, 0x104
mov rsi, r9
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
rep stosb byte [rdi], al
movups xmmword [rsp + 0x58], xmm0
lea rdi, [rsp + 0x58]
mov dword [rbp - 0x80], 0x70
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.WINDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400019f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetEnvironmentVariableA_failed_with_error:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001bb2
lea r9, str.RuntimeBroker.exe__Embedding
mov qword [rsp + 0x468], r15
lea r8, [rbp - 0x10]
lea rdx, str._sSystem32_s
lea rcx, [rbp + 0x210]
call fcn.140001070
lea r8, [rbp - 0x10]
lea rdx, str._sSystem32_
lea rcx, [rbp + 0x100]
call fcn.140001070
xor r15d, r15d
lea rcx, str.KERNEL32.DLL
mov qword [rsp + 0x50], r15
call fcn.140001240
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
lea edx, [r15 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140001a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.HeapAlloc_failed_with_error:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001baa
xor r8d, r8d
lea r9, [rsp + 0x50]
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140001acc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeProcThreadAttributeList_failed_with_error:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001baa
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], r15
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140001b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.UpdateProcThreadAttribute_failed_with_error:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001baa
lea rcx, str.KERNEL32.DLL
mov qword [rbp - 0x18], rdi
call fcn.140001240
mov rcx, rax
mov edx, 0x898b253d
call fcn.1400010d0
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x100]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], r15d
call rax
test eax, eax
jne 0x140001b8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcessA_failed_with_error:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001baa
mov ecx, dword [rsp + 0x68]
mov eax, 1
mov dword [rbx], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x60]
mov qword [r14], rcx
mov r15, qword [rsp + 0x468]
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140002180
add rsp, 0x430
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret