Function at 0x1012ac60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012f3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], 0
push 0x10179db4
lea ecx, [ebp - 0x10]
call fcn.10001c20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 2
push str.SeDebugPrivilege
call fcn.1001ccc0
add esp, 0xc
test eax, eax
je 0x1012af2c
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
push 6
call fcn.100181b0
add esp, 0x10
test eax, eax
je 0x1012acef
mov dword [ebp - 0x1c], 0x101000
jmp 0x1012acf6
mov dword [ebp - 0x1c], 0x100410
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1012aeeb
push str.psapi.dll
call fcn.1012db80
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1012aee9
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.GetModuleFileNameExW
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0
je 0x1012aeae
xor edx, edx
mov word [ebp - 0x234], dx
push 0x206
push 0
lea eax, [ebp - 0x232]
push eax
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 0x238], 0x104
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x28]
test eax, eax
je 0x1012adfa
xor ecx, ecx
mov word [ebp - 0x444], cx
push 0x206
push 0
lea edx, [ebp - 0x442]
push edx
call fcn.10108c60
add esp, 0xc
push 0x104
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.1012dcb0
add esp, 0xc
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x1012adf5
lea edx, [ebp - 0x444]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001ce0
jmp 0x1012aeac
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.lpfGetProcessImageFileName_err__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x1012ae82
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x234]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [ebp - 0x24]
test eax, eax
je 0x1012ae56
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001ce0
jmp 0x1012ae80
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.lpfGetModuleFileNameEx_err__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
jmp 0x1012aeac
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.lpfGetModuleFileNameEx_NULL__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
jmp 0x1012aed8
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.lpfGetProcessImageFileName_NULL__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x1012af15
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x1012af2c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x1012af43
mov eax, dword [ebp - 0x14]
push eax
push str.SeDebugPrivilege
call fcn.1001ce30
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001c00
mov edx, dword [ebp - 0x44c]
or edx, 1
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret