Function at 0x100319d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101abfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x10
xor eax, eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x154]
push str.SeDebugPrivilege
xor bl, bl
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
call fcn.10004a70
mov dword [ebp - 4], 0
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x154]
call fcn.100317e0
mov byte [ebp - 0x131], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10004a00
cmp byte [ebp - 0x131], bl
je 0x10031af9
test byte [ebp - 0x138], 2
jne 0x10031af9
push 0x10
xor eax, eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x154]
push str.SeDebugPrivilege
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
call fcn.10004a70
mov dword [ebp - 4], 1
mov dl, 1
lea ecx, [ebp - 0x154]
call fcn.10031700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10004a00
lea ecx, [ebp - 0x130]
call fcn.1009fde0
cmp dword [ebp - 0x12c], 6
ja 0x10031b8c
jne 0x10031b18
cmp dword [ebp - 0x128], 3
jae 0x10031b8c
push 0x101ec9d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10031bfa
push str.NtQueryInformationProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x10031bf3
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10031bf3
push 0
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1d
push edi
call dword [ebp - 0x13c]
test eax, eax
jne 0x10031bec
cmp dword [ebp - 0x14], 0
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
jmp 0x10031bec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10031bfa
push str.IsProcessCritical
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x10031bf3
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10031bf3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push edi
call dword [ebp - 0x13c]
test eax, eax
je 0x10031bec
cmp dword [ebp - 0x14], 0
mov ecx, 1
movzx ebx, bl
cmovne ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x131], 0
je 0x10031c75
test byte [ebp - 0x138], 2
jne 0x10031c75
push 0x10
xor eax, eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x154]
push str.SeDebugPrivilege
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
call fcn.10004a70
mov dword [ebp - 4], 2
xor dl, dl
lea ecx, [ebp - 0x154]
call fcn.10031700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10004a00
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018b6f4
mov esp, ebp
pop ebp
ret