Function at 0x10003950
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x23c
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
push str._SessionMgr__find_Session_by_EPS
push 0x114
mov edi, ecx
push str..SessionMgr.c
push 2
mov ecx, str.CheckSessionByEPS
call fcn.1000be40
push str._SessionMgr__find_Session_by_EPS
push 0x114
push str..SessionMgr.c
push 2
mov ecx, str.CheckSessionByEPS
call fcn.1000bb50
push 0x128
xor ebx, ebx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.1001f410
add esp, 0x2c
push ebx
push 2
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov ebp, eax
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000385d
push 0xff
lea edx, [esp + 0x145]
push ebx
push edx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x14c], bl
call fcn.1001f410
add esp, 0xc
lea eax, [esp + 0x3c]
push str.Explorer.exe
push eax
call fcn.10019a8f
add esp, 8
test eax, eax
jne 0x1000384a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1000384a
cmp edi, ebx
je 0x100037b7
mov dword [edi], 1
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x140]
push eax
push ecx
call fcn.1000cea0
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax*4]
add esp, 8
cmp dword [edx*4 + 0x10057ee0], ebx
jne 0x1000384a
lea ecx, [esp + 0x140]
push ecx
push eax
push str._SessionMgr__EPS_find_Session:__d__is_Logon__UserName:__s_
push 0x12a
push str..SessionMgr.c
push 3
mov ecx, str.CheckSessionByEPS
call fcn.1000be40
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x158]
push edx
push eax
push str._SessionMgr__EPS_find_Session:__d__is_Logon__UserName:__s_
push 0x12a
push str..SessionMgr.c
push 3
mov ecx, str.CheckSessionByEPS
call fcn.1000bb50
mov esi, dword [esp + 0x44]
add esp, 0x30
call fcn.10003de0
test eax, eax
je 0x1000384a
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*4]
mov dword [ecx*4 + 0x10057ee0], 1
lea edx, [esp + 0x18]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000375a
xor esi, esi
mov edi, 0x10057ee0
cmp dword [edi], 1
jne 0x1000390c
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100038c3
lea esp, [esp]
lea ecx, [esp + 0x3c]
push str.Explorer.exe
push ecx
mov dword [esp + 0x1c], ebx
call fcn.10019a8f
add esp, 8
test eax, eax
jne 0x100038b4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x100038b4
cmp dword [esp + 0x14], esi
je 0x1000390c
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003880
push esi
push str._SessionMgr__EPS_find_Session:__d__is_Logoff
push 0x14c
push str..SessionMgr.c
push 3
mov ecx, str.CheckSessionByEPS
call fcn.1000be40
add esp, 0x14
push esi
push str._SessionMgr__EPS_find_Session:__d__is_Logoff
push 0x14c
push str..SessionMgr.c
push 3
mov ecx, str.CheckSessionByEPS
call fcn.1000bb50
add esp, 0x14
push esi
call fcn.10004020
add esp, 4
mov dword [edi], ebx
add edi, 0x14
add esi, 1
cmp edi, 0x1006bee0
jl 0x10003864
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001829e
add esp, 0x23c
ret
sub esp, 0xc
cmp dword [0x1006bf08], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
je 0x100039ac
push str._SessionMgr__WTS_not_working__Just_use_EPS
push 0x167
push str..SessionMgr.c
push 0
mov ecx, str.CheckSessionChange
call fcn.1000be40
push str._SessionMgr__WTS_not_working__Just_use_EPS
push 0x167
push str..SessionMgr.c
push 0
mov ecx, str.CheckSessionChange
call fcn.1000bb50
xor ecx, ecx
add esp, 0x2c
jmp 0x100036d0
lea eax, [esp + 4]
push eax
call fcn.10003380
add esp, 4
test eax, eax
jne 0x10003a07
push str._SessionMgr__WTS_not_working__Just_use_EPS
push 0x172
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000be40
push str._SessionMgr__WTS_not_working__Just_use_EPS
push 0x172
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000bb50
mov dword [0x1006bf08], 1
xor ecx, ecx
add esp, 0x2c
jmp 0x100036d0
cmp dword [esp + 4], 0
jne 0x10003a9e
push str._SessionMgr__WTS_can_not_enum_session__Try_EPS
push 0x17d
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000be40
push str._SessionMgr__WTS_can_not_enum_session__Try_EPS
push 0x17d
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000bb50
add esp, 0x20
lea ecx, [esp + 8]
call 0x100036d0
cmp dword [esp + 8], 0
je 0x10003a9e
push str._SessionMgr__WTS_can_not_enum_session__Just_use_EPS
push 0x180
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000be40
push str._SessionMgr__WTS_can_not_enum_session__Just_use_EPS
push 0x180
push str..SessionMgr.c
push 1
mov ecx, str.CheckSessionChange
call fcn.1000bb50
add esp, 0x20
mov dword [0x1006bf08], 1
add esp, 0xc
ret