Function at 0x14004bec0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140280d40]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [0x1402862d0]
test rcx, rcx
je 0x14004beee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
lea r8, [0x1402862d0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14004bf97
lea rcx, [0x140285fe8]
mov qword [rsp + 0x50], rcx
call fcn.140010830
nop
mov rax, qword [0x140285fe0]
test rax, rax
je 0x14004bf86
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_WindowsN_MB4_MbamBgNativeMsg_srcMbamBgNativeMsgMessagingService.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x140285fe0]
call rbx
nop
lea rcx, [rsp + 0x50]
call fcn.14000fbb0
xor al, al
jmp 0x14004c0f4
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14004c03e
lea rcx, [0x140285fe8]
mov qword [rsp + 0x50], rcx
call fcn.140010830
nop
mov rax, qword [0x140285fe0]
test rax, rax
je 0x14004c020
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_WindowsN_MB4_MbamBgNativeMsg_srcMbamBgNativeMsgMessagingService.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x140285fe0]
call rbx
nop
lea rcx, [rsp + 0x50]
call fcn.14000fbb0
mov rcx, qword [0x1402862d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14004c0f4
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x6c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [0x1402862d0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14004c0f2
lea rcx, [0x140285fe8]
mov qword [rsp + 0x50], rcx
call fcn.140010830
nop
mov rax, qword [0x140285fe0]
test rax, rax
je 0x14004c0ed
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_WindowsN_MB4_MbamBgNativeMsg_srcMbamBgNativeMsgMessagingService.cpp
lea rdx, str.MessagingService::EnableDebugPrivilege
mov rcx, qword [0x140285fe0]
call rbx
nop
jmp 0x14004c020
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140162ed0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret