Function at 0x10008650
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000891a
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x43c], 0x22c
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100086eb
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x418]
push eax
push str.xbservice.exe
call edi
add esp, 8
test eax, eax
je 0x100087ca
lea eax, [ebp - 0x43c]
push eax
push esi
call ebx
test eax, eax
jne 0x100086c0
xor ebx, ebx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000891a
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1000891a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x10008900
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x10008900
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
add esp, 8
mov dword [ebp - 0x440], eax
test eax, eax
je 0x10008900
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008781
mov eax, dword [0x1000f0c0]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x100087d5
cmp eax, 7
mov dword [0x1000f0bc], ecx
lea esi, [ecx + ecx]
mov edi, 0x1000f0ac
cmova edi, dword [0x1000f0ac]
lea eax, [ebp - 0x20c]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x100087f4
mov ebx, dword [ebp - 0x434]
jmp 0x100086e9
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x444], 0
push eax
push dword [ebp - 0x444]
push ecx
mov ecx, 0x1000f0ac
call fcn.10008000
mov eax, dword [ebp - 0x440]
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008810
mov eax, dword [0x1000f0a8]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x10008859
cmp eax, 7
mov dword [0x1000f0a4], ecx
lea esi, [ecx + ecx]
mov edi, 0x1000f094
cmova edi, dword [0x1000f094]
lea eax, [ebp - 0x20c]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10008878
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x440], 0
push eax
push dword [ebp - 0x440]
push ecx
mov ecx, 0x1000f094
call fcn.10008000
mov edx, dword [0x1000f0a8]
mov eax, edx
mov ecx, dword [0x1000f0a4]
sub eax, ecx
cmp eax, 0xd
jb 0x100088db
cmp edx, 7
lea edi, [ecx + 0xd]
mov esi, 0x1000f094
mov dword [0x1000f0a4], edi
cmova esi, dword [0x1000f094]
push 0x1a
push str.xbstarter.exe
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
push ebx
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
push 0xd
push str.xbstarter.exe
mov byte [ebp - 0x440], 0
mov ecx, 0x1000f094
push dword [ebp - 0x440]
push 0xd
call fcn.10009480
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret