Function at 0x1800120f0
Capabilities:
Acquire debug privileges
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 - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x18005c010]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r15, r8
mov r13, rdx
xor r12d, r12d
lea ecx, [r12 + 0x18]
call fcn.180015afc
mov r14, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_EnablingAndDisablingPrivileges_.0
mov qword [r14], rax
lea rcx, [r14 + 0x10]
lea rax, vtable.EnablingAndDisablingPrivileges.0
mov qword [rcx], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], r14
test rcx, rcx
je 0x180012282
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [r12 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1800121b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_error:__u__r_n
call fcn.18000a0c0
jmp 0x180012282
mov rbx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1800121e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValue_error:__u_n
call fcn.18000a0c0
jmp 0x180012255
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18001223c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges_error:__u_n
call fcn.18000a0c0
jmp 0x180012255
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x18001226b
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
call fcn.18000a0c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetPrivilege_error:__u__r_n
call fcn.18000a0c0
jmp 0x180012277
lea rcx, str.SetPrivilege_succeeds:__r_n
call fcn.18000a0c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x18
call fcn.180015afc
mov rsi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_SystemProcessInfoModule_.0
mov qword [rsi], rax
lea rcx, [rsi + 0x10]
lea rax, vtable.SystemProcessInfoModule.0
mov qword [rcx], rax
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rsi
mov edi, 0xffffffff
test rcx, rcx
je 0x180012524
xor edx, edx
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012524
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180012330
mov rdx, r15
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001232c
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x180012308
mov r12d, dword [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x180012524
mov edx, r12d
lea rcx, str.Process_pid:_d__r
call fcn.18000a0c0
mov ecx, 0x28
call fcn.180015afc
mov r15, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_ProcessTokenOperation_.0
mov qword [r15], rax
lea rbx, [r15 + 0x10]
lea rax, vtable.ProcessTokenOperation.0
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], r15
test rbx, rbx
je 0x1800124f8
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1800123df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, r12d
lea rcx, str.Could_not_open_process_with_ID__u._Error:__u__r_n
call fcn.18000a0c0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800124f8
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 0xb
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18001241a
lea rcx, str.Failed_to_open_winlogon_token._r_n
call fcn.18000a0c0
jmp 0x1800124f8
add rbx, 0x10
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea rcx, str.Failed_to_duplicate_winlogon_token._r_n
lea rdx, str._Process_Token_Successfully_duplicated_winlogon_token._r_n
test eax, eax
cmovne rcx, rdx
call fcn.18000a0c0
mov r12, qword [rbx]
test r12, r12
je 0x1800124f8
mov ecx, 0x18
call fcn.180015afc
mov rbx, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_ProcessCreationModule_.0
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
lea rax, vtable.ProcessCreationModule.0
mov qword [rcx], rax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x1800124ce
mov qword [rsp + 0x20], r12
mov r8, r13
mov edx, 2
call fcn.180012df0
nop
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800124f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800124f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x180012524
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov eax, edi
lock xadd dword [r15 + 0xc], eax
cmp eax, 1
jne 0x180012524
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18001254e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x18001254e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180012577
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx]
lock xadd dword [r14 + 0xc], edi
cmp edi, 1
jne 0x180012577
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.180015840
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret