Function at 0x14002e738
Capabilities:
Spoof parent pid

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x320], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
lea rbp, [rax - 0x2d8]
and rbp, 0xffffffffffffffe0
mov r13, r8
mov rsi, rdx
mov r12, rcx
lea r8, [0x140097640]
lea rdx, [0x1400282d4]
lea rcx, [0x140097638]
call fcn.14005feac
test eax, eax
je 0x14002ed27
mov rbx, qword [0x140097640]
and qword [rbp + 8], 0
mov eax, dword [0x1400920c8]
mov dword gs:[0x68], eax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf01ff
lea rdi, [r9 - 2]
mov rcx, rdi
call fcn.14005fa20
nop
test rbx, rbx
je 0x14002ed2d
mov qword [rbp + 0x40], rbx
mov eax, dword [0x14009203c]
mov dword gs:[0x68], eax
lea r9d, [rdi + 0xa]
lea r8, [rbp + 0x40]
lea edx, [rdi + 7]
mov rcx, rdi
call fcn.14005fa20
xor ebx, ebx
test eax, eax
js 0x14002ed6c
mov rax, qword gs:[0x60]
mov edi, dword [0x7ffe026c]
shl edi, 4
or edi, dword [0x7ffe0270]
shl edi, 4
movzx eax, byte [rax + 0x123]
or edi, eax
mov eax, ebx
cmp edi, 0x630
setae al
mov r15, qword [rsp + 0x380]
lea r14d, [rax + 1]
test r15, r15
cmove r14d, eax
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x188], rbx
mov qword [rbp + 0x190], rbx
mov qword [rbp], rbx
lea r9, [rbp]
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x14002ecd7
cmp qword [rbp], rbx
je 0x14002ecd7
mov rax, qword gs:[0x60]
mov r8, qword [rbp]
lea edx, [rbx + 8]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov qword [rbp + 0x48], rax
test rax, rax
je 0x14002edb3
lea r9, [rbp]
xor r8d, r8d
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14002ee03
and qword [rbp + 0x48], 0
mov qword [rbp + 0x180], rbx
test r15, r15
je 0x14002e924
mov qword [rbp + 0x188], r15
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x188]
xor edx, edx
mov r8d, 0x20000
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14002ee5b
cmp edi, 0x630
jb 0x14002e98e
movabs rcx, 0x20000000000
mov rax, qword [rbp + 0x190]
mov qword [rbp + rax*8 + 0x198], rcx
mov rax, qword [rbp + 0x190]
lea r9, [rbp + 0x198]
lea r9, [r9 + rax*8]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 8
xor edx, edx
mov r8d, 0x20007
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14002eeb3
inc qword [rbp + 0x190]
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp + 0x224]
call fcn.140060530
test r14d, r14d
je 0x14002e9ca
mov rax, qword [rbp + 0x180]
test rax, rax
je 0x14002e9ca
mov dword [rbp + 0x220], 0x70
mov qword [rbp + 0x288], rax
mov r14d, 0x2080404
jmp 0x14002e9da
mov dword [rbp + 0x220], 0x68
mov r14d, 0x2000404
mov rdx, r12
lea rcx, [rbp + 0x1f0]
call fcn.14000d47c
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x140072810]
movdqu xmmword [rbp + 0x20], xmm1
mov word [rbp + 0x10], r15w
mov rbx, r15
test rsi, rsi
je 0x14002ea65
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], r15w
jne 0x14002ea10
cmp rdx, qword [rbp + 0x28]
ja 0x14002ea4b
lea rdi, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdi, qword [rbp + 0x10]
mov qword [rbp + 0x20], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400600c0
mov word [rdi + rbx], r15w
jmp 0x14002ea57
mov r9, rsi
lea rcx, [rbp + 0x10]
call fcn.14000dc78
lea rbx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rbx, qword [rbp + 0x10]
lea rdi, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 8
cmovae rdi, qword [rbp + 0x1f0]
mov r10, qword [0x140098750]
test r10, r10
jne 0x14002eb16
mov ecx, 0xdbbf0b07
call fcn.140003250
mov qword [rbp + 0x30], r15
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
mov esi, 0xa5baa768
mov edx, esi
mov rcx, rax
call fcn.1400046bc
test eax, eax
jns 0x14002eac4
mov qword [0x140098750], r15
jmp 0x14002ead4
mov r10, qword [rbp + 0x30]
mov qword [0x140098750], r10
test r10, r10
jne 0x14002eb16
mov ecx, 0xc53464d3
call fcn.140003250
mov qword [rbp + 0x38], r15
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x38]
mov edx, esi
mov rcx, rax
call fcn.1400046bc
test eax, eax
js 0x14002ec7f
mov r10, qword [rbp + 0x38]
mov qword [0x140098750], r10
test r10, r10
je 0x14002ec86
mov qword [rsp + 0x58], r15
mov rax, qword [rsp + 0x388]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call r10
test eax, eax
je 0x14002ec27
lea rcx, [rbp + 0x10]
call fcn.140002adc
nop
lea rcx, [rbp + 0x1f0]
call fcn.140002adc
nop
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14002eb8d
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
nop
cmp qword [rbp + 0x180], r15
je 0x14002ebb9
mov rax, qword gs:[0x60]
mov r8, qword [rbp + 0x180]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x180], r15
mov rax, qword [rbp + 8]
mov qword [rbp + 0x50], rax
mov eax, dword [0x14009203c]
mov dword gs:[0x68], eax
mov r9d, 8
lea r8, [rbp + 0x50]
lea edx, [r9 - 3]
mov rcx, 0xfffffffffffffffe
call fcn.14005fa20
cmp qword [rbp + 8], r15
je 0x14002ec06
mov eax, dword [0x1400921fc]
mov dword gs:[0x68], eax
mov rcx, qword [rbp + 8]
call fcn.14005fa20
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x138], rcx
xor ecx, ecx
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x148], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x138], rcx
mov dword [rbp + 0x150], 0xd0001b11
mov dword [rbp + 0x154], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x138]
call sub.msvcrt.dll__CxxThrowException
int3
mov qword [0x140098750], r15
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x118], rcx
xor eax, eax
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], rax
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x118], rcx
mov dword [rbp + 0x130], 0xd0001b0d
mov dword [rbp + 0x134], r15d
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x118]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x158], rcx
xor eax, eax
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], rax
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x158], rcx
mov dword [rbp + 0x170], 0xd0001b11
mov dword [rbp + 0x174], ebx
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x158]
call sub.msvcrt.dll__CxxThrowException
nop
call fcn.140039a44
nop
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x58], rcx
xor eax, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x58], rcx
mov dword [rbp + 0x70], 0xd0002001
mov dword [rbp + 0x74], 0x7b
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x78], rcx
xor ecx, ecx
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x78], rcx
mov dword [rbp + 0x90], 0xd0001612
mov dword [rbp + 0x94], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x78]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x98], rcx
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0x98], rcx
mov dword [rbp + 0xb0], 0xc000009a
and dword [rbp + 0xb4], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0x98]
call sub.msvcrt.dll__CxxThrowException
nop
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0xb8], rcx
xor ecx, ecx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0xb8], rcx
mov dword [rbp + 0xd0], 0xd0001b11
mov dword [rbp + 0xd4], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0xb8]
call sub.msvcrt.dll__CxxThrowException
nop
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0xd8], rcx
xor ecx, ecx
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0xd8], rcx
mov dword [rbp + 0xf0], 0xd0001b11
mov dword [rbp + 0xf4], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0xd8]
call sub.msvcrt.dll__CxxThrowException
int3
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0xf8], rcx
xor ecx, ecx
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rbp + 0xf8], rcx
mov dword [rbp + 0x110], 0xd0001b11
mov dword [rbp + 0x114], eax
lea rdx, [0x14008f100]
lea rcx, [rbp + 0xf8]
call sub.msvcrt.dll__CxxThrowException
int3