Function at 0x601074f0
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x60148685
mov eax, dword fs:[0]
push eax
mov eax, 0x1454
mov dword fs:[0], esp
call fcn.601479f0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1474]
mov eax, dword [edi + 8]
lea ebp, [edi + 0x24]
test ebp, ebp
mov esi, ecx
mov dword [esi + 0x4c], eax
mov dword [esp + 0x24], ebp
lea ecx, [esi + 0x50]
jne 0x60107534
xor eax, eax
jmp 0x60107549
mov eax, ebp
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x60107540
sub eax, ebx
push eax
push ebp
call fcn.60104370
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x13], 0
call dword [edx + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x60107742
mov eax, dword [edi + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x601078ca
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0
push ebx
call dword [esi + 0xc]
test eax, eax
je 0x601075b9
lea edx, [esp + 0x38]
lea edi, [esi + 0x54]
push edx
mov ecx, edi
call fcn.60104570
mov edi, dword [edi]
push 1
push edi
mov ecx, esi
call fcn.60106f60
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x46c]
push ecx
push ebx
call dword [esi + 8]
test eax, eax
je 0x6010773c
mov eax, dword [esp + 0x18]
xor ebp, ebp
test eax, 0xfffffffc
mov dword [esp + 0x14], ebp
jbe 0x6010773c
lea esp, [esp]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe4]
test al, al
je 0x6010773c
mov ecx, dword [esp + ebp*4 + 0x464]
push 0x104
lea eax, [esp + 0x3c]
push eax
push ecx
push ebx
call dword [esi + 0xc]
test eax, eax
je 0x60107728
cmp byte [esp + 0x38], 0x5c
jne 0x6010769d
cmp byte [esp + 0x39], 0x3f
mov al, byte [esp + 0x3a]
jne 0x60107647
cmp al, 0x3f
jne 0x60107647
cmp byte [esp + 0x3b], 0x5c
jne 0x60107728
lea edi, [esp + 0x3c]
jmp 0x601076a1
cmp al, 0x79
jne 0x60107728
cmp byte [esp + 0x40], 0x6f
jne 0x60107728
cmp byte [esp + 0x43], 0x5c
jne 0x60107728
push 0
push 0x24
lea edx, [esp + 0x368]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x60107728
lea eax, [esp + 0x43]
push eax
lea ecx, [esp + 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [esp + 0x360]
jmp 0x601076a1
lea edi, [esp + 0x38]
push edi
mov ecx, esi
call fcn.601069c0
test al, al
jne 0x60107723
push edi
lea ecx, [esp + 0x20]
call fcn.601045b0
mov ebx, dword [esi + 0x44]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
lea ebp, [esi + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0x1474], 0
call fcn.6010a140
cmp dword [eax], ebx
jne 0x60107705
mov ecx, dword [esp + 0x24]
push edi
push ecx
mov ecx, esi
call fcn.601063e0
push 0
push edi
mov ecx, esi
call fcn.60106f60
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.6010a900
lea ecx, [esp + 0x1c]
mov dword [esp + 0x146c], 0xffffffff
call fcn.601042d0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
jmp 0x60107728
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x18]
inc ebp
shr ecx, 2
cmp ebp, ecx
mov dword [esp + 0x14], ebp
jb 0x601075f0
push ebx
jmp 0x601078a2
mov edx, dword [edi + 8]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x601078ca
lea eax, [esp + 0x13c]
push eax
push edi
mov dword [esp + 0x144], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x601077b3
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
nop
push ebp
lea ecx, [esp + 0x260]
push ecx
call ebx
test eax, eax
jne 0x601077a3
lea edx, [esp + 0x13c]
push edx
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x60107780
jmp 0x601077b3
lea eax, [esp + 0x25c]
push eax
lea ecx, [esi + 0x54]
call fcn.60104570
lea ecx, [esp + 0x13c]
push ecx
push edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x601078a1
lea esp, [esp]
lea edx, [esp + 0x25c]
push edx
mov ecx, esi
call fcn.601069c0
test al, al
jne 0x601078e5
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x18]
call fcn.601045b0
mov ebx, dword [esi + 0x44]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
lea edi, [esi + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0x1474], 1
call fcn.6010a140
cmp dword [eax], ebx
jne 0x60107850
lea eax, [esp + 0x25c]
push eax
push ebp
mov ecx, esi
call fcn.601063e0
push 0
lea ecx, [esp + 0x260]
push ecx
mov ecx, esi
call fcn.60106f60
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.6010a900
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x146c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60107879
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x13c]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x601078a1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe4]
test al, al
jne 0x601077d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
test al, al
jne 0x601078bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x6c]
cmp dword [esp + 0x20], eax
je 0x601078ca
mov ecx, dword [esi + 0xc8]
inc ecx
mov dword [esi + 0xc8], ecx
mov ecx, dword [esp + 0x1464]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1460
ret 4
mov byte [esp + 0x13], 1
jmp 0x6010787d