Function at 0x404d40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb8d
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x37c], edi
mov dword [ebp - 0x370], 0
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0
push 0xf
mov dword [ebp - 0x370], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x378], esi
cmp esi, 0xffffffff
je 0x40512b
mov ecx, 0x22c
lea eax, [ebp - 0x350]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x404e07
lea eax, [ebp - 0x350]
mov dword [ebp - 0x350], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4050c2
mov ecx, 0x105
lea eax, [ebp - 0x118]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x404e40
mov dx, word [ebp - 0x32c]
lea eax, [ebp - 0x32c]
test dx, dx
je 0x404e69
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x404e60
lea ecx, [ebp - 0x32c]
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x404e97
test dx, dx
je 0x404e89
nop
add ecx, 2
cmp word [ecx], 0
jne 0x404e80
lea eax, [ebp - 0x32c]
sub ecx, eax
sar ecx, 1
je 0x404eb3
jmp 0x404e9c
mov ecx, 0x104
xor edx, edx
nop
mov al, byte [ebp + edx*2 - 0x32c]
mov byte [ebp + edx - 0x118], al
inc edx
cmp edx, ecx
jb 0x404ea0
mov edi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
cmp edi, eax
je 0x404f7d
lea esi, [ebp - 0x118]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404ed0
sub esi, ecx
mov dword [ebp - 0x374], esi
nop
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x404eea
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, esi
jne 0x404f56
lea esi, [ebp - 0x118]
sub edx, 4
jb 0x404f11
nop dword [eax]
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x404f16
add eax, 4
add esi, 4
sub edx, 4
jae 0x404f00
cmp edx, 0xfffffffc
je 0x404f4a
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x404f43
cmp edx, 0xfffffffd
je 0x404f4a
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x404f43
cmp edx, 0xfffffffe
je 0x404f4a
mov cl, byte [eax + 2]
cmp cl, byte [esi + 2]
jne 0x404f43
cmp edx, 0xffffffff
je 0x404f4a
mov al, byte [eax + 3]
cmp al, byte [esi + 3]
je 0x404f4a
sbb eax, eax
or eax, 1
jmp 0x404f4c
xor eax, eax
test eax, eax
je 0x404f69
mov esi, dword [ebp - 0x374]
mov eax, dword [ebp - 0x120]
add edi, 0x18
cmp edi, eax
jne 0x404ee0
jmp 0x404f6f
mov eax, dword [ebp - 0x120]
mov esi, dword [ebp - 0x378]
cmp edi, eax
jne 0x405086
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x35c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x358], 0xf
mov byte [ebp - 0x36c], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404fb0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.00405d40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x11c]
je 0x40501a
movups xmm0, xmmword [ebp - 0x36c]
mov dword [eax], 0
mov edx, 0xf
mov byte [ebp - 0x36c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x35c]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x120], 0x18
mov dword [ebp - 0x35c], 0
jmp 0x405033
lea ecx, [ebp - 0x36c]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.00405e80
mov edx, dword [ebp - 0x358]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40506b
mov ecx, dword [ebp - 0x36c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405061
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405155
push edx
push ecx
call fcn.0040741b
add esp, 8
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 0xf
mov byte [ebp - 0x36c], 0
mov ecx, 0x22c
lea eax, [ebp - 0x350]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x405091
lea eax, [ebp - 0x350]
mov dword [ebp - 0x350], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404e32
mov edi, dword [ebp - 0x354]
sub esp, 0xc
lea eax, [ebp - 0x124]
mov ecx, esp
push eax
call fcn.00405760
mov edx, 0x427210
lea ecx, [ebp - 0x394]
call fcn.00406a10
add esp, 0xc
mov ecx, edi
push eax
call fcn.00405ad0
mov edx, dword [ebp - 0x380]
cmp edx, 0x10
jb 0x405124
mov ecx, dword [ebp - 0x394]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40511a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405155
push edx
push ecx
call fcn.0040741b
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x124]
call fcn.00405b60
mov eax, edi
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.00406f4d
mov esp, ebp
pop ebp
ret 4
call fcn.0040da8a
int3