Function at 0x10005e50
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001da60
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x280], 0
movups xmmword [ebp - 0x28], xmm0
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x10006185
cmp esi, 0xffffffff
je 0x10006185
push 0x228
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x22c
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10005f8e
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006af0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [edi]
mov dword [ebp - 0x268], ecx
cmp eax, ecx
je 0x10005f65
test eax, eax
je 0x10005f5a
cmp eax, 0xffffffff
je 0x10005f5a
push eax
call esi
mov ecx, dword [ebp - 0x268]
mov dword [edi], 0
test ecx, ecx
je 0x10005f65
cmp ecx, 0xffffffff
je 0x10005f65
mov dword [edi], ecx
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x100062ed
cmp eax, 0xffffffff
je 0x100062ed
push eax
call esi
mov dword [ebp - 0x26c], 0
jmp 0x100062ed
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push str.EXPLORER.EXE
push eax
call fcn.1001135c
add esp, 8
test eax, eax
jne 0x10006072
push dword [ebp - 0x258]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10006072
cmp esi, 0xffffffff
je 0x10006072
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006a60
push eax
push 0xe
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [ebp - 0x278]
test eax, eax
mov eax, dword [ebp - 0x27c]
sete byte [ebp - 0x261]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], edx
mov ecx, dword [edx]
cmp ecx, eax
je 0x1000603f
test ecx, ecx
je 0x10006034
cmp ecx, 0xffffffff
je 0x10006034
push ecx
call edi
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x270]
mov dword [edx], 0
test eax, eax
je 0x1000603f
cmp eax, 0xffffffff
je 0x1000603f
mov dword [edx], eax
cmp byte [ebp - 0x261], 0
jne 0x1000606f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xffffffff
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1000606f
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x2c]
je 0x10006113
push esi
call edi
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100060a6
cmp dword [ebp - 0x258], 0
jne 0x1000609e
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005e20
test eax, eax
jne 0x10005f94
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006af0
mov esi, dword [ebp - 0x26c]
mov ecx, esi
push eax
call fcn.10006aa0
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x100060df
cmp eax, 0xffffffff
je 0x100060df
push eax
call edi
mov dword [ebp - 0x270], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100060f5
cmp eax, 0xffffffff
je 0x100060f5
push eax
call edi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
call fcn.10006b20
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000610c
cmp eax, 0xffffffff
je 0x1000610c
push eax
call edi
mov eax, esi
jmp 0x1000631c
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006af0
mov ecx, dword [ebp - 0x26c]
push eax
call fcn.10006aa0
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x1000614a
cmp eax, 0xffffffff
je 0x1000614a
push eax
call edi
mov dword [ebp - 0x274], 0
push esi
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10006163
cmp eax, 0xffffffff
je 0x10006163
push eax
call edi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
call fcn.10006b20
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000617a
cmp eax, 0xffffffff
je 0x1000617a
push eax
call edi
mov eax, dword [ebp - 0x26c]
jmp 0x1000631c
mov esi, dword [0x101b2520]
test esi, esi
jne 0x100061ea
push 0x124
call fcn.1000a8d6
add esp, 4
mov esi, eax
mov dword [ebp - 0x268], esi
push 0x124
push 0
push esi
call fcn.1000d180
add esp, 0xc
mov dword [esi], 0
lea eax, [esi + 4]
mov dword [esi + 0x108], 0xffffffff
push 0x104
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
push str.Create_snapshot_failed.
push 0
push str.CSessionImpersonate::GetProcessTokenHandle
push str.......project_baseSessionImpersonate.cpp
push 0x18
push esi
call fcn.100073e0
mov esi, dword [0x101b2520]
add esp, 0x18
test esi, esi
jne 0x1000626b
push 0x124
call fcn.1000a8d6
add esp, 4
mov esi, eax
mov dword [ebp - 0x284], esi
push 0x124
push 0
push esi
call fcn.1000d180
add esp, 0xc
mov dword [esi], 0
lea eax, [esi + 4]
mov dword [esi + 0x108], 0xffffffff
push 0x104
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
push str.CSessionImpersonate::GetProcessTokenHandle
push str.......project_baseSessionImpersonate.cpp
push 0x18
push ecx
mov ecx, esi
call fcn.10007830
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006af0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [edi]
mov dword [ebp - 0x270], ecx
cmp eax, ecx
je 0x100062d1
test eax, eax
je 0x100062c6
cmp eax, 0xffffffff
je 0x100062c6
push eax
call esi
mov ecx, dword [ebp - 0x270]
mov dword [edi], 0
test ecx, ecx
je 0x100062d1
cmp ecx, 0xffffffff
je 0x100062d1
mov dword [edi], ecx
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x100062ed
cmp eax, 0xffffffff
je 0x100062ed
push eax
call esi
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10006303
cmp eax, 0xffffffff
je 0x10006303
push eax
call esi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
call fcn.10006b20
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000631a
cmp eax, 0xffffffff
je 0x1000631a
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000a89d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc