Function at 0x429c10
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x169c
call fcn.00452b30
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x167c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x1214], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x1674]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1678]
push eax
push ebx
mov dword [ebp - 0x1678], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x429c9e
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov eax, dword [ebp - 0x1214]
cmp dword [ebp - 0x1670], eax
je 0x429cb8
lea eax, [ebp - 0x1678]
push eax
push ebx
call esi
test eax, eax
jne 0x429c82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1660]
mov ecx, dword [ebp - 0x167c]
push eax
push 0
push 0x100410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1680], eax
test eax, eax
je 0x429d75
lea ecx, [ebp - 0x1214]
push ecx
push 0x1000
lea ecx, [ebp - 0x1210]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x429d69
xor esi, esi
test dword [ebp - 0x1214], 0xfffffffc
jbe 0x429d63
mov edi, edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebp + esi*4 - 0x1210]
push dword [ebp - 0x1680]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x429dd7
mov eax, dword [ebp - 0x1214]
inc esi
shr eax, 2
cmp esi, eax
jb 0x429d10
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x1680]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x228
lea eax, [ebp - 0x1444]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1448]
push eax
push ebx
mov dword [ebp - 0x1448], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x429c9e
jmp 0x429db0
mov ecx, dword [ebp - 0x167c]
mov eax, dword [ebp - 0x1440]
cmp eax, dword [ecx]
je 0x429e5f
lea eax, [ebp - 0x1448]
push eax
push ebx
call esi
test eax, eax
jne 0x429db0
jmp 0x429c9e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1698]
call fcn.00406d00
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x167c], eax
cmp edi, eax
je 0x429e27
cmp dword [edi + 0x14], 8
jb 0x429e0c
push dword [edi]
call esi
mov eax, dword [ebp - 0x167c]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.004066d0
cmp dword [ebp - 0x1684], 8
jb 0x429e3b
push dword [ebp - 0x1698]
call esi
add esp, 4
push dword [ebp - 0x1680]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1424]
push eax
lea ecx, [ebp - 0x1698]
call fcn.00406d00
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x167c], eax
cmp edi, eax
je 0x429eaf
cmp dword [edi + 0x14], 8
jb 0x429e94
push dword [edi]
call esi
mov eax, dword [ebp - 0x167c]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.004066d0
cmp dword [ebp - 0x1684], 8
jb 0x429ec3
push dword [ebp - 0x1698]
call esi
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00452076
mov esp, ebp
pop ebp
ret