Function at 0x4396e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4622e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4745a8]
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.00407c70
push ebx
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x439820
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebp - 0x4c]
mov edi, eax
jae 0x439770
lea edx, [ebp - 0x4c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x439775
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.00407c70
push 0x20
push str.createToolSnap_failed_with_err:
lea ecx, [ebp - 0x68]
call fcn.00412810
push edi
lea ecx, [ebp - 0x30]
push 0x46c464
push ecx
call fcn.0043ac3a
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4397b0
sub eax, edx
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x68]
call fcn.00412810
mov eax, dword [ebp - 0x68]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jae 0x4397d6
lea eax, [ebp - 0x68]
push ebx
push eax
mov eax, dword [ebp - 0x194]
push eax
call fcn.00424e80
add esp, 0xc
cmp dword [ebp - 0x38], esi
jb 0x4397f8
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x439816
mov edx, dword [ebp - 0x68]
push edx
call fcn.00439f71
add esp, 4
mov eax, 2
jmp 0x43997d
lea eax, [ebp - 0x190]
push eax
push esi
mov dword [ebp - 0x190], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x439918
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x198], eax
jae 0x439857
lea edx, [ebp - 0x4c]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x439860
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.00407c70
push 0x20
push str.process32First_failed_with_err:
lea ecx, [ebp - 0x68]
call fcn.00412810
mov ecx, dword [ebp - 0x198]
push ecx
lea edx, [ebp - 0x30]
push 0x46c464
push edx
call fcn.0043ac3a
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4398a0
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.00412810
mov eax, dword [ebp - 0x68]
mov edi, 0x10
cmp dword [ebp - 0x54], edi
jae 0x4398c6
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x194]
push ebx
push eax
push ecx
call fcn.00424e80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], edi
jb 0x4398ef
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x439816
mov eax, dword [ebp - 0x68]
push eax
call fcn.00439f71
add esp, 4
mov eax, 2
jmp 0x43997d
lea ecx, [ebp - 0x16c]
push edi
push ecx
call fcn.0045bc54
add esp, 8
test eax, eax
je 0x439999
lea edx, [ebp - 0x190]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x439918
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x43995a
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x439978
mov eax, dword [ebp - 0x68]
push eax
call fcn.00439f71
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.00439bf4
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x4399b6
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x4399d4
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00439f71
add esp, 4
xor eax, eax
jmp 0x43997d