Function at 0x40bdb0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44653d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a730
push 0
push 0xf
mov dword [ebp - 0x26c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [eax + eax]
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be20
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40be6c
lea edi, [ecx + ecx]
mov eax, edi
call fcn.00445d00
mov esi, esp
test esi, esi
je 0x40be6c
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x248]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40be6e
xor eax, eax
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bea0
test dl, dl
je 0x40be9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40be80
xor eax, eax
jmp 0x40bea5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bf0a
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40be10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40bef6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40beec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf3d
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov eax, dword [ebp - 0x10]
mov esi, 1
mov dword [eax + 8], 0
jmp 0x40c0f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x264]
cmp ecx, 0xf
jbe 0x40bf4d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bf43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 8], esi
test esi, esi
jne 0x40bf61
mov esi, 1
jmp 0x40c0f9
push esi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebx + 4], eax
test eax, eax
jne 0x40bf7e
lea esi, [eax + 2]
jmp 0x40c0f9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a730
push dword [ebx + 8]
mov dword [ebp - 0x694], 0x428
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x694]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
lea ecx, [ebp - 0x674]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bfc0
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40c00c
lea edi, [ecx + ecx]
mov eax, edi
call fcn.00445d00
mov esi, esp
test esi, esi
je 0x40c00c
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x674]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40c00e
xor eax, eax
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
cmova ecx, dword [ebp - 0x40]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c040
test dl, dl
je 0x40c03c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c040
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c020
xor eax, eax
jmp 0x40c045
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c09b
lea eax, [ebp - 0x694]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40bfb0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40c097
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c08d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0cf
push ecx
push edx
call fcn.00444ed9
add esp, 8
xor esi, esi
jmp 0x40c0df
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x678]
cmp ecx, 0xf
jbe 0x40c0df
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c0d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c0d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov ecx, dword [ebp - 0x10]
mov eax, esi
cdq
mov dword [ecx + 0x10], eax
or eax, edx
mov dword [ecx + 0x14], edx
jne 0x40c0f4
lea esi, [eax + 3]
jmp 0x40c0f9
mov byte [ecx], 1
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x40c12f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c125
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c125
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov eax, esi
lea esp, [ebp - 0x6a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18