Function at 0x421af0
Capabilities:
Acquire debug privileges
Check if file exists
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0940
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x44], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411290
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x421b84
mov dword [ebp - 0x360], str.winlogon.exe
jmp 0x421b8e
mov dword [ebp - 0x360], str.explorer.exe
mov ecx, dword [ebp - 0x360]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00411290
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x320], eax
xor ecx, ecx
cmp dword [ebp - 0x320], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x421bda
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421c0a
mov dword [ebp - 0x2ec], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov eax, dword [ebp - 0x2ec]
jmp 0x421f7c
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x18], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x421c55
mov dword [ebp - 0x2f0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov eax, dword [ebp - 0x2f0]
jmp 0x421f7c
mov dword [ebp - 0x274], 0x22c
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x421ca3
mov dword [ebp - 0x2f4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov eax, dword [ebp - 0x2f4]
jmp 0x421f7c
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00421fa0
test eax, eax
jne 0x421cee
mov dword [ebp - 0x2e8], 0
lea edx, [ebp - 0x2e8]
push edx
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x421cee
mov ecx, dword [ebp - 0x2e8]
cmp ecx, dword [ebp - 0x18]
jne 0x421cee
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x24], edx
jmp 0x421d02
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x421ca3
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x24], 0
jne 0x421d49
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov eax, dword [ebp - 0x2f8]
jmp 0x421f7c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.WTSAPI32.dll_WTSQueryUserToken
mov dword [ebp - 0x14], 0x30
push 0x44
push 0
lea edx, [ebp - 0x2c4]
push edx
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x2c4], 0x44
mov dword [ebp - 0x2bc], str.winsta0default
push 0x10
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.0048ac80
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x421db3
jmp 0x421f09
lea edx, [ebp - 0x2c]
push edx
push 0x201eb
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x421dcf
jmp 0x421f09
lea ecx, [ebp - 0x2d0]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x421dec
jmp 0x421f09
mov dword [ebp - 0x2e0], 1
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d4], 2
lea ecx, [ebp - 0x2e4]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c8], eax
push 4
mov eax, dword [ebp - 0x18]
push eax
push 0xc
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 0
push 0
push 0x10
lea edx, [ebp - 0x2e0]
push edx
push 0
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x421e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Adjust_Privilege_value_Error__0x_x
call fcn.0048eaf3
add esp, 8
jmp 0x421f09
mov dword [ebp - 0x27c], 0
push 1
mov ecx, dword [ebp - 0x2e4]
push ecx
lea edx, [ebp - 0x27c]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x421ebc
mov eax, dword [ebp - 0x14]
or eax, 0x400
mov dword [ebp - 0x14], eax
jmp 0x421ec6
mov dword [ebp - 0x27c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x350], ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x2c4]
push eax
push 0
mov ecx, dword [ebp - 0x27c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x350]
push eax
push 0
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x20], 0
je 0x421f19
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x421f29
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2e4], 0
je 0x421f3f
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x421f4f
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret 8