Function at 0x10020000
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4478
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1010d770]
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
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x20
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
push 0x20
call ebx
push eax
call esi
test eax, eax
je 0x1002009f
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1002009f
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x34], 7
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
push str.ZwQueryInformationProcess
push str.ntdll.dll
mov byte [ebp - 4], 1
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
push 0x400
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100200f5
or ebx, 0xffffffff
jmp 0x10020110
push 0
push 0x18
lea eax, [ebp - 0x60]
push eax
push 0
push esi
call dword [ebp - 0x64]
test eax, eax
push esi
cmove ebx, dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x48]
mov ecx, ebx
call fcn.1001ff40
lea eax, [ebp - 0x64]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10020176
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10020176
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.1001fe20
mov esi, eax
cmp edi, esi
je 0x100201ca
cmp dword [edi + 0x14], 8
jb 0x100201af
push dword [edi]
call fcn.1005cd08
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov word [edi], ax
call fcn.1001dc40
cmp dword [ebp - 0x4c], 8
jb 0x100201db
push dword [ebp - 0x60]
call fcn.1005cd08
add esp, 4
mov edx, dword [edi + 0x14]
cmp edx, 8
jb 0x100201e7
mov ecx, dword [edi]
jmp 0x100201e9
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100201f0
sub ecx, esi
lea eax, [ebp + 8]
sar ecx, 1
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
cmp edx, 8
jb 0x10020211
mov edi, dword [edi]
push ecx
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov esi, eax
neg esi
sbb esi, esi
cmp dword [ebp - 0x34], 8
jb 0x10020231
push dword [ebp - 0x48]
call fcn.1005cd08
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x10020256
push dword [ebp + 8]
call fcn.1005cd08
add esp, 4
lea eax, [esi + 1]
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.1005cd0d
mov esp, ebp
pop ebp
ret