Function at 0x40cb40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1d8
mov esi, esp
mov dword [esi + 0x1c0], ebp
mov dword [esi + 0x1c4], esp
mov dword [esi + 0x1d0], 0xffffffff
mov dword [esi + 0x1cc], 0x40d5a0
lea eax, [esi + 0x1c8]
mov ecx, dword fs:[0]
mov dword [esi + 0x1c8], ecx
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
inc eax
cmp eax, 1
ja 0x40cbab
call fcn.004310b0
mov edi, edx
test eax, eax
jne 0x40d136
lea eax, [esi + 0xbc]
mov dword [esi + 0x3c], edi
push 0x104
push 0
push eax
call fcn.004584a0
add esp, 0xc
lea eax, [esi + 0x98]
xorps xmm0, xmm0
mov dword [esi + 0x98], 0x128
mov dword [esi + 0x1d0], 0
movsd qword [esi + 0x9c], xmm0
movsd qword [esi + 0xa4], xmm0
movsd qword [esi + 0xac], xmm0
movsd qword [esi + 0xb4], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40cc20
call fcn.004310b0
test eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jne 0x40d145
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x44], eax
nop word cs:[eax + eax]
mov dword [esi + 0x1d0], 0
push 0x104
lea eax, [esi + 0xbc]
push eax
lea eax, [esi + 0x4c]
push eax
call fcn.0044c8d0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x50]
test ecx, ecx
mov dword [esi + 0x38], edx
je 0x40d1c3
mov eax, dword [esi + 0x54]
cmp eax, ecx
jbe 0x40cca0
cmp ecx, 1
jne 0x40ccc0
mov ecx, dword [ebp + 8]
cmp eax, 7
movzx ecx, byte [ecx]
ja 0x40cd5b
nop
cmp byte [edx], cl
je 0x40d1c3
inc edx
dec eax
jne 0x40cc80
jmp 0x40d0ab
jne 0x40d0ab
push ecx
push edx
push dword [ebp + 8]
call fcn.004585fa
add esp, 0xc
test eax, eax
jne 0x40d0ab
jmp 0x40d1c3
mov dword [esi + 0x1d0], 1
push ecx
push dword [ebp + 8]
push eax
push edx
lea eax, [esi + 0x58]
push eax
call fcn.00453e00
add esp, 0x14
cmp dword [esi + 0x58], 0
mov eax, 0
je 0x40ce91
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x7c]
mov edi, dword [esi + 0x90]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x94]
mov dword [esi + 0xc], edx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x8c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ecx
lea ecx, [ecx - 1]
mov dword [esi + 4], edx
mov dword [esi + 0x40], ecx
je 0x40cecf
mov ebx, dword [esi + 0x74]
add ecx, ebx
cmp ecx, edx
jae 0x40d0a1
mov edx, dword [esi + 0x68]
mov edi, dword [esi + 0x70]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x28], edi
sub edx, edi
mov edi, dword [esi + 0x64]
mov dword [esi + 0x24], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x30], edi
neg edx
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x60]
mov dword [esi + 0x34], edx
jmp 0x40cda8
mov dword [esi + 0x1d0], 1
movzx ecx, cl
push eax
push edx
push ecx
call fcn.00453510
add esp, 0xc
cmp eax, 1
jne 0x40d0ab
jmp 0x40d1c3
add ebx, dword [esi + 0x14]
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x40]
add ecx, ebx
cmp ecx, dword [esi + 4]
jae 0x40d0a1
mov edx, dword [esi + 0x10]
mov edi, 1
movzx ecx, byte [edx + ecx]
xor edx, edx
shld edx, edi, cl
shl edi, cl
test cl, 0x20
cmovne edx, edi
cmovne edi, eax
and edx, dword [esi + 0x30]
and edi, dword [esi + 0x34]
or edi, edx
je 0x40cd90
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esi + 0x20], ebx
cmp edx, ecx
mov edi, ecx
cmova edi, edx
mov edx, dword [esi + 0x18]
lea ecx, [ebx + edi]
mov ebx, dword [esi + 0x14]
mov dword [esi + 0x1c], edi
add edx, edi
sub ebx, edi
cmovb ebx, eax
nop word cs:[eax + eax]
nop dword [eax + eax]
sub ebx, 1
jb 0x40ce40
cmp ecx, dword [esi + 4]
jae 0x40d2bb
movzx eax, byte [edx]
mov edi, dword [esi + 0x10]
inc edx
cmp al, byte [edi + ecx]
lea edi, [ecx + 1]
mov eax, 0
mov ecx, edi
je 0x40ce00
add edi, dword [esi + 0x2c]
mov dword [esi + 0xc], 0
mov ebx, edi
jmp 0x40cd9a
mov ecx, dword [esi + 8]
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esi + 0xc], ecx
mov edx, dword [esi + 0x20]
jae 0x40d1c3
dec ecx
cmp ecx, dword [esi + 0x14]
jae 0x40d313
add edx, ecx
cmp edx, dword [esi + 4]
jae 0x40d333
mov edi, dword [esi + 0x18]
movzx ebx, byte [edi + ecx]
mov edi, dword [esi + 0x10]
cmp bl, byte [edi + edx]
je 0x40ce50
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add ebx, dword [esi + 0x28]
mov dword [esi + 0xc], ecx
jmp 0x40cd9a
cmp byte [esi + 0x66], 0
jne 0x40d0a1
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x88]
mov edi, dword [esi + 0x8c]
movzx ebx, byte [esi + 0x64]
test ecx, ecx
mov eax, edx
je 0x40d01d
cmp ecx, edi
jae 0x40d014
cmp byte [edx + ecx], 0xc0
jge 0x40d01a
jmp 0x40d3af
mov ebx, dword [esi + 0x74]
add ecx, ebx
mov dword [esi + 8], ebx
cmp ecx, edx
jae 0x40d0a1
mov edx, dword [esi + 0x60]
mov edi, dword [esi + 0x68]
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x64]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x14]
sub edx, edi
cmovb edx, eax
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x48], edx
lea edx, [edi - 1]
mov dword [esi + 0x24], edx
mov edx, dword [esi + 0x18]
add edx, edi
mov dword [esi + 0x28], edx
jmp 0x40cf37
mov edx, dword [esi + 8]
add edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x40]
mov dword [esi + 8], edx
add ecx, edx
cmp ecx, dword [esi + 4]
jae 0x40d0a1
mov edx, dword [esi + 0x10]
mov edi, 1
movzx ecx, byte [edx + ecx]
xor edx, edx
shld edx, edi, cl
shl edi, cl
test cl, 0x20
cmovne edx, edi
cmovne edi, eax
and edx, dword [esi + 0x30]
and edi, dword [esi + 0x34]
or edi, edx
je 0x40cf20
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x28]
mov eax, edx
lea edi, [ecx + edx]
mov edx, dword [esi + 0x2c]
neg eax
mov dword [esi + 0x20], eax
nop word cs:[eax + eax]
nop dword [eax]
sub edx, 1
jb 0x40cfc0
cmp edi, dword [esi + 4]
jae 0x40d2e7
movzx eax, byte [ebx]
dec dword [esi + 0x20]
inc ebx
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x10]
movzx ecx, byte [esi + 0xc]
cmp cl, byte [eax + edi]
lea edi, [edi + 1]
mov eax, 0
je 0x40cf80
mov edx, dword [esi + 0x20]
neg edx
jmp 0x40cf26
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x14]
jae 0x40d1b9
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
lea ecx, [edx - 1]
lea edx, [eax + edx - 1]
mov ebx, edi
nop
sub ebx, 1
jb 0x40d1c3
lea eax, [ecx + edi]
cmp eax, dword [esi + 4]
jae 0x40d353
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + edi - 1]
cmp al, byte [edx + edi]
mov edi, ebx
mov eax, 0
je 0x40cfe0
mov edx, dword [esi + 8]
add edx, dword [esi + 0x48]
jmp 0x40cf26
jne 0x40d3af
lea eax, [edx + ecx]
cmp edi, ecx
jne 0x40d02a
test bl, bl
je 0x40d0a1
jmp 0x40d1c3
mov bh, byte [eax]
mov dword [esi + 4], edi
movzx edi, bh
test bh, bh
jns 0x40d08d
mov dword [esi + 0x10], edx
movzx edx, byte [eax + 1]
and edi, 0x1f
and edx, 0x3f
cmp bh, 0xe0
jb 0x40d07d
mov dword [esi + 0x18], edi
movzx edi, byte [eax + 2]
shl edx, 6
mov dword [esi + 0xc], edi
and dword [esi + 0xc], 0x3f
add dword [esi + 0xc], edx
cmp bh, 0xf0
mov edx, dword [esi + 0xc]
jb 0x40d082
movzx eax, byte [eax + 3]
mov edi, dword [esi + 0x18]
shl edx, 6
and edi, 7
and eax, 0x3f
shl edi, 0x12
or eax, edx
or edi, eax
jmp 0x40d08a
shl edi, 6
jmp 0x40d088
mov edi, dword [esi + 0x18]
shl edi, 0xc
or edi, edx
mov edx, dword [esi + 0x10]
test bl, bl
jne 0x40d1c3
cmp edi, 0x110000
jne 0x40d260
mov dword [esi + 0x1d0], 1
lea eax, [esi + 0x98]
mov dword [esi + 0x1d0], 1
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40d0d8
call fcn.004310b0
test eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jne 0x40d0f9
mov eax, dword [esi + 0x4c]
test eax, 0x7fffffff
je 0x40cc30
push 1
push eax
push dword [esi + 0x38]
call fcn.0040b8d0
add esp, 0xc
jmp 0x40cc30
test edx, edx
je 0x40d109
lea eax, [esi + 0x5c]
push eax
call fcn.00430ce0
add esp, 4
mov bl, 1
mov eax, dword [esi + 0x4c]
test eax, 0x7fffffff
je 0x40d1d9
push 1
push eax
push dword [esi + 0x38]
call fcn.0040b8d0
add esp, 0xc
mov dword [esi + 0x1d0], 0xffffffff
jmp 0x40d1d9
push edi
push eax
call fcn.0045c170
add esp, 8
jmp 0x40d257
test edx, edx
je 0x40d155
lea eax, [esi + 0x5c]
push eax
call fcn.00430ce0
add esp, 4
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x1d0], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d21a
call fcn.004310b0
test eax, eax
je 0x40d21a
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0x1d0], 2
push 0x45feb4
push 0x45fdc0
lea eax, [esi + 0x98]
push eax
push 0x2b
push 0x45fd93
call fcn.0045de40
add esp, 0x14
jmp 0x40d3e5
cmp dword [esi + 0x1c], 0
jne 0x40d3c8
mov edi, dword [esi + 0xa0]
xor ebx, ebx
mov eax, dword [esi + 0x4c]
test eax, 0x7fffffff
jne 0x40d119
mov dword [esi + 0x1d0], 0xffffffff
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d1fd
call fcn.004310b0
test eax, eax
jne 0x40d377
xor eax, eax
test bl, bl
jne 0x40d21a
mov ecx, dword [esi + 0x1c8]
mov edx, edi
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esi + 0x98]
mov dword [esi + 0x98], 0x45ffa4
mov dword [esi + 0x9c], 1
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa0], 4
mov dword [esi + 0xa4], 0
call fcn.0045c030
mov edi, eax
mov eax, 1
jmp 0x40d203
mov eax, 1
cmp edi, 0x80
jb 0x40d288
mov eax, 2
cmp edi, 0x800
jb 0x40d288
cmp edi, 0x10000
mov eax, 4
sbb eax, 0
add ecx, eax
je 0x40d29e
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x40d2a3
cmp byte [edx + ecx], 0xbf
jg 0x40d2a9
jmp 0x40d3b2
mov eax, dword [esi + 4]
jmp 0x40d2ab
jne 0x40d3b2
add edx, ecx
cmp eax, ecx
je 0x40d1c3
cmp byte [edx], 0
jmp 0x40d1c3
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 4]
mov dword [esi + 0x1d0], 1
add ecx, dword [esi + 0x1c]
cmp eax, ecx
cmova ecx, eax
push 0x45ff5c
push eax
push ecx
call fcn.0045dc70
add esp, 0xc
jmp 0x40d3e5
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
mov dword [esi + 0x1d0], 1
add ecx, dword [esi + 8]
cmp eax, ecx
cmova ecx, eax
push 0x45ff5c
push eax
push ecx
call fcn.0045dc70
add esp, 0xc
jmp 0x40d3e5
mov dword [esi + 0x1d0], 1
push 0x45ff3c
push dword [esi + 0x14]
push ecx
call fcn.0045dc70
add esp, 0xc
jmp 0x40d3e5
mov dword [esi + 0x1d0], 1
push 0x45ff4c
push dword [esi + 4]
push edx
call fcn.0045dc70
add esp, 0xc
jmp 0x40d3e5
mov eax, dword [esi + 8]
mov dword [esi + 0x1d0], 1
lea eax, [eax + edi - 1]
push 0x45ff4c
push dword [esi + 4]
push eax
call fcn.0045dc70
add esp, 0xc
jmp 0x40d3e5
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0x1d0], 3
push 0x45feb4
push 0x45fdc0
lea eax, [esi + 0x98]
push eax
push 0x2b
push 0x45fd93
call fcn.0045de40
add esp, 0x14
jmp 0x40d3e5
mov dword [esi + 4], edi
push 0x45ff6c
mov eax, dword [esi + 4]
push eax
push ecx
push eax
push edx
call fcn.0045e090
add esp, 0x14
jmp 0x40d3e5
mov dword [esi + 0x1d0], 1
push 0x45ff3c
push dword [esi + 0x14]
push dword [esi + 0x24]
call fcn.0045dc70
add esp, 0xc
ud2