Function at 0x18001227c
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes
Get file size
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xac0]
sub rsp, 0xbc0
mov r15, qword [rcx]
xor edx, edx
and qword [rbp + 0xaf8], 0
lea rcx, [rbp - 0x2c]
and dword [rbp + 0xaf0], 0
mov r8d, 0x234
call sub.ntdll.dll_memset
xor edx, edx
lea rcx, [rbp + 0x8b0]
mov r8d, 0x208
call sub.ntdll.dll_memset
mov esi, 0x48
lea rcx, [rbp - 0x80]
mov r8d, esi
xor edx, edx
call sub.ntdll.dll_memset
lea edx, [rsi - 0x47]
lea rcx, str.SeDebugPrivilege
call fcn.1800146b0
xor edx, edx
lea ecx, [rsi - 0x46]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800125a9
call fcn.180003698
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], 0x238
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x1800124e8
mov r8d, dword [rbp - 0x28]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
test dword [rbp - 0x28], 0xfffffffb
mov rdi, rax
je 0x1800124cd
cmp dword [rbp - 0x28], 8
je 0x1800124cd
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x694
call sub.ntdll.dll_memset
lea rdx, [rbp - 4]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov eax, dword [rbp - 0x28]
mov rcx, rdi
mov dword [rbp + 0x418], eax
call qword [sym.imp.KERNEL32.DLL_GetPriorityClass]
mov dword [rbp + 0x41c], eax
lea rdx, [rbp + 0x424]
mov eax, dword [rbp - 0x14]
mov rcx, rdi
mov dword [rbp + 0x420], eax
call fcn.180014c48
mov ecx, dword [rbp - 0x28]
lea rdx, [rbp + 0x488]
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
mov r8, rsi
lea rcx, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ntdll.dll_memset]
mov r8d, esi
mov dword [rbp - 0x80], esi
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_K32GetProcessMemoryInfo]
test eax, eax
je 0x1800123ed
mov rax, qword [rbp - 0x70]
shr rax, 0xa
mov dword [rbp + 0x48c], eax
jmp 0x1800123f4
and dword [rbp + 0x48c], 0
lea r9, [rbp + 0xaf0]
mov r8d, 8
lea rdx, [rbp + 0xaf8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_K32EnumProcessModules]
mov r8d, 0x104
lea rdx, [rbp + 0x8b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_K32GetProcessImageFileNameW]
test eax, eax
jne 0x180012441
lea rdx, str.unknown
lea rcx, [rbp + 0x494]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
jmp 0x180012454
lea rdx, [rbp + 0x494]
lea rcx, [rbp + 0x8b0]
call fcn.180014a48
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x494]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800124ad
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
shr eax, 0xa
mov dword [rbp + 0x490], eax
test rsi, rsi
je 0x1800124b4
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1800124b4
and dword [rbp + 0x490], 0
mov r8d, 0x694
lea rdx, [rbp + 0x210]
mov rcx, r14
call qword [r14 + 0x28]
mov esi, 0x48
test rdi, rdi
je 0x1800124db
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
xor edx, edx
test eax, eax
jne 0x180012329
lea rcx, str.SeDebugPrivilege
call fcn.1800146b0
test rbx, rbx
je 0x18001250c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rcx, r14
mov dword [rsp + 0x74], 0x2072024
mov dword [rsp + 0x64], 0x5000
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [r14 + 0x30]
and dword [rsp + 0x70], 0
mov dword [rsp + 0x68], eax
call fcn.180003698
mov r8d, gethostname
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
call qword [rax + 0x28]
mov rcx, r14
call qword [r14 + 0x30]
xor edx, edx
mov rcx, r14
mov ebx, eax
call qword [r14 + gethostname]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, r15
mov rdx, rax
call qword [r15 + 0x30]
mov rcx, r14
call fcn.1800037c0
mov rcx, rdi
call fcn.1800037c0
mov rbx, qword [rsp + 0xc00]
xor eax, eax
add rsp, 0xbc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret