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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c0], 0
call fcn.1003ffc0
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
lea eax, [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x100401fc
mov dword [ebp - 0x2cc], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0xffffffff
jne 0x100400fd
xor al, al
jmp 0x1004041e
mov dword [ebp - 0x294], 0x22c
lea edx, [ebp - 0x294]
push edx
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10040184
push str.explorer.exe
lea ecx, [ebp - 0x270]
push ecx
call fcn.1004c866
add esp, 8
test eax, eax
jne 0x1004016c
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1004016c
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x2d0]
jne 0x1004016c
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x2cc], edx
jmp 0x10040184
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1004011f
mov edx, dword [ebp - 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], 0
jne 0x100401a1
xor al, al
jmp 0x1004041e
mov eax, dword [ebp - 0x2cc]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
jne 0x100401cb
xor al, al
jmp 0x1004041e
lea ecx, [ebp - 0x298]
push ecx
push 0xf00ff
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100401fc
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1004041e
cmp dword [ebp - 0x298], 0
jne 0x1004020c
xor al, al
jmp 0x1004041e
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp - 0x2a4]
push edx
push 0x13
mov eax, dword [ebp - 0x298]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jne 0x1004029a
lea ecx, [ebp - 0x14]
push ecx
push 0x100a6b1c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10040279
mov dword [ebp - 0x24], 1
mov edx, 0xc
imul edx, edx, 0
mov eax, dword [ebp - 0x14]
mov dword [ebp + edx - 0x20], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp + edx - 0x1c], ecx
mov edx, 0xc
imul edx, edx, 0
mov dword [ebp + edx - 0x18], 2
lea eax, [ebp - 0x29c]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x100402a6
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2c8], 0x2000000
push 1
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100402e8
mov edx, dword [ebp - 0x2c8]
or edx, 0x400
mov dword [ebp - 0x2c8], edx
jmp 0x100402f2
mov dword [ebp - 0x2a0], 0
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.1004f5f0
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
test edx, edx
je 0x10040325
mov eax, 5
mov word [ebp - 0x38], ax
jmp 0x1004032b
xor ecx, ecx
mov word [ebp - 0x38], cx
xor edx, edx
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a8], edx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
mov edx, dword [ebp - 0x2a0]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
push 0
mov ecx, dword [ebp - 0x29c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2b4], 0
je 0x100403a7
mov edx, dword [ebp - 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x29c], 0
je 0x100403bd
mov ecx, dword [ebp - 0x29c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x100403d3
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x298], 0
je 0x100403e9
mov eax, dword [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2a0], 0
je 0x100403ff
mov ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x2c0], 0
je 0x10040411
mov byte [ebp - 0x2b5], 1
jmp 0x10040418
mov byte [ebp - 0x2b5], 0
mov al, byte [ebp - 0x2b5]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret