Function at 0x180005580
Capabilities:
Create process on windows
Resume thread
Spoof parent pid
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rdi, rcx
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x50], r8d
mov rsi, rdx
mov dword [rsp + 0x60], ebp
call fcn.180004e30
mov qword [rsp + 0x58], rbp
mov ebx, eax
test eax, eax
jne 0x1800055f2
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 0x180005612
jmp 0x180005962
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180005962
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x70]
call fcn.180055310
xor eax, eax
mov ecx, 1
mov dword [rsp + 0xcc], ecx
mov edx, ecx
lea r9, [rsp + 0x80]
xor ecx, ecx
xor r8d, r8d
mov dword [rsp + 0x90], WSAStartup
mov word [rsp + 0xd0], bp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r8d, r8d
lea r9, [rsp + 0x80]
lea edx, [r8 + 1]
mov rcx, rax
mov rbp, rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
xor r11d, r11d
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x58]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbp
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0xf8], rbp
call fcn.180055310
cmp dword [rsp + 0x50], 0
mov r9d, 1
je 0x18000570c
mov word [rsp + 0xd0], r9w
jmp 0x180005719
mov eax, 3
mov word [rsp + 0xd0], ax
lea rcx, [rsp + 0x100]
xor r8d, r8d
mov rdx, rdi
call fcn.1800048f0
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
cmp dword [reloc.WS2_32.dll_accept], eax
je 0x180005835
mov dword [rsp + 0x28], 0x80004
mov dword [rsp + 0x20], r9d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18000584d
mov rcx, rdi
call fcn.180004800
test eax, eax
je 0x1800057b4
lea rcx, [0x1800a3620]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x180005805
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000fe10
jmp 0x1800057d4
lea rcx, [0x1800a3730]
call fcn.180033550
mov rbx, rax
test rax, rax
je 0x180005805
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000ffe0
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180005805
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbp, qword [rsp + 0x60]
mov ebx, 1
jmp 0x180005857
mov rcx, qword [rsp + 0x68]
xor eax, eax
xor edx, edx
mov dword [reloc.WS2_32.dll_accept], eax
mov dword [reloc.WS2_32.dll_accept], eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rdi
call fcn.180005580
jmp 0x180005962
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], r9d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test ebx, ebx
jne 0x180005857
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1800a3618], 0
je 0x1800058f5
test rsi, rsi
je 0x180005893
mov eax, dword [rsp + 0x78]
mov dword [rsi], eax
mov rcx, rdi
call fcn.180004800
test eax, eax
je 0x1800058c1
lea rcx, [0x1800a4ee0]
call fcn.180033550
mov rsi, rax
test rax, rax
je 0x1800058f5
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000fe10
jmp 0x1800058e1
lea rcx, [0x1800a4ff0]
call fcn.180033550
mov rsi, rax
test rax, rax
je 0x1800058f5
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000ffe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x180005960
mov rcx, rdi
call fcn.180004800
test eax, eax
je 0x18000592c
lea rcx, [0x1800a5210]
call fcn.180033550
mov rdi, rax
test rax, rax
je 0x180005960
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000fe10
jmp 0x18000594c
lea rcx, [0x1800a5320]
call fcn.180033550
mov rdi, rax
test rax, rax
je 0x180005960
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.18000ffe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x548]
add rsp, 0x510
pop rdi
pop rsi
pop rbp
ret