Function at 0x4bde40
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 0x73e180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2e0
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
push esi
push edi
mov dword [ebp - 0x2c], eax
je 0x4bdeb3
cmp byte [0x8f028c], 0
je 0x4bdeb3
test cl, cl
je 0x4bdf8d
cmp cl, 6
jb 0x4bdf8d
shr ecx, 8
cmp cl, 4
jb 0x4bdf8d
jmp 0x4bdebb
test cl, cl
je 0x4bdf8d
push dword [ebx + 8]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x18], 0x939ed6
mov edi, dword [ebp - 0x18]
push eax
sub edi, 0x1dc586
call fcn.00514b50
add esp, 8
mov edx, eax
mov eax, dword [0x83f0d0]
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 0x4bdef8
sub ecx, esi
cmp dword [edx + 0x14], 0x10
mov esi, edx
jb 0x4bdf0b
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.00513f20
mov edx, dword [ebp - 0x64]
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4bdf7b
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bdf71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be372
push edx
push ecx
call fcn.00512900
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 0x4bdfbc
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0056bca0
mov edx, eax
add esp, 0x10
cmp dword [edx + 0x14], 8
jb 0x4bdfdd
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.00491a40
mov edx, dword [ebp - 0x7c]
add esp, 0x18
cmp edx, 8
jb 0x4be03a
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be030
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be377
push edx
push ecx
call fcn.00512900
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 0x4be229
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 0x4be090
sub ecx, edx
lea eax, [ebp - 0x2cc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00483f80
mov eax, dword [ebx + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4be0bc
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 0x4be0ea
push edx
push ecx
push eax
call fcn.00493310
add esp, 0xc
mov byte [ebp - 0x11], 1
test eax, eax
je 0x4be0ee
mov byte [ebp - 0x11], 0
cmp edi, 8
jb 0x4be122
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4be118
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be372
push ecx
push esi
call fcn.00512900
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x4be212
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 0x4be156
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0056bca0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4be175
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.00498fd0
mov edx, dword [ebp - 0x94]
add esp, 0x18
cmp edx, 8
jb 0x4be1cf
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be1c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be372
push edx
push ecx
call fcn.00512900
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 0x4be212
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x4be206
mov dword [eax], ecx
add dword [edx + 4], 4
jmp 0x4be212
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ecx, edx
call fcn.004bc8f0
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4be072
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0x34], eax
je 0x4be268
cmp byte [0x8f028c], 0
je 0x4be268
test cl, cl
je 0x4be34c
cmp cl, 6
jb 0x4be34c
shr ecx, 8
cmp cl, 4
jb 0x4be34c
jmp 0x4be270
test cl, cl
je 0x4be34c
push dword [ebx + 8]
mov dword [ebp - 0x20], 0x9d67ad
lea eax, [ebp - 0xc0]
mov edi, dword [ebp - 0x20]
sub edi, 0x278dbd
push eax
mov dword [ebp - 0x24], edi
call fcn.00514b50
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 [0x83f0d0]
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 0x4be2c0
sub edx, ecx
mov edi, esi
cmp dword [esi + 0x14], 0x10
jb 0x4be2d3
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.00513f20
mov edx, dword [ebp - 0xac]
add esp, 0x28
cmp edx, 0x10
jb 0x4be34c
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4be342
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be37c
push edx
push ecx
call fcn.00512900
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4be35f
cmp eax, 0xffffffff
je 0x4be35f
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.0070b6e4
call fcn.0070b6e4
call fcn.0070b6e4
int3