Function at 0x4b7060
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 0x731ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2e0
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
push esi
push edi
mov dword [ebp - 0x2c], eax
je 0x4b70d3
cmp byte [0x8e0c40], 0
je 0x4b70d3
test cl, cl
je 0x4b71ad
cmp cl, 6
jb 0x4b71ad
shr ecx, 8
cmp cl, 4
jb 0x4b71ad
jmp 0x4b70db
test cl, cl
je 0x4b71ad
push dword [ebx + 8]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x18], 0x86510e
mov edi, dword [ebp - 0x18]
push eax
sub edi, 0x115b16
call fcn.005060a0
add esp, 8
mov edx, eax
mov eax, dword [0x8300d0]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7118
sub ecx, esi
cmp dword [edx + 0x14], 0x10
mov esi, edx
jb 0x4b712b
mov esi, dword [edx]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x30]
push 1
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], esi
push ecx
push edi
push 4
push dword [ebp - 0x18]
mov dword [eax], 0xd
push dword [ebp - 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00505470
mov edx, dword [ebp - 0x64]
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4b719b
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b7191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b7592
push edx
push ecx
call fcn.00503df0
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4b71dc
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0055f420
mov edx, eax
add esp, 0x10
cmp dword [edx + 0x14], 8
jb 0x4b71fd
mov edx, dword [edx]
push edx
cmp esi, 0xffffffff
push str.failed_to_create_snapshot:__s
sete al
push eax
mov eax, dword [ebx + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x4a
push eax
call fcn.0048c050
mov edx, dword [ebp - 0x7c]
add esp, 0x18
cmp edx, 8
jb 0x4b725a
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b7250
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b7597
push edx
push ecx
call fcn.00503df0
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x2f0], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b7449
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x4c], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b72b0
sub ecx, edx
lea eax, [ebp - 0x2cc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0047e880
mov eax, dword [ebx + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4b72dc
mov ecx, dword [eax]
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
mov esi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x50]
cmovae eax, esi
cmp edx, dword [edi + 0x10]
mov edi, dword [ebp - 0x4c]
jne 0x4b730a
push edx
push ecx
push eax
call fcn.0048d5c0
add esp, 0xc
mov byte [ebp - 0x11], 1
test eax, eax
je 0x4b730e
mov byte [ebp - 0x11], 0
cmp edi, 8
jb 0x4b7342
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4b7338
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b7592
push ecx
push esi
call fcn.00503df0
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x4b7432
push dword [ebp - 0x2e8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4b7376
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0055f420
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4b7395
mov eax, dword [eax]
push eax
mov eax, dword [ebx + 4]
push str.failed_to_access_client_process_info:__s
push esi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x55
push eax
call fcn.00493280
mov edx, dword [ebp - 0x94]
add esp, 0x18
cmp edx, 8
jb 0x4b73ef
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b73e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b7592
push edx
push ecx
call fcn.00503df0
add esp, 8
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
test ecx, ecx
je 0x4b7432
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x4b7426
mov dword [eax], ecx
add dword [edx + 4], 4
jmp 0x4b7432
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ecx, edx
call fcn.004b5b10
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b7292
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x34], eax
je 0x4b7488
cmp byte [0x8e0c40], 0
je 0x4b7488
test cl, cl
je 0x4b756c
cmp cl, 6
jb 0x4b756c
shr ecx, 8
cmp cl, 4
jb 0x4b756c
jmp 0x4b7490
test cl, cl
je 0x4b756c
push dword [ebx + 8]
mov dword [ebp - 0x20], 0x8c058d
lea eax, [ebp - 0xc0]
mov edi, dword [ebp - 0x20]
sub edi, 0x170ef5
push eax
mov dword [ebp - 0x24], edi
call fcn.005060a0
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0xc]
mov edx, edi
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
lea ecx, [edx + 1]
sar eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [0x8300d0]
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x34], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4b74e0
sub edx, ecx
mov edi, esi
cmp dword [esi + 0x14], 0x10
jb 0x4b74f3
mov edi, dword [esi]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x20]
push 1
sub esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, esp
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x40], edi
push edx
push dword [ebp - 0x24]
mov dword [eax], 0xd2
push 4
push dword [ebp - 0x34]
mov dword [eax + 4], 0
push dword [ebp - 0x30]
mov dword [eax + 8], ecx
call fcn.00505470
mov edx, dword [ebp - 0xac]
add esp, 0x28
cmp edx, 0x10
jb 0x4b756c
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b7562
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b759c
push edx
push ecx
call fcn.00503df0
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b757f
cmp eax, 0xffffffff
je 0x4b757f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006fee64
call fcn.006fee64
call fcn.006fee64
int3