Function at 0x14007bff0
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [0x14032b8b0]
test rcx, rcx
je 0x14007c02b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
lea r8, [0x14032b8b0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14007c0d4
lea rcx, [0x14032b848]
mov qword [rsp + 0x50], rcx
call fcn.1400132b0
nop
mov rax, qword [0x14032b840]
test rax, rax
je 0x14007c0c3
mov rax, qword [rax]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
lea rax, str.Cannot_open_process_token_on_this_process___d___error:_0x_08x
mov qword [rsp + 0x30], rax
lea rax, str.MbamBgNativeMsg
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xa6
lea r8, str.c:jenkinsworkspacembam_windows_n_mb4_mbambgnativemsg_srcmbambgnativemsgmessagingservice.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x14032b840]
call rbx
nop
lea rcx, [rsp + 0x50]
call fcn.1400126a0
xor al, al
jmp 0x14007c231
lea r8, [rsp + 0x60]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14007c17b
lea rcx, [0x14032b848]
mov qword [rsp + 0x50], rcx
call fcn.1400132b0
nop
mov rax, qword [0x14032b840]
test rax, rax
je 0x14007c15d
mov rax, qword [rax]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Cannot_LookupPrivilegeValue__SE_DEBUG_NAME___error:_0x_08x
mov qword [rsp + 0x30], rax
lea rax, str.MbamBgNativeMsg
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xab
lea r8, str.c:jenkinsworkspacembam_windows_n_mb4_mbambgnativemsg_srcmbambgnativemsgmessagingservice.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x14032b840]
call rbx
nop
lea rcx, [rsp + 0x50]
call fcn.1400126a0
mov rcx, qword [0x14032b8b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14007c231
mov dword [rsp + 0x68], 1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [0x14032b8b0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14007c22f
lea rcx, [0x14032b848]
mov qword [rsp + 0x50], rcx
call fcn.1400132b0
nop
mov rax, qword [0x14032b840]
test rax, rax
je 0x14007c22a
mov rax, qword [rax]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Cannot_AdjustTokenPrivileges__SE_PRIVILEGE_ENABLED___error:_0x_08x
mov qword [rsp + 0x30], rax
lea rax, str.MbamBgNativeMsg
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xb4
lea r8, str.c:jenkinsworkspacembam_windows_n_mb4_mbambgnativemsg_srcmbambgnativemsgmessagingservice.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x14032b840]
call rbx
nop
jmp 0x14007c15d
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401d9c30
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret