Function at 0x140085d20
Capabilities:
Check processdebugport

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov qword [rsp + 0x70], rsi
mov rsi, rcx
xor edx, edx
mov rcx, rdi
mov r8d, 0xc8
call fcn.1401868c0
xor r14d, r14d
lea r8, [rbp - 0x10]
mov rcx, rsi
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 8]
lea edx, [r14 + 0x1a]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x140085d8c
nop word [rax + rax]
cmp qword [rbp - 0x10], r14
jne 0x140085d8c
lea r9d, [r14 + 5]
jmp 0x140085dd8
mov r9d, 4
mov qword [rsp + 0x20], r14
lea r8, [rbp - 0x10]
mov rcx, rsi
lea edx, [r9 + 0x1e]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
test eax, eax
js 0x140085dff
mov r8d, dword [rbp - 0x10]
mov ecx, r8d
shr ecx, 1
mov eax, r8d
not ecx
and ecx, 1
mov edx, ecx
or edx, 2
and al, 4
cmove edx, ecx
mov r9d, edx
or r9d, 4
and r8b, 8
cmove r9d, edx
mov eax, r9d
lea rcx, [rdi + 0x88]
and dword [rcx], 0xfffffffc
and eax, 3
or dword [rcx], eax
mov ebx, r14d
shr r9d, 2
and r9b, 1
mov qword [rdi], rcx
mov byte [rdi + 0x8c], r9b
mov r9d, 8
mov dword [rbp - 0x10], 1
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085e36
cmp ebx, 0xc0000073
jne 0x140085e49
mov ebx, eax
jmp 0x140085e49
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0x90]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 8], rcx
mov r9d, 8
mov dword [rbp - 0x10], 2
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085e7c
cmp ebx, 0xc0000073
jne 0x140085e8f
mov ebx, eax
jmp 0x140085e8f
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0x94]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x10], rcx
mov r9d, 8
mov dword [rbp - 0x10], 3
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085ec2
cmp ebx, 0xc0000073
jne 0x140085ed5
mov ebx, eax
jmp 0x140085ed5
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0x98]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x18], rcx
mov r9d, 8
mov dword [rbp - 0x10], 4
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085f0c
nop dword [rax]
cmp ebx, 0xc0000073
jne 0x140085f1f
mov ebx, eax
jmp 0x140085f1f
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0x9c]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x20], rcx
mov r9d, 8
mov dword [rbp - 0x10], 6
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085f56
cmp ebx, 0xc0000073
jne 0x140085f69
mov ebx, eax
jmp 0x140085f69
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xa0]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x30], rcx
mov r9d, 8
mov dword [rbp - 0x10], 7
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085f9c
cmp ebx, 0xc0000073
jne 0x140085faf
mov ebx, eax
jmp 0x140085faf
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xa4]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x38], rcx
mov r9d, 8
mov dword [rbp - 0x10], 8
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140085fe2
cmp ebx, 0xc0000073
jne 0x140085ff5
mov ebx, eax
jmp 0x140085ff5
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xa8]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x40], rcx
mov r9d, 8
mov dword [rbp - 0x10], 9
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x14008602c
nop dword [rax]
cmp ebx, 0xc0000073
jne 0x14008603f
mov ebx, eax
jmp 0x14008603f
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xac]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x48], rcx
mov r9d, 8
mov dword [rbp - 0x10], 0xa
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140086076
cmp ebx, 0xc0000073
jne 0x140086089
mov ebx, eax
jmp 0x140086089
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xb0]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x50], rcx
mov r9d, 8
mov dword [rbp - 0x10], 0xb
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x1400860bc
cmp ebx, 0xc0000073
jne 0x1400860cf
mov ebx, eax
jmp 0x1400860cf
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xb4]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x58], rcx
mov r9d, 8
mov dword [rbp - 0x10], 0xc
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140086102
cmp ebx, 0xc0000073
jne 0x140086115
mov ebx, eax
jmp 0x140086115
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xb8]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x60], rcx
mov r9d, 8
mov dword [rbp - 0x10], 0xd
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x14008614c
nop dword [rax]
cmp ebx, 0xc0000073
jne 0x14008615f
mov ebx, eax
jmp 0x14008615f
mov eax, dword [rbp - 0xc]
lea rcx, [rdi + 0xbc]
mov dword [rcx], eax
mov ebx, r14d
mov qword [rdi + 0x68], rcx
mov r9d, 8
mov dword [rbp - 0x10], 0xe
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x140086196
cmp ebx, 0xc0000073
jne 0x1400861aa
mov ebx, eax
jmp 0x1400861aa
mov eax, dword [rbp - 0xc]
lea r8, [rdi + 0xc0]
mov dword [r8], eax
mov ebx, r14d
mov qword [rdi + 0x70], r8
mov r9d, 8
mov dword [rbp - 0x10], 0xf
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov rsi, qword [rsp + 0x70]
test eax, eax
jns 0x1400861e2
cmp ebx, 0xc0000073
je 0x1400861f5
mov eax, ebx
jmp 0x1400861f5
mov ecx, dword [rbp - 0xc]
lea rdx, [rdi + 0xc4]
mov dword [rdx], ecx
mov eax, r14d
mov qword [rdi + 0x78], rdx
mov rcx, qword ds:[rbp - 8]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret