Function at 0x14011d5e0
Capabilities:
Check processdebugport

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r13, rdx
mov qword [rsp + 0x78], rdx
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateQueryDebugBuffer]
mov rdi, rax
test rax, rax
je 0x14011d65f
mov r8, rax
mov edx, 0x204
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlQueryProcessDebugInformation]
mov ebx, eax
lfence
test eax, eax
jns 0x14011d64f
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlDestroyQueryDebugBuffer]
mov eax, ebx
jmp 0x14011d927
cmp qword [rdi + 0x70], 0
jne 0x14011d669
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlDestroyQueryDebugBuffer]
mov eax, 0xc0000001
jmp 0x14011d927
mov qword ss:[rsp + 0x170], rsi
mov qword [rsp + 0x130], r12
lfence
mov rax, qword [rdi + 0x70]
mov edx, 4
mov ecx, dword [rax]
lea rax, [rcx + rcx*4]
mov rcx, qword [0x140241998]
lea rbx, [rax*8 + 0x38]
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.1401868c0
mov rcx, qword [rdi + 0x70]
xor ebx, ebx
mov esi, ebx
mov edx, dword [rcx]
mov dword [r12], edx
mov rcx, qword [rdi + 0x98]
mov qword [r12 + 8], rcx
test edx, edx
je 0x14011d8ec
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x128], r14
mov qword [rsp + 0x120], r15
nop dword [rax]
mov edx, esi
imul r15, rdx, 0x58
lea rax, [rdx + rdx*4]
mov qword [rsp + 0x60], r13
add r15, qword [rdi + 0x70]
lea r14, [r12 + rax*8]
cmp byte [0x140240e3f], 0
mov qword [rsp + 0x68], rbx
mov eax, dword [r15 + 0x10]
mov dword [r14 + 0x10], eax
mov dword [r14 + 0x14], 0xffffffff
mov eax, dword [r15 + 0x2c]
mov dword [r14 + 0x18], eax
mov rax, qword [r15 + 8]
mov qword [r14 + 0x20], rax
mov rax, qword [r15 + 0x18]
mov qword [r14 + 0x28], rax
mov rax, qword [r15 + 0x20]
mov qword [r14 + 0x30], rax
je 0x14011d78d
lea rax, [rsp + 0x58]
mov dword [rbp - 0x78], 0x1010
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x68]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x70], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
jmp 0x14011d81d
xorps xmm0, xmm0
mov dword [rbp - 0x40], 0x30
lea r9, [rsp + 0x60]
mov qword [rbp - 0x38], rbx
lea r8, [rbp - 0x40]
mov dword [rbp - 0x28], ebx
mov edx, 0x1010
mov qword [rbp - 0x30], rbx
lea rcx, [rsp + 0x58]
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x14011d83f
cmp byte [0x140240e3f], 0
je 0x14011d8cb
lea rax, [rsp + 0x58]
mov dword [rbp - 0x58], 0x1010
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x48]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x48], ebx
mov qword [rbp - 0x50], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], ebx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop
test eax, eax
js 0x14011d8cb
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x10]
mov ebx, 1
mov qword [rsp + 0x20], 0
lea r9d, [rbx + 7]
lea edx, [rbx + 0x19]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14011d879
xor ebx, ebx
cmp qword [rbp + 0x10], rbx
sete bl
cmp dword [0x140237d34], 0x3d
mov rax, qword [r15 + 8]
mov dword [rsp + 0x50], 0xffffffff
jb 0x14011d8be
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
inc rbx
lea rdx, [rax + rbx*8]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 4]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14011d8c0
mov eax, dword [rsp + 0x50]
mov dword [r14 + 0x14], eax
jmp 0x14011d8c0
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
inc esi
cmp esi, dword [r12]
jb 0x14011d6f0
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x170]
test r13, r13
je 0x14011d8ff
mov qword [r13], r12
jmp 0x14011d911
mov rcx, qword [0x140241998]
mov r8, r12
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lfence
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlDestroyQueryDebugBuffer]
mov r12, qword [rsp + 0x130]
xor eax, eax
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x138
pop r13
pop rdi
pop rbx
pop rbp
ret