Function at 0x65da40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x857060]
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 0x65da79
mov ecx, edi
call fcn.0065d1c0
test al, al
je 0x65e04f
mov ecx, edi
call fcn.0065e130
push 0
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x65db1a
test edi, edi
je 0x65daae
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 0x65df49
cmp dword [0x87d0dc], 0
je 0x65daf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
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 0x65defa
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x65dbc0
test edi, edi
je 0x65db4d
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 0x65df49
cmp dword [0x87d0dc], 0
je 0x65db98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
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 0x65defa
push str.explorer.exe
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x65dbf1
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 0x65dbf1
cmp dword [esp + 0x1c], ebx
je 0x65dc22
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x65dbc0
test edi, edi
je 0x65e000
mov eax, dword [edi]
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push str.ProcessUtils
push 0x799430
push 0x32
push edi
jmp 0x65e049
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
test eax, eax
je 0x65dc01
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 0x65dccd
test edi, edi
je 0x65dc61
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 0x65df49
cmp dword [0x87d0dc], 0
je 0x65dcac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_changeThreadContextToExplorerContext._Unable_to_open_process_token._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
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 0x65defa
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]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x65dde6
test edi, edi
je 0x65dd5f
push dword [esp + 0x1c]
mov eax, dword [edi]
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
push str.ProcessUtils
push 0x799430
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov eax, dword [0x87d0dc]
test eax, eax
je 0x65dda3
push dword [esp + 0x1c]
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65e04f
push dword [esp + 0x1c]
mov eax, dword [ecx]
push str.In_changeThreadContextToExplorerContext._Unable_to_adjust_token_privileges._ErrorCode:__d_.
push str.ProcessUtils
push 0x799430
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x65de72
test edi, edi
je 0x65de0e
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
jmp 0x65df49
cmp dword [0x87d0dc], 0
je 0x65de55
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_process_handle._ErrorCode:__d_.
jmp 0x65defa
lea ecx, [esp + 0x18]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x65df29
test edi, edi
je 0x65de9b
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
jmp 0x65df49
cmp dword [0x87d0dc], 0
je 0x65dee2
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_open_processToken._ErrorCode:__d_.
push str.ProcessUtils
push 0x799430
push 0x32
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x65dfe9
test edi, edi
je 0x65df73
mov esi, dword [edi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push str.ProcessUtils
push 0x799430
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
cmp dword [0x87d0dc], 0
je 0x65dfba
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65e04f
mov esi, dword [esi]
call ebx
push eax
push str.In_changeThreadContextToExplorerContext._Cant_ImpersonateLoggedOnUser._ErrorCode:__d_.
push str.ProcessUtils
push 0x799430
push 0x32
push dword [0x87d0e0]
jmp 0x65df56
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov eax, dword [0x87d0dc]
test eax, eax
je 0x65e02b
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call eax
jmp 0x65df59
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65e04f
mov eax, dword [ecx]
push str.In_changeThreadContextToExplorerContext._Unable_to_find_explorer_processID
push str.ProcessUtils
push 0x799430
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [esp + 0x264]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret