Function at 0x1400018c0
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r12, r8
mov r13, rdx
lea rdx, str.dwm.exe
lea rcx, str.xPatchProcess_Name__S__n
call fcn.140001070
mov rax, qword [r13 + 8]
cmp rax, qword [r13]
je 0x140001bf2
mov rax, qword [r12 + 8]
cmp rax, qword [r12]
je 0x140001c00
xor r15d, r15d
mov qword [rbp + 0x378], r15
mov r14d, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rbp + 0x370], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001be4
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001c0e
lea rdx, str.dwm.exe
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400019be
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400019c3
jmp 0x140001994
mov r14d, dword [rsp + 0x38]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400019d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r14d, r14d
je 0x140001c1c
mov qword [rbp + 0x384], r15
mov dword [rbp + 0x380], 1
mov dword [rbp + 0x38c], 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r8, [rbp + 0x384]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001c2a
mov qword [rbp + 0x370], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x370]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001c38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x10
lea r8, [rbp + 0x380]
xor edx, edx
mov rcx, qword [rbp + 0x370]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140001c46
mov rcx, qword [rbp + 0x370]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001aa5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rbp + 0x378], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001bd6
mov edx, r14d
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rbp + 0x370], rax
dec rax
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x140001b76
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001c62
xor edx, edx
mov r8d, 0x434
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x438
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001c54
cmp dword [rsp + 0x38], r14d
jne 0x140001b64
mov r8, r13
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140001540
mov rdi, rax
test rax, rax
jne 0x140001bc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140001b45
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001b8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000a7b0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9, rdi
mov r8, r12
mov rdx, r13
mov rcx, rsi
call fcn.140001790
mov r15, rdi
jmp 0x140001b76
mov r8d, eax
mov edx, 0xbf
call fcn.1400014e0
nop
mov r8d, eax
mov edx, 0x4f
call fcn.1400014e0
nop
xor r8d, r8d
mov edx, 0xb1
call fcn.1400014e0
int3
xor r8d, r8d
mov edx, 0xb2
call fcn.1400014e0
nop
mov r8d, edi
mov edx, 0x54
call fcn.1400014e0
nop
mov r8d, eax
mov edx, 0xba
call fcn.1400014e0
int3
mov r8d, ebx
mov edx, 0x42
call fcn.1400014e0
nop
mov r8d, ebx
mov edx, 0x45
call fcn.1400014e0
int3
mov r8d, ebx
mov edx, 0x47
call fcn.1400014e0
nop
mov r8d, edi
mov edx, 0xd9
call fcn.1400014e0
int3
mov r8d, eax
mov edx, 0xd4
call fcn.1400014e0
int3