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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4465cb
mov eax, dword [ebp - 0x14]
jmp 0x44689f
mov dword [ebp - 0x248], 0
push 0x228
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44663e
push str.explorer.exe
lea eax, [ebp - 0x224]
push eax
call fcn.0046ff07
add esp, 8
test eax, eax
jne 0x44662a
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x446609
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jne 0x44665d
mov eax, dword [ebp - 0x14]
jmp 0x44689f
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44667f
mov eax, dword [ebp - 0x14]
jmp 0x44689f
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0xf00ff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44688b
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x250], 0
lea edx, [ebp - 0x250]
push edx
push 4
lea eax, [ebp - 0x2c0]
push eax
push 0x13
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x2c0], 0
jne 0x4466f6
lea edx, [ebp - 0x2c0]
push edx
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [ebp - 0x2bc], 0
xor ecx, ecx
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2b0], ecx
lea edx, [ebp - 0x2b8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x44675c
mov dword [ebp - 0x2bc], 1
mov dword [ebp - 0x2b0], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x2bc]
push eax
push 0
mov ecx, dword [ebp - 0x2c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x24c], 0x2000000
mov dword [ebp - 0x2ac], 0
push 1
mov edx, dword [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x44679c
mov ecx, dword [ebp - 0x24c]
or ecx, 0x400
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x2a8], 0
push 0x40
push 0
lea edx, [ebp - 0x2a4]
push edx
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x2a8], 0x44
mov dword [ebp - 0x27c], 0x81
xor eax, eax
mov word [ebp - 0x278], ax
mov dword [ebp - 0x260], 0
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x2a8]
push eax
push 0
mov ecx, dword [ebp - 0x2ac]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
push 1
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c0]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x446863
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x446856
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x260]
mov dword [ecx], edx
jmp 0x446863
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c0], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret