Function at 0x43f940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468f20
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x194], eax
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
push 0xe
push str.chkProcExist:
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00407d70
push ebx
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x43fa80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebp - 0x4c]
mov edi, eax
jae 0x43f9d0
lea edx, [ebp - 0x4c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43f9d5
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.00407d70
push 0x20
push str.createToolSnap_failed_with_err:
lea ecx, [ebp - 0x68]
call fcn.00413820
push edi
lea ecx, [ebp - 0x30]
push 0x472dfc
push ecx
call fcn.00440eaa
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43fa10
sub eax, edx
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x68]
call fcn.00413820
mov eax, dword [ebp - 0x68]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jae 0x43fa36
lea eax, [ebp - 0x68]
push ebx
push eax
mov eax, dword [ebp - 0x194]
push eax
call fcn.0042a650
add esp, 0xc
cmp dword [ebp - 0x38], esi
jb 0x43fa58
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x43fa76
mov edx, dword [ebp - 0x68]
push edx
call fcn.004401d7
add esp, 4
mov eax, 2
jmp 0x43fbdd
lea eax, [ebp - 0x190]
push eax
push esi
mov dword [ebp - 0x190], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x43fb78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x198], eax
jae 0x43fab7
lea edx, [ebp - 0x4c]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43fac0
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.00407d70
push 0x20
push str.process32First_failed_with_err:
lea ecx, [ebp - 0x68]
call fcn.00413820
mov ecx, dword [ebp - 0x198]
push ecx
lea edx, [ebp - 0x30]
push 0x472dfc
push edx
call fcn.00440eaa
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43fb00
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.00413820
mov eax, dword [ebp - 0x68]
mov edi, 0x10
cmp dword [ebp - 0x54], edi
jae 0x43fb26
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x194]
push ebx
push eax
push ecx
call fcn.0042a650
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], edi
jb 0x43fb4f
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x43fa76
mov eax, dword [ebp - 0x68]
push eax
call fcn.004401d7
add esp, 4
mov eax, 2
jmp 0x43fbdd
lea ecx, [ebp - 0x16c]
push edi
push ecx
call fcn.00461ee4
add esp, 8
test eax, eax
je 0x43fbf9
lea edx, [ebp - 0x190]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x43fb78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x43fbba
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x43fbd8
mov eax, dword [ebp - 0x68]
push eax
call fcn.004401d7
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe5a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x43fc16
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x43fc34
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004401d7
add esp, 4
xor eax, eax
jmp 0x43fbdd