Function at 0x411140
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4f14
mov eax, dword fs:[0]
push eax
sub esp, 0xbb8
mov eax, dword [0x51eee0]
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, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xb78]
mov dword [ebp - 0xb68], ebx
call fcn.00442860
push 0
mov dword [ebp - 4], 0
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0xb50], edi
cmp edi, 0xffffffff
jne 0x41127e
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb40], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb40]
push str.enumProcess_CreateToolhelp32Snapshot__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 3
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xb78]
mov byte [ebp - 4], 4
call fcn.00442d00
lea ecx, [ebp - 0xb88]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 3
call fcn.00442a70
cmp dword [ebp - 0x8d8], 0x10
jb 0x41124f
push dword [ebp - 0x8ec]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0xb40]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411275
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41188d
push 0x22c
lea eax, [ebp - 0xb38]
push 0
push eax
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0xb38]
push eax
push edi
mov dword [ebp - 0xb38], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x411934
or ebx, 0xffffffff
jmp 0x4112c0
push dword [ebp - 0xb30]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x411710
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x8d4], ax
lea eax, [ebp - 0x8d2]
push eax
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0x8d4]
push 0x800
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x41137b
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb44], eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb44]
push str.GetProcessImageFileName__d
push eax
call fcn.00406160
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0xb44]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411801
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411801
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb40], eax
lea eax, [ebp - 0x8d4]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x4113ca
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4113f5
push esi
push eax
lea ecx, [ebp - 0xb40]
call fcn.00407650
jmp 0x4113f5
lea ecx, [ebp - 0x8d4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4113d3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.00409950
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb3c], eax
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb54], eax
push dword [ebp - 0xb30]
lea eax, [ebp - 0xb54]
push eax
lea eax, [ebp - 0xb3c]
push eax
mov byte [ebp - 4], 9
call fcn.00433250
add esp, 0xc
lea ecx, [ebp - 0xb88]
push 0
call fcn.00442860
mov eax, dword [ebp - 0xb3c]
mov esi, 0x4da528
cmp dword [eax - 0xc], 0
mov ecx, 0x51eab0
cmovne esi, eax
mov eax, dword [0x51eab0]
mov byte [ebp - 4], 0xa
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb48], eax
mov byte [ebp - 4], 0xb
test esi, esi
je 0x4114d1
test esi, 0xffff0000
jne 0x4114b3
movzx esi, si
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4114e0
push esi
push eax
lea ecx, [ebp - 0xb48]
call fcn.00407650
jmp 0x4114e0
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4114c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4114c0
sub ecx, edx
sar ecx, 1
jmp 0x4114d3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xb48]
call fcn.00409950
lea eax, [ebp - 0xb48]
push eax
lea eax, [ebp - 0x8ec]
push eax
mov byte [ebp - 4], 0xc
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xbc4]
mov byte [ebp - 4], 0xd
call fcn.00442780
push str.user
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 0xe
call fcn.00442d00
lea ecx, [ebp - 0xbc4]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xbc4]
mov byte [ebp - 4], 0xd
call fcn.00442a70
cmp dword [ebp - 0x8d8], 0x10
jb 0x411552
push dword [ebp - 0x8ec]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0xb48]
add edx, 0xfffffff0
mov dword [ebp - 0x8d8], 0xf
mov dword [ebp - 0x8dc], 0
mov byte [ebp - 0x8ec], 0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411590
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xbb4]
mov byte [ebp - 4], 0xf
call fcn.00442780
push str.process
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 0x10
call fcn.00442d00
lea ecx, [ebp - 0xbb4]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xbb4]
mov byte [ebp - 4], 0xf
call fcn.00442a70
cmp dword [ebp - 0x8d8], 0x10
mov byte [ebp - 4], 0xa
jb 0x411602
push dword [ebp - 0x8ec]
call fcn.004a5bbe
add esp, 4
push dword [ebp - 0xb30]
lea ecx, [ebp - 0xb64]
call fcn.004427c0
push 0x4da538
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 0x11
call fcn.00442d00
lea ecx, [ebp - 0xb64]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xb64]
mov byte [ebp - 4], 0xa
call fcn.00442a70
lea eax, [ebp - 0xb88]
push eax
lea ecx, [ebp - 0xb78]
call fcn.00443340
mov ecx, dword [0x520340]
mov esi, 0xf
lea edx, [ecx + 1]
lea eax, [ecx + 2]
imul eax, edx
imul eax, ecx
cdq
idiv esi
cmp edx, 3
jne 0x411698
xor esi, esi
test ecx, ecx
je 0x411692
jmp 0x411680
mov eax, ecx
and eax, 1
add esi, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jne 0x411680
mov dword [0x520340], esi
lea ecx, [ebp - 0xb88]
mov byte [ebp - 4], 9
call fcn.00442a70
mov edx, dword [ebp - 0xb54]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4116ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4116ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb40]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411710
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x520340]
mov esi, 0x12
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 0xd
jne 0x4117fb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xb90], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xb94], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xb9c], eax
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xba4], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xba0], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xb98], eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
xor ebx, ebx
sar eax, 3
mov dword [ebp - 0xb8c], eax
lea esi, [ebp - 0xd3]
jmp 0x4117c0
mov eax, dword [0x520340]
mov cl, al
sub cl, bl
mov edi, 1
mov dword [ebp - 0xb44], 0xc
jmp 0x4117e0
add esi, 8
inc edi
dec dword [ebp - 0xb44]
jne 0x4117e0
inc ebx
cmp ebx, 2
jl 0x4117c0
mov edi, dword [ebp - 0xb50]
or ebx, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb38]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4112c0
call fcn.00417970
test al, al
jne 0x41182f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea ecx, [ebp - 0xb78]
call fcn.004437f0
test al, al
je 0x41187f
push str.empty
lea ecx, [ebp - 0xb64]
call fcn.00442820
push 0x4d968c
lea ecx, [ebp - 0xb78]
mov byte [ebp - 4], 0x12
call fcn.00442d00
lea ecx, [ebp - 0xb64]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xb64]
mov byte [ebp - 4], 1
call fcn.00442a70
test edi, edi
je 0x411886
push edi
call esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90c]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0x1a
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xb3c], esi
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x14
idiv ecx
mov byte [ebp - 4], 0x1b
cmp edx, 8
jne 0x4118e7
mov edi, 1
mov eax, edi
mov edx, 0xb6
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x4118d7
mov dword [0x520340], ecx
lea eax, [ebp - 0xb78]
push eax
lea eax, [ebp - 0x8ec]
push eax
lea ecx, [ebp - 0x90c]
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x1c
jb 0x41190e
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x411aa6
xor ecx, ecx
jmp 0x411ab9
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb3c], eax
mov byte [ebp - 4], 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb3c]
push str.enumProcess_Process32First__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xb64]
mov byte [ebp - 4], 0x14
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xb78]
mov byte [ebp - 4], 0x15
call fcn.00442d00
lea ecx, [ebp - 0xb64]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xb64]
mov byte [ebp - 4], 0x14
call fcn.00442a70
cmp dword [ebp - 0x8d8], 0x10
jb 0x4119d7
push dword [ebp - 0x8ec]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0xb3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411275
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41188d
mov ecx, edx
lea ebx, [ecx + 1]
jmp 0x411ab0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411ab0
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0xb4c]
push eax
call fcn.0044ee90
add esp, 0x1c
mov eax, dword [eax]
lea ebx, [esi - 0x10]
lea edi, [eax - 0x10]
mov byte [ebp - 4], 0x1d
cmp edi, ebx
je 0x411b8e
cmp dword [ebx + 0xc], 0
jl 0x411b79
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x411b79
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x411b1a
cmp ecx, dword [edi]
jne 0x411b1a
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x411b57
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x411b2e
call fcn.0040c2e0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a7195
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411b6e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0xb3c], esi
jmp 0x411b8e
push dword [eax - 0xc]
lea ecx, [ebp - 0xb3c]
push eax
call fcn.00409950
mov esi, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb4c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411bb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x8d8], 0x10
mov byte [ebp - 4], 0x1b
jb 0x411bcd
push dword [ebp - 0x8ec]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0xb68]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x411bee
call fcn.0040c2e0
mov dword [edi + 8], eax
mov edi, dword [0x520340]
mov ecx, 0x17
lea eax, [edi + 1]
imul eax, edi
cdq
idiv ecx
cmp edx, 9
jne 0x411c28
xor ebx, ebx
test edi, edi
je 0x411c22
mov eax, edi
mov ecx, edi
cdq
sub eax, edx
and ecx, 1
mov edi, eax
add ebx, ecx
sar edi, 1
jne 0x411c10
mov dword [0x520340], ebx
add esi, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411c46
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x8f4], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x90c], 0x4d9684
jb 0x411c6b
push dword [ebp - 0x908]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x90c]
mov dword [ebp - 0x8f4], 0xf
mov dword [ebp - 0x8f8], 0
mov byte [ebp - 0x908], 0
call fcn.00444ab0
lea ecx, [ebp - 0xb78]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
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.004a63c4
mov esp, ebp
pop ebp
ret