Function at 0x40bb70
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x23c]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x24c], ebx
xor edi, edi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40bc98
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40bc85
lea eax, [ebp - 0x238]
push eax
push esi
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40bc4b
jmp 0x40bbf0
lea ecx, [ebp - 0x214]
push str.explorer.exe
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40bc32
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x254]
push edx
push eax
mov dword [ebp - 0x254], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40bc32
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x254], ecx
je 0x40bc45
lea edx, [ebp - 0x238]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bbf0
jmp 0x40bc4b
mov edi, dword [ebp - 0x230]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x40bc85
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x40bc85
lea eax, [ebp - 0x23c]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bc9e
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
je 0x40bc82
lea ecx, [ebp - 0x24c]
push ecx
push 4
lea edx, [ebp - 0x250]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40bcf8
lea eax, [ebp - 0x258]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x240]
push ecx
push 1
push 1
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x40bd04
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
push 1
push ecx
lea edx, [ebp - 0x248]
push edx
mov dword [ebp - 0x248], ebx
mov esi, 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40bd2e
mov esi, 0x2000400
push 0x44
lea eax, [ebp - 0x2b0]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp - 0x244]
lea edx, [ebp - 0x2b0]
push edx
mov edx, dword [ebp - 0x240]
push ebx
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x248]
push eax
push esi
push ebx
push ebx
push ebx
push ecx
push ebx
push edx
mov dword [ebp - 0x2b0], 0x44
mov dword [ebp - 0x284], 0x81
mov word [ebp - 0x280], bx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x40bdbd
push eax
call esi
mov eax, dword [ebp - 0x264]
cmp eax, ebx
je 0x40bdca
push eax
call esi
mov eax, dword [ebp - 0x240]
cmp eax, ebx
je 0x40bdd7
push eax
call esi
cmp edi, ebx
je 0x40bdde
push edi
call esi
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
je 0x40bdeb
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x244]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f808
mov esp, ebp
pop ebp
ret