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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
xor ebp, ebp
mov esi, edx
mov dword [rsp + 0x50], ebp
call fcn.180004e30
mov qword [rsp + 0x58], rbp
test eax, eax
jne 0x1800052b6
lea rcx, [0x180080488]
call fcn.1800348d0
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x1800052d6
jmp 0x180005557
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180005557
xor edx, edx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x528], rbx
lea r8d, [rdx + 0x70]
mov qword [rsp + 0x530], r12
call fcn.180055310
xor eax, eax
mov r12d, 1
lea r9, [rsp + 0x60]
xor r8d, r8d
xor ecx, ecx
mov edx, r12d
mov dword [rsp + 0x80], WSAStartup
mov dword [rsp + 0xbc], r12d
mov word [rsp + 0xc0], bp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rax
mov edx, r12d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x58]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rcx, [rsp + 0xf0]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0xe8], rbx
call fcn.180055310
test esi, esi
je 0x1800053c5
mov word [rsp + 0xc0], r12w
jmp 0x1800053d2
mov eax, 3
mov word [rsp + 0xc0], ax
lea rcx, [rsp + 0xf0]
xor r8d, r8d
mov rdx, rdi
call fcn.1800048f0
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0xf0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12, qword [rsp + 0x530]
mov esi, eax
test eax, eax
jne 0x18000543d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1800a3618], ebp
je 0x1800054e3
mov rcx, rdi
call fcn.180004800
test eax, eax
je 0x1800054af
lea rcx, [0x1800a4ee0]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x1800054e3
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000fe10
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800054e3
lea rcx, [0x1800a4ff0]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x1800054e3
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000ffe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [reloc.WS2_32.dll_accept], ebp
je 0x18000554d
mov rcx, rdi
call fcn.180004800
test eax, eax
je 0x180005519
lea rcx, [0x1800a5210]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x18000554d
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000fe10
jmp 0x180005539
lea rcx, [0x1800a5320]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x18000554d
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000ffe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x528]
mov eax, esi
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180050540
add rsp, 0x500
pop rdi
pop rsi
pop rbp
ret