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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x50545c]
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.00412290
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x425904
mov dword [ebp - 0x360], str.winlogon.exe
jmp 0x42590e
mov dword [ebp - 0x360], str.explorer.exe
mov ecx, dword [ebp - 0x360]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00412290
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 0x42595a
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 0x42598a
mov dword [ebp - 0x2ec], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x2ec]
jmp 0x425cfc
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 0x4259d5
mov dword [ebp - 0x2f0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x2f0]
jmp 0x425cfc
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 0x425a23
mov dword [ebp - 0x2f4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x2f4]
jmp 0x425cfc
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00425d20
test eax, eax
jne 0x425a6e
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 0x425a6e
mov ecx, dword [ebp - 0x2e8]
cmp ecx, dword [ebp - 0x18]
jne 0x425a6e
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x24], edx
jmp 0x425a82
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x425a23
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 0x425ac9
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x2f8]
jmp 0x425cfc
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.004931a0
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.004931a0
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 0x425b33
jmp 0x425c89
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 0x425b4f
jmp 0x425c89
lea ecx, [ebp - 0x2d0]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x425b6c
jmp 0x425c89
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 0x425c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Adjust_Privilege_value_Error__0x_x
call fcn.00498cd4
add esp, 8
jmp 0x425c89
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 0x425c3c
mov eax, dword [ebp - 0x14]
or eax, 0x400
mov dword [ebp - 0x14], eax
jmp 0x425c46
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 0x425c99
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x425ca9
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2e4], 0
je 0x425cbf
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x425ccf
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.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
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.0049318c
mov esp, ebp
pop ebp
ret 8