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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4255c7
mov eax, dword fs:[0]
push eax
mov eax, 0x10cc
call fcn.00418de0
mov eax, dword [0x433610]
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 edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x1094], eax
mov dword [ebp - 0x1098], edi
mov dword [ebp - 0x1090], ecx
mov dword [ebp - method.ATL::CAccessToken.virtual_0], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x1084], esi
mov dword [ebp - 0x1080], esi
mov dword [ebp - 0x107c], esi
push 0x28
lea ecx, [ebp - 0x1088]
mov dword [ebp - 4], esi
call fcn.00409430
test al, al
je 0x40ba57
lea ecx, [ebp - 0x10d8]
call fcn.0040a670
push esi
lea edx, [ebp - 0x10d8]
push edx
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 1
call fcn.0040b760
mov byte [ebp - 0x1071], al
mov eax, dword [edi]
cmp eax, esi
je 0x40ba11
push eax
call fcn.00417701
add esp, 4
mov dword [edi], esi
lea eax, [ebp - 0x109c]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40ba69
mov edx, dword [ebp - 0x10a4]
push edx
mov dword [ebp - method.ATL::CTokenPrivileges.virtual_0], vtable.ATL::CTokenPrivileges.0
call fcn.00417701
add esp, 4
lea ecx, [ebp - 0x10d4]
call fcn.0040a5f0
lea ecx, [ebp - 0x1088]
call fcn.00409e20
xor al, al
jmp 0x40bc96
mov edi, dword [ebp - 0x109c]
shr edi, 2
cmp edi, esi
jbe 0x40bbfa
mov bl, 3
lea esp, [esp]
lea ecx, [ebp - 0x1070]
call fcn.0040a140
mov ecx, dword [ebp + esi*4 - 0x1010]
lea eax, [ebp - 0x1070]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.0040a8c0
add esp, 8
test al, al
je 0x40bbe0
mov edx, dword [0x4335d8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4335d8
call eax
add eax, 0x10
mov dword [ebp - 0x1078], eax
mov edx, dword [ebp + esi*4 - 0x1010]
lea ecx, [ebp - 0x1078]
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.0040abd0
add esp, 8
test al, al
je 0x40bbba
mov eax, dword [ebp - 0x1078]
cmp dword [eax - 0xc], 0
je 0x40bb47
push eax
lea ecx, [ebp - 0x108c]
call fcn.00403a00
lea ecx, [ebp - 0x108c]
mov byte [ebp - 4], 4
call fcn.00407b20
mov eax, dword [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x1078]
call fcn.004039b0
mov eax, dword [ebp - 0x108c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x1028], 0
je 0x40bbba
lea ecx, [ebp - 0x106c]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40bbba
mov ecx, dword [ebp - 0x1094]
lea edx, [ebp - 0x1070]
push edx
call fcn.0040a0a0
test eax, eax
js 0x40bbba
mov ecx, dword [ebp - 0x1090]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40bba7
mov edx, dword [ebp - 0x1078]
push edx
call fcn.00409710
test eax, eax
je 0x40bba7
lea ecx, [ebp - 0x1078]
call fcn.00401ad0
jmp 0x40bbe0
mov eax, dword [ebp + esi*4 - 0x1010]
mov ecx, dword [ebp - 0x1098]
push eax
call fcn.00409f70
mov eax, dword [ebp - 0x1078]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 1
call fcn.004073d0
inc esi
cmp esi, edi
jb 0x40ba80
xor esi, esi
cmp byte [ebp - 0x1071], 0
je 0x40bc17
push esi
push esi
lea ecx, [ebp - 0x10d8]
push ecx
lea ecx, [ebp - 0x1088]
call fcn.0040b290
mov edx, dword [ebp - 0x10a4]
push edx
mov dword [ebp - method.ATL::CTokenPrivileges.virtual_0], vtable.ATL::CTokenPrivileges.0
call fcn.00417701
add esp, 4
lea ecx, [ebp - 0x10d4]
call fcn.0040a5f0
mov ecx, dword [ebp - 0x1080]
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.ATL::CAccessToken.virtual_0], vtable.ATL::CAccessToken.0
cmp ecx, esi
je 0x40bc74
cmp eax, esi
je 0x40bc6e
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x1080], esi
cmp eax, esi
je 0x40bc85
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x1084], esi
mov eax, dword [ebp - 0x107c]
push eax
call fcn.004176f6
add esp, 4
mov al, 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.00418330
mov esp, ebp
pop ebp
ret