Function at 0x4044b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4154d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x421024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x2bc], ebx
mov esi, ecx
mov dword [ebp - 0x2c0], esi
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp word [ebx], ax
jne 0x40450e
xor ecx, ecx
jmp 0x404522
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404513
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.00402e80
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [esi], ax
jne 0x404550
xor ecx, ecx
jmp 0x404564
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404555
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402e80
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004078c0
mov esi, eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004078c0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x40459a
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x4045a2
mov eax, dword [eax]
push esi
push eax
push str.LaunchAppIntoDifferentSession_Enter:__s___s
push str.StartupAgency
call fcn.00401b30
mov eax, dword [ebp - 0x48]
add esp, 0x10
cmp eax, 0x10
jb 0x4045c8
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.00403580
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4045ec
inc eax
push eax
push dword [ebp - 0x74]
call fcn.00403580
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 8
jb 0x404610
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00403520
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x404636
inc eax
push eax
push dword [ebp - 0x44]
call fcn.00403520
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 4], 4
call fcn.00407f80
mov ebx, eax
push ebx
push str.Received_session_id__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40469f
push str.Cannot_create_snapshot
push str.StartupAgency
call fcn.00401aa0
add esp, 8
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x2b0]
push 0x41fa04
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4046e8
push str.Cannot_retrieve_process
push str.StartupAgency
call fcn.00401aa0
add esp, 8
mov dword [ebp - 0x2b4], 0
lea eax, [ebp - 0x2b4]
push 0x41fa04
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
xor edi, edi
mov dword [ebp - 0x2ac], edi
lea eax, [ebp - 0x27c]
push str.winlogon.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x404754
push dword [ebp - 0x298]
push str.winlogon_found___d_
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
mov dword [ebp - 0x2a8], edi
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x404754
cmp dword [ebp - 0x2a8], ebx
jne 0x404754
mov edi, dword [ebp - 0x298]
mov dword [ebp - 0x2ac], edi
jmp 0x404766
lea eax, [ebp - 0x2a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4046f0
test edi, edi
jne 0x404793
push str.Cant_find_winlogon
push str.StartupAgency
call fcn.00401aa0
add esp, 8
mov dword [ebp - 0x2b8], edi
lea eax, [ebp - 0x2b8]
push 0x41fa04
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Queryin_Token
push str.StartupAgency
call fcn.00401b30
add esp, 8
xor esi, esi
lea eax, [ebp - 0x2a4]
push eax
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, eax
push edi
push str.QueryUserToken_:__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
test edi, edi
jne 0x404824
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
inc esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x258
jl 0x4047a7
xor ebx, ebx
push str.Leaving_LaunchApp_Function
push str.StartupAgency
call fcn.00401b30
mov ecx, dword [ebp - 0x2a4]
add esp, 8
test ecx, ecx
je 0x404820
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x404867
cmp dword [ebp - 0x2a4], 0
je 0x4047fb
push dword [ebp - 0x2bc]
mov edx, dword [ebp - 0x2ac]
push dword [ebp - 0x2c0]
push ecx
mov ecx, ebx
call fcn.00404890
add esp, 0xc
mov ebx, eax
jmp 0x4047fd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414132
mov esp, ebp
pop ebp
ret