Function at 0x40d280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0ee
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x53307c]
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 dword [ebp - 0x284], edx
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d30d
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004e7890
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40d314
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40d5db
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
call fcn.0040dc90
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
call fcn.0040dbe0
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, dword [ebp - 0x264]
nop dword [eax]
mov eax, dword [ebp - 0x250]
push dword [ebp - 0x264]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x27c]
push eax
push ecx
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040e090
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 2]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d3d0
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405140
push ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push ecx
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040e1e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d449
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d43f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5f7
push edx
push ecx
call fcn.0049e956
add esp, 8
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004e7890
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
jne 0x40d370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040d730
mov eax, dword [eax]
cmp eax, dword [ebp - 0x26c]
je 0x40d5a1
lea edx, [eax + 0x14]
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
mov dword [ebp - 0x270], edx
mov esi, eax
cmp byte [ecx + 0xd], 0
jne 0x40d4ef
mov edi, dword [edx]
mov edx, dword [ecx + 0x10]
cmp edx, edi
jae 0x40d4d4
mov ecx, dword [ecx + 8]
jmp 0x40d4e3
cmp byte [esi + 0xd], 0
je 0x40d4df
cmp edi, edx
cmovb esi, ecx
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x40d4c8
mov edx, dword [ebp - 0x270]
cmp byte [esi + 0xd], 0
cmove ebx, esi
mov ecx, dword [ebx]
cmp byte [ecx + 0xd], 0
jne 0x40d514
mov edx, dword [edx]
cmp edx, dword [ecx + 0x10]
jae 0x40d50b
mov esi, ecx
mov ecx, dword [ecx]
jmp 0x40d50e
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x40d500
xor edi, edi
cmp eax, esi
je 0x40d5a1
nop
mov ecx, dword [eax + 8]
inc edi
cmp byte [ecx + 0xd], 0
je 0x40d547
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x40d543
cmp eax, dword [ecx + 8]
jne 0x40d543
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x40d533
mov eax, ecx
jmp 0x40d55d
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x40d55d
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x40d551
cmp eax, esi
jne 0x40d520
test edi, edi
je 0x40d5a1
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x270]
push esi
push eax
lea ecx, [ebp - 0x260]
call fcn.0040d730
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
add eax, 0x14
push eax
call fcn.00407c80
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x40d59d
mov eax, dword [esi]
mov dword [ecx], eax
mov bl, 1
jmp 0x40d5a3
xor bl, bl
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push eax
push dword [eax]
lea eax, [ebp - 0x278]
push eax
call fcn.0040d780
push 0x2c
push dword [ebp - 0x260]
call fcn.0049e956
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.0040d600
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.0049e964
mov esp, ebp
pop ebp
ret
call fcn.004e9a8c
int3