Function at 0x407780
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438ae1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x112c
call fcn.00416420
mov eax, dword [0x44c41c]
push ebx
push esi
mov dword [esp + 0x1130], eax
mov eax, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402660
push 4
xor ebx, ebx
push str..exe
lea ecx, [esp + 0x18]
mov dword [esp + 0x114c], ebx
call fcn.004063c0
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x30]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4079d3
mov eax, dword [esp + 0x1c]
shr eax, 2
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
jbe 0x4079d3
mov eax, dword [str._unknown_]
mov ecx, dword [0x43cc24]
mov dx, word [0x43cc28]
mov dword [esp + 0x1028], eax
mov dword [esp + 0x102c], ecx
xor eax, eax
mov word [esp + 0x1030], dx
mov ecx, 0x3e
lea edi, [esp + 0x1032]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x28]
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4079be
push 0x104
lea edx, [esp + 0x102c]
push edx
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x4079b7
lea eax, [esp + 0x1028]
push eax
lea ecx, [esp + 0x10]
call fcn.00402660
mov ecx, dword [esp + 0xc]
push 0x5c
push ecx
mov byte [esp + 0x114c], 1
call fcn.00415319
add esp, 8
cmp eax, ebx
je 0x4078bc
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x4078f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1144], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4079be
inc eax
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00402080
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1148], 2
call fcn.00402010
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1144], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
push edi
push eax
call fcn.0041511c
add esp, 8
test eax, eax
je 0x407964
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.0041511c
add esp, 8
test eax, eax
jne 0x407992
mov edx, dword [esp + 0x18]
sub edx, edi
mov eax, edi
add edx, 0x98
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x407972
mov eax, dword [esp + 0x18]
push ebx
push esi
mov dword [eax + 0x94], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1144], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x407812
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x113c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1134]
call fcn.004148c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4