Function at 0x63218d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x26c
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x280]
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x63218fb0
lea edi, [esp + 0x138]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 0x138], 0x128
call sub.KERNEL32.dll_Process32First
sub esp, 8
lea edi, [esp + 0x34]
test eax, eax
je 0x63218fa0
lea esi, [esi]
test ebp, ebp
je 0x63218f79
mov eax, dword [esp + 0x140]
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sub.PSAPI.DLL_GetModuleFileNameExA
sub esp, 0x10
test eax, eax
mov eax, dword [ebp + 0x10]
mov esi, eax
jne 0x63218fc0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
lea esi, [esp + 0x15c]
mov dword [esp + 0x1c], esi
sub ecx, eax
cmp ecx, 1
jle 0x632190c5
mov ecx, esi
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
and edx, 0x80808080
je 0x63218e5c
mov ebx, edx
shr ebx, 0x10
test edx, 0x8080
cmove edx, ebx
lea ebx, [ecx + 2]
cmove ecx, ebx
mov ebx, edx
add bl, dl
mov edx, dword [ebp + 8]
sbb ecx, 3
sub ecx, dword [esp + 0x1c]
add ecx, 1
mov word [edx + eax], cx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea eax, [ecx + 2]
mov ebx, esi
mov dword [ebp + 0x14], eax
sub ebx, eax
mov dword [esp + 0x20], esi
cmp ebx, 3
jle 0x632190c5
mov eax, dword [ebp + 8]
mov dword [eax + ecx + 2], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
add eax, 4
mov dword [ebp + 0x14], eax
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx]
add ecx, 4
lea ebx, [esi - 0x1010101]
not esi
and ebx, esi
and ebx, 0x80808080
je 0x63218edc
mov esi, ebx
mov dword [esp + 0x20], edx
shr esi, 0x10
test ebx, 0x8080
cmove ebx, esi
lea esi, [ecx + 2]
cmove ecx, esi
mov esi, dword [esp + 0x1c]
mov edx, ebx
add dl, bl
mov edx, dword [esp + 0x20]
sbb ecx, 3
xor ebx, ebx
sub ecx, esi
add ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x63218f4f
movzx ecx, byte [esi + ebx]
mov edx, dword [ebp + 8]
add ebx, 1
mov byte [edx + eax], cl
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
cmp dword [esp + 0x1c], ebx
jle 0x63218f65
mov edx, dword [ebp + 0x10]
sub edx, eax
test edx, edx
jg 0x63218f30
mov dword [ebp], 1
add ebx, 1
cmp dword [esp + 0x1c], ebx
jg 0x63218f4c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x63218f79
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [esp + 0x138]
add dword [esp + 0x24], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
jne 0x63218de0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x26c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jle 0x632190d1
mov ecx, edi
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
and edx, 0x80808080
je 0x63218fd6
mov ebx, edx
shr ebx, 0x10
test edx, 0x8080
cmove edx, ebx
lea ebx, [ecx + 2]
cmove ecx, ebx
mov ebx, edx
add bl, dl
mov edx, dword [ebp + 8]
sbb ecx, 3
sub ecx, edi
add ecx, 1
mov word [edx + eax], cx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea eax, [ecx + 2]
mov ebx, esi
mov dword [ebp + 0x14], eax
sub ebx, eax
mov dword [esp + 0x1c], esi
cmp ebx, 3
jle 0x632190d1
mov eax, dword [ebp + 8]
mov dword [eax + ecx + 2], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
add eax, 4
mov dword [ebp + 0x14], eax
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [ecx]
add ecx, 4
lea ebx, [esi - 0x1010101]
not esi
and ebx, esi
and ebx, 0x80808080
je 0x63219052
mov esi, ebx
mov dword [esp + 0x1c], edx
shr esi, 0x10
test ebx, 0x8080
cmove ebx, esi
lea esi, [ecx + 2]
cmove ecx, esi
mov edx, ebx
add dl, bl
mov edx, dword [esp + 0x1c]
sbb ecx, 3
xor ebx, ebx
sub ecx, edi
add ecx, 1
jmp 0x632190b6
movzx edx, byte [edi + ebx]
mov esi, dword [ebp + 8]
mov byte [esi + eax], dl
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
add ebx, 1
cmp ecx, ebx
jle 0x63218f65
mov edx, dword [ebp + 0x10]
sub edx, eax
test edx, edx
jg 0x63219095
mov dword [ebp], 1
jmp 0x632190a8
mov dword [ebp], 1
jmp 0x63218ed4
mov dword [ebp], 1
jmp 0x6321904c