Function at 0x140003088
Capabilities:
Access peb ldr_data
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x298
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov r12, rcx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov ecx, 0x10
mov rax, qword gs:[0x58]
mov r10, qword [rax]
or r14, 0xffffffffffffffff
mov eax, dword [rcx + r10]
cmp dword [0x1400717e0], eax
jg 0x140003642
mov rbx, qword [0x1400717d8]
mov qword [rsp + 0x70], r15
mov eax, dword [0x1400718ec]
mov dword gs:[0x68], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf01ff
lea rdi, [r9 - 2]
mov rcx, rdi
call fcn.1400558a0
nop
test rbx, rbx
je 0x14000367e
mov qword [rbp - 0x30], rbx
mov eax, dword [0x1400718e0]
mov dword gs:[0x68], eax
lea r9d, [rdi + 0xa]
lea r8, [rbp - 0x30]
lea edx, [rdi + 7]
mov rcx, rdi
call fcn.1400558a0
test eax, eax
js 0x1400036bd
mov rdi, qword [rbp + 0x208]
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi + 8]
sar rax, 3
lea r13d, [rax + 1]
cmp qword [rdi], r15
cmove r13d, eax
mov byte [rbp - 0x58], r15b
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400035f1
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1400035f1
mov rcx, rbx
call fcn.140055f2c
mov rsi, rax
test rax, rax
je 0x1400031d5
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140058aa0
jmp 0x1400031d8
mov rsi, r15
mov qword [rbp - 0x28], rsi
mov eax, 2
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x50], rsi
and eax, 0xfffffffd
mov dword [rsp + 0x60], eax
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rsi
call fcn.140058aa0
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, r13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x1400036f8
mov byte [rbp - 0x58], 1
mov rax, qword [rdi]
test rax, rax
je 0x14000325f
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 8
lea r9, [rbp - 0x20]
xor edx, edx
mov r8d, 0x20000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000373b
mov rbx, qword [rdi + 8]
mov rdi, qword [rdi + 0x10]
jmp 0x1400032a4
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 8
lea r9, [rbp - 0x18]
xor edx, edx
mov r8d, 0x20007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000377e
add rbx, 8
cmp rbx, rdi
jne 0x140003269
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp + 0x124]
call fcn.140058aa0
xor edi, edi
mov r15d, 0x400
test r13d, r13d
je 0x1400032e6
test rsi, rsi
je 0x1400032e6
mov r15d, 0x80400
mov dword [rbp + 0x120], 0x70
mov qword [rbp + 0x188], rsi
jmp 0x1400032f0
mov dword [rbp + 0x120], 0x68
or r15d, dword [rbp + 0x200]
mov rdx, qword [rbp + 0x1e8]
lea rcx, [rbp + 0xf0]
call fcn.1400041f4
nop
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], di
mov rbx, rdi
mov r13, qword [rbp + 0x1f0]
test r13, r13
je 0x1400033ff
inc r14
cmp word [r13 + r14*2], di
jne 0x140003337
mov rcx, qword [rbp - 0x70]
cmp r14, rcx
ja 0x14000337d
lea rdi, [rsp + 0x78]
cmp rcx, 8
cmovae rdi, qword [rsp + 0x78]
mov qword [rbp - 0x78], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call fcn.140058d50
xor eax, eax
mov word [rbx + rdi], ax
mov rdi, qword [rsp + 0x78]
jmp 0x1400033f1
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x1400037ca
mov rdx, r14
or rdx, 7
cmp rdx, rbx
ja 0x1400033bb
mov r8, rcx
shr r8, 1
mov rax, rbx
sub rax, r8
cmp rcx, rax
ja 0x1400033bb
lea rax, [rcx + r8]
mov rbx, rdx
cmp rdx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x78]
call fcn.140004908
mov rdi, rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.140058d50
xor eax, eax
mov word [rbx + rdi], ax
mov qword [rsp + 0x78], rdi
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, rdi
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rdi, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae rdi, qword [rbp + 0xf0]
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov ecx, 0xf18182ab
call fcn.140001ea0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov r13d, 0x8f842ec4
mov edx, r13d
mov rcx, rax
call fcn.140007d70
test eax, eax
je 0x140003483
mov ecx, 0xef0aed7f
call fcn.140001ea0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov edx, r13d
mov rcx, rax
call fcn.140007d70
test eax, eax
jne 0x1400037d0
mov qword [rsp + 0x58], r14
lea rax, [rbp - 0x48]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x120]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call qword [rbp - 0x68]
test eax, eax
je 0x1400035a0
mov qword [rbp - 0x60], r12
mov rax, qword [rbp - 0x48]
mov qword [r12], rax
lea rdx, [r12 + 8]
mov qword [rbp - 0x60], rdx
mov ecx, dword [rbp - 0x34]
mov rax, qword [rbp - 0x40]
mov qword [rdx], rax
mov dword [rdx + 8], ecx
mov byte [rdx + 0xc], r14b
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x78]
call fcn.1400043c8
nop
lea rcx, [rbp + 0xf0]
call fcn.1400043c8
nop
test rsi, rsi
je 0x14000352b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov byte [rbp - 0x58], r14b
test rsi, rsi
je 0x140003539
mov rcx, rsi
call fcn.1400558ec
nop
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x60], rax
mov eax, dword [0x1400718e0]
mov dword gs:[0x68], eax
mov r9d, 8
lea r8, [rbp - 0x60]
lea edx, [r9 - 3]
mov rcx, 0xfffffffffffffffe
call fcn.1400558a0
cmp qword [rsp + 0x70], r14
je 0x140003589
mov eax, dword [0x1400718f4]
mov dword gs:[0x68], eax
mov rcx, qword [rsp + 0x70]
call fcn.1400558a0
mov rax, r12
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, vtable.std::exception.0
mov qword [rbp + 0xb0], rcx
xor eax, eax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
lea rcx, [0x140080360]
mov qword [rbp + 0xb0], rcx
mov dword [rbp + 0xc8], 0xd0001b11
mov dword [rbp + 0xcc], r14d
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0xb0]
call fcn.140058c30
nop
lea rcx, vtable.std::exception.0
mov qword [rbp + 0xd0], rcx
xor eax, eax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
lea rcx, [0x140080360]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xe8], 0xd0001b11
mov dword [rbp + 0xec], r15d
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0xd0]
call fcn.140058c30
nop
lea rcx, [0x1400717e0]
call fcn.140055b0c
cmp dword [0x1400717e0], r14d
jne 0x1400030f0
call fcn.1400025bc
lea rcx, [0x14006c590]
call fcn.140055f14
nop
lea rcx, [0x1400717e0]
call fcn.140055aac
jmp 0x1400030f0
lea rcx, vtable.std::exception.0
mov qword [rbp - 0x10], rcx
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
lea rcx, [0x140080360]
mov qword [rbp - 0x10], rcx
mov dword [rbp + 8], 0xd0002001
mov dword [rbp + 0xc], 0x7b
lea rdx, [0x1400a01c0]
lea rcx, [rbp - 0x10]
call fcn.140058c30
int3
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x10], rcx
xor ecx, ecx
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rcx
lea rcx, [0x140080360]
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x28], 0xd0001612
mov dword [rbp + 0x2c], eax
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0x10]
call fcn.140058c30
nop
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x30], rcx
xor ecx, ecx
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rcx
lea rcx, [0x140080360]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x48], 0xd0001b11
mov dword [rbp + 0x4c], eax
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0x30]
call fcn.140058c30
nop
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x50], rcx
xor ecx, ecx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rcx
lea rcx, [0x140080360]
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x68], 0xd0001b11
mov dword [rbp + 0x6c], eax
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0x50]
call fcn.140058c30
int3
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x70], rcx
xor ecx, ecx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rcx
lea rcx, [0x140080360]
mov qword [rbp + 0x70], rcx
mov dword [rbp + 0x88], 0xd0001b11
mov dword [rbp + 0x8c], eax
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0x70]
call fcn.140058c30
nop
call fcn.1400048f4
int3
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x90], rcx
xor eax, eax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
lea rcx, [0x140080360]
mov qword [rbp + 0x90], rcx
mov dword [rbp + 0xa8], 0xd0001b0d
mov dword [rbp + 0xac], r14d
lea rdx, [0x1400a01c0]
lea rcx, [rbp + 0x90]
call fcn.140058c30
int3