Function at 0x407de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x280
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4083e0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x40802c
mov esi, eax
lea eax, [ebp - 0x288]
push 0x228
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
test eax, eax
mov dword [ebp - 0x28], esi
je 0x408042
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 0
jmp 0x407e88
test esi, esi
je 0x408018
lea eax, [ebp - 0x268]
mov dword [ebp - 0x10], 1
push eax
call fcn.0040d3e0
add esp, 4
mov edi, eax
xor eax, eax
mov esi, edx
test edx, edx
js 0x40809e
lea ebx, [esi + esi]
cmp ebx, 0x7ffffffe
ja 0x40809e
test ebx, ebx
je 0x407ee0
movzx eax, byte [0x430121]
push 2
push ebx
call fcn.00408c90
add esp, 8
test eax, eax
je 0x408096
mov dword [ebp - 0x20], esi
jmp 0x407eec
mov eax, 2
mov dword [ebp - 0x20], 0
push ebx
push edi
push eax
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
push eax
call fcn.00404fb0
add esp, 4
mov esi, eax
mov eax, edx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x20], edx
sub eax, 1
mov dword [ebp - 0x24], esi
jb 0x40807d
lea eax, [esi + eax*2]
mov word [ebp - 0x38], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.00408510
add esp, 8
mov eax, dword [ebp - 0x20]
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00421200
add esp, 8
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], ecx
jne 0x407fbf
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], 3
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
call fcn.00408a90
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + esi*4]
mov ebx, dword [ebp - 0x24]
inc esi
mov dword [eax + ecx*4], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x3c], esi
push eax
mov edi, dword [ebp - 0x28]
push edi
call sub.kernel32.dll_Process32NextW
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x407e80
push 1
push eax
push dword [ebp - 0x5c]
call fcn.00408ca0
add esp, 0xc
jmp 0x407e80
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x44]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x408061
call fcn.00416d40
mov esi, edi
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 0x80000000
jmp 0x408067
mov dword [ebp - 0x10], 0
call fcn.00416d40
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 4
push 0x428938
push 0
push eax
call fcn.00427400
add esp, 0xc
jmp 0x4080aa
mov eax, 2
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x48]
push eax
call fcn.00426f20
add esp, 8
ud2