Function at 0x140001070
Capabilities:
Create process on windows
Query environment variable
Spoof parent pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x420], rax
cmp ecx, 2
jl 0x140001292
mov rcx, qword [rdx + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140001292
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
xor eax, eax
lea rdi, [rbp - 0x80]
mov qword [rbp - 0x1c], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x14], eax
mov ecx, 0x70
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x70], rax
xor esi, esi
movups xmmword [rbp - 0x6c], xmm0
mov r8d, 0x104
mov qword [rsp + 0x50], rsi
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
rep stosb byte [rdi], al
movups xmmword [rsp + 0x60], xmm0
lea rdi, [rsp + 0x60]
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
je 0x140001292
lea r9, str.notepad.exe
lea r8, [rbp - 0x10]
lea rdx, str._sSystem32_s
lea rcx, [rbp + 0x210]
call fcn.140001010
lea r8, [rbp - 0x10]
lea rdx, str._sSystem32_
lea rcx, [rbp + 0x100]
call fcn.140001010
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [rsi + 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, [rsi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140001292
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [rsi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140001292
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140001292
lea rax, [rsp + 0x60]
mov qword [rbp - 0x18], rbx
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x210]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rbp + 0x100]
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001292
mov edi, dword [rsp + 0x70]
mov rcx, rbx
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001292
test r14, r14
je 0x140001292
test rsi, rsi
je 0x140001292
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001297
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400012d0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret