Function at 0x180001548
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x48]
xor eax, eax
mov r13d, 0x8000
and qword [rsp + 0x20], rax
xor edx, edx
mov ebx, r13d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r9d, [rax + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1800017cf
xor ecx, ecx
mov edx, ebx
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x18000179a
lea r9, [rbp + 0xc8]
mov r8d, ebx
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x180001635
xor edx, edx
mov r8d, r13d
mov rcx, rsi
cmp eax, 0xc0000004
jne 0x1800015fd
add ebx, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800015a2
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [0x180014958]
test rax, rax
je 0x18000162e
lea rbx, [0x18000e680]
mov r8d, edi
mov rcx, rbx
lea rdx, str.Error_query_SystemProcessInformation:__08X_n
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
jmp 0x1800017cf
and dword [rbp + 0xc8], 0
lea rbx, [0x18000e680]
mov r13, qword [rsp + 0x38]
mov rdi, rsi
mov rax, qword [rsp + 0x68]
cmp qword [rdi + 0x58], rax
jne 0x180001765
mov rax, qword [0x180014958]
test rax, rax
je 0x18000167f
mov r8, qword [rdi + 0x50]
lea rdx, str.Process_has_child_with_PID__d_n
mov rcx, rbx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
mov r15, rax
test rax, rax
je 0x180001735
mov r9d, 0x104
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
cmp eax, 0xc
jl 0x1800016d9
cdqe
lea rdx, str.conhost.exe
lea rcx, [rsp + rax + 0x75]
call qword [0x180014948]
test eax, eax
jne 0x1800016d9
lea r14d, [rax + 1]
jmp 0x1800016dc
xor r14d, r14d
mov rax, qword [0x180014958]
test rax, rax
je 0x180001704
lea r9, [rbp - 0x80]
mov r8d, r14d
lea rdx, str.Want_to_inject_into_child__conhost_d__proc_s_
mov rcx, rbx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SuspendThread]
neg r14d
lea rcx, [rsp + 0x30]
sbb dl, dl
not dl
and dl, 5
call fcn.1800017ec
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001765
cmp qword [0x180014958], 0
je 0x180001765
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi + 0x50]
lea rdx, str.Cannot_open_process__d:__08X_n
mov r9d, eax
mov rcx, rbx
call qword [0x180014958]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rdi], 0
je 0x180001782
mov eax, dword [rbp + 0xc8]
add eax, dword [rdi]
mov edi, eax
add rdi, rsi
mov dword [rbp + 0xc8], eax
jmp 0x18000164b
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x8000001a
jmp 0x1800017cf
cmp qword [0x180014958], 0
je 0x1800017cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [0x18000e680]
mov r8d, eax
mov rcx, rbx
lea rdx, str.Out_of_memory___08X_n
call qword [0x180014958]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret