Function at 0x5f15b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x7ca00c]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x5f15e8
mov ecx, edi
call fcn.005f11c0
test al, al
je 0x5f1bc6
mov ecx, edi
call fcn.005f1ca0
push 0
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f1693
test edi, edi
je 0x5f161d
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
jmp 0x5f1aae
cmp dword [0x7eb9f0], 0
je 0x5f1672
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
jmp 0x5f1a76
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
jne 0x5f1740
test edi, edi
je 0x5f16c6
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
jmp 0x5f1aae
cmp dword [0x7eb9f0], 0
je 0x5f171b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
jmp 0x5f1a76
push str.explorer.exe
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x5f1771
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
je 0x5f1771
cmp dword [esp + 0x14], ebx
je 0x5f17a2
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x5f1740
test edi, edi
je 0x5f1b6f
mov esi, dword [edi]
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push str.ProcessUtils
push 0x701e7c
push 0x32
push edi
jmp 0x5f1bb6
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x5f1781
lea eax, [esp + 0xc]
push eax
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5f1853
test edi, edi
je 0x5f17dd
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Unable_to_open_process_token._ErrorCode:__d_.
jmp 0x5f1aae
cmp dword [0x7eb9f0], 0
je 0x5f1832
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Unable_to_open_process_token._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Unable_to_open_process_token._ErrorCode:__d_.
jmp 0x5f1a76
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 2
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [esp + 0xc]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
jne 0x5f1935
test edi, edi
je 0x5f18be
push dword [esp + 0x14]
mov esi, dword [edi]
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
jmp 0x5f1aae
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5f190b
push dword [esp + 0x14]
mov ecx, esi
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5f1bc6
push dword [esp + 0x14]
mov esi, dword [eax]
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
push str.ProcessUtils
push 0x701e7c
push 0x32
push eax
jmp 0x5f1abb
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
jne 0x5f19d8
test edi, edi
je 0x5f1962
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
jmp 0x5f1aae
cmp dword [0x7eb9f0], 0
je 0x5f19b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
jmp 0x5f1a76
lea ecx, [esp + 0x10]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5f1a8a
test edi, edi
je 0x5f1a05
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
jmp 0x5f1aae
cmp dword [0x7eb9f0], 0
je 0x5f1a5a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push str.ProcessUtils
push 0x701e7c
push 0x32
push dword [0x7eb9f4]
jmp 0x5f1abb
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x5f1b58
test edi, edi
je 0x5f1ae2
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push str.ProcessUtils
push 0x701e7c
push 0x32
push edi
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
cmp dword [0x7eb9f0], 0
je 0x5f1b37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5f1bc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
jmp 0x5f1a76
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5f1b99
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push 0x701e7c
push 0x701e7c
push str.ProcessUtils
push 0x7721a4
push 0x32
jmp 0x5f1abe
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5f1bc6
mov esi, dword [eax]
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push str.ProcessUtils
push 0x701e7c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
mov ecx, dword [esp + 0x25c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret