Function at 0x1400149f4
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, rcx
mov r12d, 1
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor r15d, r15d
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [r12 + 0x27]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140014f07
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r9d, [r12 + 3]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
lea edx, [r12 + 0x13]
mov dword [rsp + 0x40], r15d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x140014f07
cmp dword [rsp + 0x38], r15d
jne 0x140014ae2
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014ab4
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140017980
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r9, str.GlobalMicrosoft_Office_Performance_Monitor_Instance
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140014efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140014b41
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1466]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014b37
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x140014ab7
mov rcx, qword [rsp + 0x30]
lea rdx, str.SeDebugPrivilege
call fcn.1400144bc
test al, al
je 0x140014f07
mov rcx, qword [rsp + 0x30]
lea rdx, str.SeSystemProfilePrivilege
call fcn.1400144bc
test al, al
je 0x140014f07
lea rcx, str.c2r64.dll
call fcn.140013c90
lea rcx, [rbp - 0x40]
call fcn.140013d18
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x140014ed3
mov edi, 0x104
lea rcx, [rbp + 0x140]
mov edx, edi
call qword [0x14001a498]
test eax, eax
js 0x140014ed3
lea r8, str._rootOffice16
mov edx, edi
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea rcx, str.mso20win32client.dll
call fcn.140013c90
test rax, rax
je 0x140014efb
lea rcx, str.mso30win32client.dll
call fcn.140013c90
test rax, rax
je 0x140014efb
mov ecx, 0x47
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_147]
call fcn.140014310
test al, al
je 0x140014c53
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_254]
mov rsi, rax
mov rcx, qword [rax]
mov rdi, qword [rcx + 0xe8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2821]
mov rdx, rax
mov rcx, rsi
mov rax, rdi
call qword [0x14001a498]
lea rax, [0x14001bc40]
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_601]
xorps xmm0, xmm0
mov qword [rbp - 0x60], r15
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm0
lea rax, [0x14001b7e8]
movdqa xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x58], rax
lea rdi, [0x14001bda0]
mov dword [rbp - 0x50], r15d
mov dword [rbp - 0x4c], 2
mov dword [rbp - 0x48], 0x47
mov edx, dword [rdi]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_75]
lea rax, [0x14001bdb0]
add rdi, 4
cmp rdi, rax
jne 0x140014ca7
call fcn.140014310
test al, al
je 0x140014d03
lea rcx, str.EnableTracing
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_3852]
cmp eax, r12d
jne 0x140014d03
mov rcx, rbx
mov rbx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140014620
test al, al
je 0x140014d03
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1466]
jmp 0x140014e9d
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2012]
mov rcx, r14
call fcn.140014564
mov rsi, rax
test rax, rax
je 0x140014efb
xorps xmm0, xmm0
mov edx, r12d
mov ecx, 0xd0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140014ec7
lea rcx, [rsp + 0x40]
call fcn.140005528
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014d5b
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x140014efb
mov edx, r12d
mov ecx, 0x10
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rdi, rax
test rax, rax
je 0x140014ec7
mov qword [rax + 8], r12
lea rax, vtable.Mso::OPerfMon::ClientFactory.0
mov qword [rdi], rax
test r14, r14
je 0x140014eb9
mov rax, qword [r14]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [0x14001a498]
test eax, eax
jns 0x140014dbf
mov edx, 0x30303030
mov ecx, eax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_189]
int3
mov rcx, r14
call fcn.140006698
test eax, eax
jns 0x140014dd9
mov edx, 0x30303030
mov ecx, eax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_189]
int3
lea rax, str.OPerfMon.IsEnabled2
mov dword [rsp + 0x50], 0x3eff
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], r12d
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_3392]
test al, al
jne 0x140014e13
lea rcx, str.EnableTracing
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_3852]
cmp eax, r12d
jne 0x140014e2c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8, r14
lea rcx, [0x140014610]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rax, qword [r14]
lea rdx, str.excel.exe_msaccess.exe_mspub.exe_onenote.exe_outlook.exe_operfmonsampleapp.exe_powerpnt.exe_visio.exe_winproj.exe_winword.exe_winwordd.exe
mov rcx, r14
mov rax, qword [rax + 0x28]
call qword [0x14001a498]
test eax, eax
jne 0x140014e5b
mov cl, r12b
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2323]
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1466]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x14001a498]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x14001a498]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014e9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014eb2
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140014ab7
xor edx, edx
mov ecx, 0x152139a
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3
mov ecx, 0x1f65259d
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2904]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014ef1
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x140014ab7
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2904]
int3
xor edx, edx
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3