Function at 0x40b7a0
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428507
mov eax, dword fs:[0]
push eax
mov eax, 0x10cc
call fcn.00419d10
mov eax, dword [0x438130]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1094], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 0x1090], eax
mov dword [ebp - method.ATL::CAccessToken.virtual_0], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x1088], 0
mov dword [ebp - 0x1084], 0
mov dword [ebp - 0x1080], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0x107c]
push ecx
push 1
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40b84f
mov eax, dword [ebp - 0x108c]
lea ecx, [ebp - 0x108c]
call dword [eax + 4]
mov eax, dword [ebp - 0x107c]
jmp 0x40b893
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40bb08
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x1074]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bb08
mov eax, dword [ebp - 0x108c]
lea ecx, [ebp - 0x108c]
call dword [eax + 4]
mov eax, dword [ebp - 0x1074]
lea ecx, [ebp - 0x10d8]
mov dword [ebp - 0x1088], eax
call fcn.0040a490
push 0
lea eax, [ebp - 0x10d8]
mov byte [ebp - 4], 1
push eax
push str.SeDebugPrivilege
lea ecx, [ebp - 0x108c]
call fcn.0040b640
mov ecx, dword [ebx]
mov byte [ebp - 0x1075], al
test ecx, ecx
je 0x40b8dc
push ecx
call fcn.004188a8
add esp, 4
mov dword [ebx], 0
lea eax, [ebp - 0x109c]
mov dword [ebx + 4], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebx + 8], 0
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40b90d
xor bl, bl
jmp 0x40bad9
mov ebx, dword [ebp - 0x109c]
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x40bab8
lea ecx, [ebp - 0x1070]
call fcn.0040a380
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 2
push eax
push dword [ebp + edi*4 - 0x1010]
call fcn.0040cb10
add esp, 8
test al, al
je 0x40baa0
call fcn.00403740
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bafe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1074], eax
lea eax, [ebp - 0x1074]
mov byte [ebp - 4], 3
push eax
push dword [ebp + edi*4 - 0x1010]
call fcn.0040c9c0
mov esi, dword [ebp - 0x1074]
add esp, 8
test al, al
je 0x40ba82
cmp dword [esi - 0xc], 0
je 0x40ba16
push esi
lea ecx, [ebp - 0x107c]
call fcn.00401380
lea ecx, [ebp - 0x107c]
mov byte [ebp - 4], 4
call fcn.0040a120
mov eax, dword [ebp - 0x107c]
test eax, eax
jne 0x40b9c8
xor edx, edx
jmp 0x40b9df
mov edx, eax
lea esi, [edx + 2]
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40b9d0
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x1074]
call fcn.00405270
mov edx, dword [ebp - 0x107c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ba10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1074]
cmp byte [ebp - 0x1028], 0
je 0x40ba82
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40ba82
mov ecx, dword [ebp - 0x1094]
lea eax, [ebp - 0x1070]
push eax
call fcn.0040b700
test eax, eax
js 0x40ba82
mov ecx, dword [ebp - 0x1090]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40ba70
push esi
call fcn.00402550
test eax, eax
je 0x40ba70
lea ecx, [ebp - 0x1074]
call fcn.00401750
jmp 0x40baa0
push dword [ebp + edi*4 - 0x1010]
mov ecx, dword [ebp - 0x1098]
call fcn.0040a770
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40baa0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 1
call fcn.00407980
inc edi
cmp edi, ebx
jb 0x40b920
cmp byte [ebp - 0x1075], 0
je 0x40bad7
push 0
push 0
lea eax, [ebp - 0x10d8]
push eax
lea ecx, [ebp - 0x108c]
call fcn.0040b4f0
mov bl, 1
push dword [ebp - 0x10a4]
mov dword [ebp - method.ATL::CTokenPrivileges.virtual_0], vtable.ATL::CTokenPrivileges.0
call fcn.004188a8
add esp, 4
lea ecx, [ebp - 0x10d4]
call fcn.0040a510
jmp 0x40bb0a
push 0x80004005
call fcn.00402180
xor bl, bl
mov ecx, dword [ebp - 0x1084]
mov eax, dword [ebp - 0x1088]
mov dword [ebp - method.ATL::CAccessToken.virtual_0], vtable.ATL::CAccessToken.0
test ecx, ecx
je 0x40bb40
test eax, eax
je 0x40bb36
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x1088]
mov dword [ebp - 0x1084], 0
test eax, eax
je 0x40bb55
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1088], 0
push dword [ebp - 0x1080]
call fcn.00418558
add esp, 4
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.00419146
mov esp, ebp
pop ebp
ret