Function at 0x51bbb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x60a070]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x51bc9d
mov ecx, edi
call fcn.0051b020
test al, al
jne 0x51bc9d
test edi, edi
je 0x51bc22
mov eax, dword [edi]
push str.In_changeThreadContextToExplorerContext._Ignoring_call__current_process_is_not_a_SYSTEM_ADMIN_process
push str.ProcessUtils
push 0x5c0ec0
push 0xa
push edi
call dword [eax + 0x34]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x615408]
test eax, eax
je 0x51bc62
push str.In_changeThreadContextToExplorerContext._Ignoring_call__current_process_is_not_a_SYSTEM_ADMIN_process
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0xa
call eax
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51bc4b
mov eax, dword [ecx]
push str.In_changeThreadContextToExplorerContext._Ignoring_call__current_process_is_not_a_SYSTEM_ADMIN_process
push str.ProcessUtils
push 0x5c0ec0
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
call fcn.0051c390
mov esi, eax
test edi, edi
je 0x51bcc2
mov ecx, dword [edi]
push esi
push str.In_changeThreadContextToExplorerContext._Active_user_sessionID::__d
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push edi
call dword [ecx + 0x34]
jmp 0x51bd10
mov eax, dword [0x615408]
test eax, eax
je 0x51bcee
push esi
push str.In_changeThreadContextToExplorerContext._Active_user_sessionID::__d
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x51bd13
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51bd13
mov eax, dword [ecx]
push esi
push str.In_changeThreadContextToExplorerContext._Active_user_sessionID::__d
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x51bdf6
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
je 0x51bd68
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
cmp dword [0x615408], 0
je 0x51bdb1
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
call ebx
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov esi, dword [0x61540c]
test esi, esi
je 0x51bddd
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
add esp, 0x18
call ebx
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
jne 0x51be83
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
je 0x51be31
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push edi
jmp 0x51bdd7
cmp dword [0x615408], 0
je 0x51be66
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
jmp 0x51bddd
mov esi, dword [0x61540c]
test esi, esi
je 0x51bddd
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
jmp 0x51bdc5
push str.explorer.exe
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x51beb4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
je 0x51beb4
cmp dword [esp + 0x1c], esi
je 0x51bedb
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x51be83
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
test edi, edi
je 0x51befe
mov eax, dword [edi]
push ebx
push str.In_changeThreadContextToExplorerContext.explorer_process_ID:__d.
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push edi
jmp 0x51bf49
mov eax, dword [0x615408]
test eax, eax
je 0x51bf2a
push ebx
push str.In_changeThreadContextToExplorerContext.explorer_process_ID:__d.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x51bf4f
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51bf4f
mov eax, dword [ecx]
push ebx
push str.In_changeThreadContextToExplorerContext.explorer_process_ID:__d.
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
test ebx, ebx
je 0x51bc4b
lea eax, [esp + 0x14]
push eax
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x51bf8c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 2
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x51bc4b
push dword [esp + 0x10]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
jne 0x51c096
test edi, edi
je 0x51c01d
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push edi
call dword [esi + 0x34]
jmp 0x51bc48
cmp dword [0x615408], 0
je 0x51c064
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov esi, dword [0x61540c]
test esi, esi
je 0x51bc4b
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
jmp 0x51bc48
lea ecx, [esp + 0x18]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x51c133
test edi, edi
je 0x51c0cf
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push edi
call dword [esi + 0x34]
jmp 0x51bc48
cmp dword [0x615408], 0
je 0x51c116
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov esi, dword [0x61540c]
test esi, esi
je 0x51bc4b
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
jmp 0x51c07c
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x51c1cc
test edi, edi
je 0x51c168
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push str.ProcessUtils
push 0x5c0ec0
push 0x32
push edi
call dword [esi + 0x34]
jmp 0x51bc48
cmp dword [0x615408], 0
je 0x51c1af
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov esi, dword [0x61540c]
test esi, esi
je 0x51bc4b
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
jmp 0x51c07c
test edi, edi
je 0x51c201
mov eax, dword [edi]
push str.In_changeThreadContextToExplorerContext._Success_in_changingContext.
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push edi
call dword [eax + 0x34]
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x615408]
test eax, eax
je 0x51c241
push str.In_changeThreadContextToExplorerContext._Success_in_changingContext.
push 0x5c0ec0
push 0x5c0ec0
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51c265
mov eax, dword [ecx]
push str.In_changeThreadContextToExplorerContext._Success_in_changingContext.
push str.ProcessUtils
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [esp + 0x264]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret