Function at 0x100074e0
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1000c3eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x558
push esi
lea eax, [esp + 0x458]
push 0x104
mov esi, ecx
push eax
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x250]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0x18], edx
jne 0x10007556
xor eax, eax
pop esi
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
add esp, 0x564
ret
push ebx
push ebp
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x128
push eax
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10007946
mov eax, dword [esp + 0x38]
cmp eax, 0x14
jbe 0x100078f6
lea ecx, [esp + 0x158]
push 0x104
push ecx
push eax
mov ecx, esi
call fcn.10007970
test eax, eax
je 0x100078f6
mov edx, dword [0x1000f07c]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x158]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x570], ebx
jne 0x100075d3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
jmp 0x100075e5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x158]
push ecx
call edi
mov esi, eax
push esi
lea ecx, [esp + 0x14]
call fcn.10002ea0
test eax, eax
je 0x1000761c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x158]
push esi
lea eax, [esi + 1]
push edx
push eax
push ecx
call fcn.10002720
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
cmp dword [esp + 0x48], 0x14
jae 0x100077f9
push 0xb
lea ecx, [esp + 0x15c]
push str.SystemRoot
push ecx
call dword [0x1000d16c]
add esp, 0xc
test eax, eax
jne 0x100077f9
mov edx, str.SystemRoot
test edx, edx
je 0x10007828
push edx
call edi
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x10007828
lea eax, [esp + 0x25c]
test eax, eax
je 0x1000767a
lea ecx, [esp + 0x25c]
push ecx
call edi
mov ebx, eax
mov ebp, dword [esp + 0x10]
xor esi, esi
mov eax, dword [ebp - 8]
add eax, ebp
cmp ebp, eax
mov dword [esp + 0x20], eax
jae 0x1000782c
mov edi, dword [0x1000d17c]
push str.SystemRoot
push ebp
call edi
add esp, 8
test eax, eax
je 0x100076bd
mov edx, dword [esp + 0x14]
push str.SystemRoot
inc esi
lea ebp, [eax + edx]
push ebp
call edi
add esp, 8
test eax, eax
jne 0x100076a6
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
mov eax, dword [esp + 0x20]
cmp ebp, eax
jb 0x10007691
test esi, esi
jle 0x10007828
lea ecx, [esp + 0x10]
call fcn.10008370
mov edx, dword [esp + 0x14]
mov edi, ebx
mov ebp, dword [esp + 0x10]
sub edi, edx
imul edi, esi
mov eax, dword [ebp - 8]
mov dword [esp + 0x18], eax
add edi, eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x2c], edi
cmp eax, edi
jl 0x1000770a
cmp dword [ebp - 0xc], 1
jle 0x1000773f
push edi
lea ecx, [esp + 0x14]
lea esi, [ebp - 0xc]
call fcn.10002d80
test eax, eax
je 0x10007828
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [edi + 1]
push ebp
push ecx
push edx
call fcn.10002720
add esp, 0x10
push esi
call fcn.10003b00
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp - 8]
add eax, ebp
cmp ebp, eax
mov dword [esp + 0x20], eax
jae 0x100077f4
push str.SystemRoot
push ebp
call dword [0x1000d17c]
mov esi, eax
add esp, 8
test esi, esi
je 0x100077d9
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edi, esi
mov ebp, dword [eax - 4]
sub edi, ecx
sub ebp, esi
add edi, eax
add ebp, eax
add ecx, esi
mov edx, ebp
push edi
sub edx, ebx
lea eax, [esi + ebx]
inc edx
push ecx
push edx
push eax
mov dword [esp + 0x38], eax
call fcn.100080a0
lea eax, [esp + 0x26c]
push ebx
inc ebp
push eax
push ebp
push esi
call fcn.10002720
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov ecx, ebx
push str.SystemRoot
mov byte [edi + ebp], 0
mov edi, dword [esp + 0x3c]
sub ecx, eax
push ebp
add edi, ecx
mov dword [esp + 0x40], edi
call dword [0x1000d17c]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x10007765
mov edi, dword [esp + 0x2c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
mov eax, dword [esp + 0x20]
cmp ebp, eax
jb 0x10007750
mov ebp, dword [esp + 0x10]
mov dword [ebp - 8], edi
jmp 0x10007828
push 4
lea edx, [esp + 0x15c]
push str.___
push edx
call dword [0x1000d178]
add esp, 0xc
test eax, eax
jne 0x10007828
push 0x1000f6d4
push str.___
lea ecx, [esp + 0x18]
call fcn.100080d0
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x360]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x100078b8
mov ecx, dword [esp + 0x10]
mov esi, dword [0x1000d1d4]
push str.rundll32
push ecx
call esi
test eax, eax
jne 0x1000787a
mov edx, dword [esp + 0x10]
push str.regsvr32
push edx
call esi
test eax, eax
jne 0x1000787a
mov eax, dword [esp + 0x10]
push 0x1000f5ac
push eax
call esi
test eax, eax
je 0x10007891
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.100079c0
jmp 0x10007895
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.10007e60
test eax, eax
je 0x10007917
mov edx, dword [esp + 0x38]
mov ecx, esi
push edx
call fcn.10007d50
jmp 0x100078bc
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [0x1000f030]
mov dword [esp + 0x570], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x100078f6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100078f6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1000bdea
add esp, 4
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10007581
jmp 0x10007946
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1000f030]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x10007946
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10007946
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.1000bdea
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x568]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x564
ret