Function at 0x1000b5ba
Capabilities:
Acquire debug privileges
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
push eax
xor esi, esi
push 0x28
mov ebx, esi
mov dword [esp + 0x24], esi
push 0xffffffffffffffff
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b7e0
lea eax, [esp + 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ebp, dword [sym.imp.NTDLL.dll_NtClose]
test eax, eax
je 0x1000b7da
push esi
push esi
push 0x10
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 1
push eax
push esi
push dword [esp + 0x30]
mov dword [esp + 0x5c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000b7da
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push esi
push esi
mov esi, dword [sym.imp.NTDLL.dll_NtQuerySystemInformation]
push 5
call esi
cmp eax, 0xc0000004
jne 0x1000b7da
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1000b7da
push 4
push 0x1000
call fcn.10006c4d
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
je 0x1000b7da
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push 5
call esi
test eax, eax
js 0x1000b7ce
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1000b7d2
and dword [esp + 0x24], ebx
call fcn.1000ab3d
mov esi, edi
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x44], eax
je 0x1000b7b4
mov eax, dword [esp + 0x2c]
cmp dword [esi + 0x50], eax
jne 0x1000b7b4
push dword [esi + 0x44]
call fcn.1000b30d
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x1000b7b4
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0xa
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b7ad
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 1
push dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1000b7a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000b7a7
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov ebx, eax
test ebx, ebx
je 0x1000b7a3
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push ebx
push 1
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1000b795
push 0x16
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
je 0x1000b795
and dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000b795
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x28], eax
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
mov ebx, dword [esp + 0x24]
push dword [esp + 0x14]
call ebp
push ebx
call ebp
test edi, edi
jne 0x1000b7c6
mov eax, dword [esi]
test eax, eax
je 0x1000b7c6
add esi, eax
mov eax, dword [esp + 0x30]
jne 0x1000b6ae
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.10007c48
push dword [esp + 0x1c]
call ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x3c
ret