Function at 0x409770
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42060b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x427550]
push ebx
xor eax, ebp
push esi
mov dword [esp + 0x240], eax
mov eax, dword [0x4283f4]
push edi
mov ecx, 0x4283f4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov esi, dword [edi - 4]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, esi
mov esi, 0x104
xor ebx, ebx
sub eax, esi
or eax, ecx
mov dword [esp + 0x254], ebx
jge 0x4097e5
push esi
lea ecx, [esp + 0x10]
call fcn.00406420
mov edi, dword [esp + 0xc]
cmp dword [edi - 8], esi
jge 0x4097f4
push 0x80070057
call fcn.00405860
mov dword [edi - 0xc], esi
mov byte [edi + 0x104], bl
push esi
mov ebx, 0x421764
mov ecx, edi
call fcn.0040dfd0
add esp, 4
test eax, eax
mov eax, edi
lea edx, [eax + 1]
jne 0x409835
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409816
sub eax, edx
js 0x4097ea
cmp eax, dword [edi - 8]
jg 0x4097ea
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
lea eax, [edi - 0x10]
jmp 0x4099ac
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409835
sub eax, edx
js 0x4097ea
cmp eax, dword [edi - 8]
jg 0x4097ea
mov dword [edi - 0xc], eax
push 0x4215dc
lea ecx, [esp + 0x10]
mov byte [eax + edi], 0
call fcn.00407000
push 0xc
push str._ravmond.exe
lea ecx, [esp + 0x14]
call fcn.00406e60
xor eax, eax
push eax
mov dword [esp + 0x14], 0
mov ecx, 0x49
lea edi, [esp + 0x18]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x4098ad
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x254], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x4099c4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4098e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x254], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x4099c4
mov ebx, dword [esp + 0xc]
lea esp, [esp]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40998f
push 0x104
lea ecx, [esp + 0x13c]
push ecx
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x409988
mov eax, dword [ebx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, 0x104
or eax, ecx
jge 0x409959
push 0x104
lea ecx, [esp + 0x10]
call fcn.00406420
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx - 8]
mov eax, 0x104
cmp ecx, eax
jl 0x4097ea
lea edx, [esp + 0x138]
push edx
mov dword [ebx - 0xc], eax
push ebx
mov byte [ebx + 0x104], 0
call fcn.0041ad68
add esp, 8
test eax, eax
je 0x4099f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4098f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4099d0