Function at 0x409a70
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4638a6
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1a40
call fcn.00462050
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a08], edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.0040d930
push 0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
push 2
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x1a0c], edi
cmp edi, 0xffffffff
jne 0x409af5
xor eax, eax
jmp 0x409fc9
push 0x228
lea eax, [ebp - 0x19fc]
mov dword [ebp - 0x1a00], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, 7
mov dword [ebp - 0x17a0], 0
xor eax, eax
mov dword [ebp - 0x17a8], 0
add esp, 0xc
mov dword [ebp - 0x17a4], 0
mov dword [ebp - 0x1790], 0
mov dword [ebp - 0x178c], esi
mov word [ebp - 0x17a0], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a00]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [ebp - 0x17a0]
test eax, eax
je 0x409f82
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x1a14], eax
nop
mov eax, dword [ebp - 0x1a08]
mov esi, dword [ebp - 0x19e8]
mov dword [ebp - 0x1a10], esi
mov ecx, dword [eax]
mov dword [ebp - 0x1a04], ecx
lea ecx, [ebp - 0x1a10]
push ecx
lea ecx, [ebp - 0x1a44]
push ecx
mov ecx, eax
call fcn.00406950
mov eax, dword [ebp - 0x1a3c]
cmp byte [eax + 0xd], 0
jne 0x409bc8
cmp esi, dword [eax + 0x10]
jb 0x409bc8
cmp eax, dword [ebp - 0x1a04]
jne 0x409bca
xor esi, esi
mov eax, dword [ebp - 0x19f8]
cmp dword [ebp - 0x178c], 8
mov dword [ebp - 0x17a8], eax
lea eax, [ebp - 0x17a0]
cmovae eax, edi
mov dword [ebp - 0x17a4], esi
xor ecx, ecx
mov dword [ebp - 0x1790], 0
push 0x1770
push ecx
mov word [eax], cx
lea eax, [ebp - 0x1788]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x1a14]
add esp, 0xc
mov eax, dword [0x4ba5e0]
cmp eax, dword [ecx + 4]
jg 0x409fe7
mov edi, dword [ebp - 0x17a8]
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x409c58
push edi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409d11
push 0x1770
lea eax, [ebp - 0x1788]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4ba5dc]
add esp, 0xc
test edi, edi
je 0x409cc2
lea eax, [ebp - 0x1a04]
mov dword [ebp - 0x1a04], 0xbb7
push eax
lea eax, [ebp - 0x1788]
mov ecx, edi
push eax
push 0
push esi
call dword [0x46a894]
call edi
test eax, eax
je 0x409cc2
lea ecx, [ebp - 0x1788]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cb0
sub ecx, edx
sar ecx, 1
push ecx
jmp 0x409cf4
push 0xbb7
lea eax, [ebp - 0x1788]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x409d06
lea eax, [ebp - 0x1788]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ce4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1788]
push eax
lea ecx, [ebp - 0x17a0]
call fcn.004021a0
test esi, esi
je 0x409d11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x17a8]
lea esi, [ebp - 0x17a0]
cmp dword [ebp - 0x178c], 8
mov dword [ebp - 0x17cc], eax
cmovae esi, dword [ebp - 0x17a0]
mov dword [ebp - 0x17c8], eax
mov eax, dword [ebp - 0x17a4]
mov dword [ebp - 0x17c4], eax
mov eax, dword [ebp - 0x1790]
mov dword [ebp - 0x17c0], 0
mov dword [ebp - 0x17b0], 0
mov dword [ebp - 0x17ac], 0
mov dword [ebp - 0x1a04], esi
cmp eax, 8
jae 0x409d93
movups xmm1, xmmword [esi]
mov edi, 7
movups xmmword [ebp - 0x17c0], xmm1
mov esi, dword [ebp - 0x17c0]
movups xmmword [ebp - 0x1a38], xmm1
jmp 0x409e2e
mov edi, eax
mov eax, SysReAllocString
or edi, 7
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x40a034
add eax, eax
cmp eax, 0x1000
jb 0x409de4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40a034
push ecx
call fcn.00461e10
add esp, 4
test eax, eax
je 0x409fb4
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x409df7
test eax, eax
je 0x409df5
push eax
call fcn.00461e10
add esp, 4
mov esi, eax
jmp 0x409df7
xor esi, esi
mov eax, dword [ebp - 0x1790]
mov dword [ebp - 0x17c0], esi
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1a04]
push esi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x17c0]
mov eax, dword [ebp - 0x1790]
add esp, 0xc
movups xmmword [ebp - 0x1a38], xmm0
mov dword [ebp - 0x17ac], edi
mov dword [ebp - 0x17b0], eax
mov ecx, dword [ebp - 0x1a08]
lea eax, [ebp - 0x17cc]
push eax
lea eax, [ebp - 0x1a50]
mov byte [ebp - 4], 1
push eax
call fcn.00406950
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x1a28], xmm0
cmp byte [ecx + 0xd], 0
jne 0x409e7b
mov eax, dword [ebp - 0x17a8]
cmp eax, dword [ecx + 0x10]
jae 0x409f27
mov eax, dword [ebp - 0x1a08]
cmp dword [eax + 4], 0x4ec4ec4
je 0x40a02f
mov esi, dword [eax]
mov dword [ebp - 0x1a1c], eax
mov byte [ebp - 4], 2
push 0x34
mov dword [ebp - 0x1a18], 0
call fcn.00461e10
mov ecx, dword [ebp - 0x17a8]
add esp, 4
movups xmm0, xmmword [ebp - 0x1a38]
mov edi, 7
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x17a4]
mov dword [eax + 0x18], ecx
xor ecx, ecx
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
movups xmmword [eax + 0x1c], xmm0
push eax
movq xmm0, qword [ebp - 0x17b0]
push dword [ebp - 0x1a24]
movq qword [eax + 0x2c], xmm0
push dword [ebp - 0x1a28]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [ebp - 0x17c0], cx
mov word [eax + 0xc], cx
mov dword [ebp - 0x1a18], ecx
mov ecx, dword [ebp - 0x1a08]
call fcn.00406a10
mov esi, dword [ebp - 0x17c0]
mov byte [ebp - 4], 0
cmp edi, 8
jb 0x409f5b
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x409f51
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb4
push edi
push esi
call fcn.00461bf2
add esp, 8
lea eax, [ebp - 0x1a00]
push eax
push dword [ebp - 0x1a0c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 0x17a0]
test eax, eax
jne 0x409b80
mov esi, dword [ebp - 0x178c]
push dword [ebp - 0x1a0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 8
jb 0x409fc4
lea esi, [esi*2 + 2]
mov eax, edi
cmp esi, 0x1000
jb 0x409fba
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409fba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push edi
call fcn.00461bf2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004619c0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x4ba5e0
call fcn.00461d3a
add esp, 4
cmp dword [0x4ba5e0], 0xffffffff
jne 0x409c27
push 0x4a64c0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ba5e0
mov dword [0x4ba5dc], eax
call fcn.00461cf0
add esp, 4
jmp 0x409c27
call fcn.00406c40
call fcn.00402690
int3