Function at 0x403570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408065
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x40d040]
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 ebx, ecx
push 0
push 2
mov dword [ebp - 4], 0
mov byte [ebp - 0x261], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x260], 0x22c
lea eax, [ebp - 0x260]
mov dword [ebp - 0x268], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4035e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4092a0
lea ecx, [ebp - 0x28]
call fcn.00401c10
xor esi, esi
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40364c
nop word [eax + eax]
mov dl, byte [ebp + esi*2 - 0x23c]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0x2c], dl
cmp ecx, edi
jae 0x40362e
lea eax, [ecx + 1]
cmp edi, 0xf
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x403647
push dword [ebp - 0x2c]
mov byte [ebp - 0x26c], 0
push dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402080
inc esi
cmp esi, ebx
jb 0x403600
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
cmova ecx, dword [ebp + 8]
cmp eax, 0xf
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, edi
cmp esi, dword [ebp + 0x18]
jne 0x4036ca
sub esi, 4
jb 0x403684
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x403689
add edx, 4
add ecx, 4
sub esi, 4
jae 0x403673
cmp esi, 0xfffffffc
je 0x4036bd
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4036b6
cmp esi, 0xfffffffd
je 0x4036bd
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4036b6
cmp esi, 0xfffffffe
je 0x4036bd
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4036b6
cmp esi, 0xffffffff
je 0x4036bd
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4036bd
sbb eax, eax
or eax, 1
jmp 0x4036bf
xor eax, eax
test eax, eax
je 0x403753
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0xf
jbe 0x4036fa
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4036f0
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40374d
push ecx
push edi
call fcn.004070ec
add esp, 8
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4035e3
mov bl, byte [ebp - 0x261]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x40378e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403784
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403784
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x14]
mov bl, 1
cmp ecx, 0xf
jbe 0x40371b
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x403778
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40374d
push ecx
push edi
call fcn.004070ec
add esp, 8
jmp 0x40371b
push ecx
push edx
call fcn.004070ec
add esp, 8
mov al, bl
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.00406f99
mov esp, ebp
pop ebp
ret