Function at 0x402d40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41de7d
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 4], 0
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x402d8a
mov dword [edx + 4], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x284], esi
cmp esi, 0xffffffff
je 0x402dc4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x402e09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov byte [ebp - 0x26d], al
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x403083
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403073
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309e
jmp 0x403073
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402620
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
lea edi, [ebp - 0x40]
cmova eax, edx
cmova ecx, edx
mov dword [ebp - 0x274], eax
cmova edi, edx
mov eax, dword [ebp - 0x30]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x278], eax
cmp edi, eax
je 0x402e70
mov esi, dword [ebp - 0x274]
sub esi, edi
movzx eax, word [edi]
push eax
call fcn.0040e13e
mov word [esi + edi], ax
add esp, 4
add edi, 2
cmp edi, dword [ebp - 0x278]
jne 0x402e50
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402e90
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402730
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp edx, 7
mov esi, dword [ebp - 0x18]
cmova eax, edi
cmova ecx, edi
lea eax, [eax + esi*2]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x274], eax
cmova esi, edi
cmp esi, eax
je 0x402f03
sub ecx, esi
mov edi, ecx
movzx eax, word [esi]
push eax
call fcn.0040e13e
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x274]
jne 0x402ee2
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmova ecx, dword [ebp - 0x40]
cmp edx, 7
mov edx, eax
cmova esi, edi
cmp dword [ebp - 0x30], eax
cmovb edx, dword [ebp - 0x30]
test edx, edx
je 0x402f44
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x402f9b
add ecx, 2
sub edx, 1
jne 0x402f30
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jb 0x402f9b
ja 0x402f9b
mov eax, dword [ebp - 0x280]
mov eax, dword [eax]
cmp dword [ebp - 0x264], eax
je 0x402f9b
cmp dword [ebp - 0x254], eax
jne 0x402f9b
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x402f89
mov ecx, 0x8b
lea esi, [ebp - 0x26c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [edx + 4], 0x22c
jmp 0x402f98
lea ecx, [ebp - 0x26c]
push ecx
push eax
mov ecx, edx
call fcn.004031a0
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x402fd6
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x402fcc
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309e
push ecx
push edi
call fcn.0040a1c1
add esp, 8
mov esi, dword [ebp - 0x284]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402e70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x27c]
mov eax, 0x75ded953
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
imul ecx
mov ecx, dword [ebp - 0x2c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
setne al
mov byte [ebp - 0x26d], al
cmp ecx, 7
jbe 0x40305a
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40304a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309e
push ecx
push edx
call fcn.0040a1c1
mov al, byte [ebp - 0x26d]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
jmp 0x402dcc
push ecx
push edx
call fcn.0040a1c1
mov al, byte [ebp - 0x26d]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a183
mov esp, ebp
pop ebp
ret
call fcn.0040d8ef
int3