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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10070b77
push eax
mov eax, 0x1644
mov dword fs:[0], esp
call fcn.1006e670
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x10085048]
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], esi
mov dl, byte [0x1009bcc4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], dl
mov byte [esp + 0x44c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x44d]
mov byte [esp + 0x348], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x349]
mov byte [esp + 0x140], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov dword [esp + 0x165c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x245]
mov byte [esp + 0x244], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x551]
mov byte [esp + 0x550], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x244]
push 0x104
push eax
mov byte [esp + 0x1664], 3
mov dword [esp + 0x38], str.jscript.dll
mov dword [esp + 0x3c], str.msscript.ocx
mov dword [esp + 0x40], str.msvcp60.dll
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [0x1009bdd4]
push 0
lea ecx, [esp + 0x554]
push 0x104
push ecx
push edx
call fcn.10019830
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x654]
push eax
push 0x1000
push ecx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1001c1d8
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], 1
and edx, 0xfffffffc
cmp edx, 4
jbe 0x1001c1d8
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea eax, [esp + 0x658]
mov dword [esp + 0x24], eax
jmp 0x1001c09c
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push 0x104
push ecx
mov eax, dword [edx]
push eax
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x1001c1b5
lea ecx, [esp + 0x140]
lea edx, [esp + 0x348]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.10018ed0
lea ecx, [esp + 0x458]
push 0x104
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.10018d60
add esp, 0x18
xor esi, esi
lea edi, [esp + 0x30]
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
test eax, eax
jne 0x1001c139
inc esi
add edi, 4
cmp esi, 3
jb 0x1001c0f5
lea edx, [esp + 0x244]
lea eax, [esp + 0x3c]
push edx
push eax
call ebp
test eax, eax
je 0x1001c139
lea ecx, [esp + 0x140]
push str.Microsoft_Corporation
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x1001c1b5
lea edx, [esp + 0x550]
lea eax, [esp + 0x3c]
push edx
push eax
xor bl, bl
call ebp
test eax, eax
je 0x1001c150
mov bl, 1
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x1001c1b5
lea edx, [esp + 0x140]
lea ecx, [esp + 0x348]
push edx
push ecx
lea edx, [esp + 0x454]
lea ecx, [esp + 0x44]
inc eax
push edx
push ecx
push eax
lea edx, [esp + 0x28]
push str._s____s___s___s___s__r_n
push edx
call fcn.10003bb0
mov eax, dword [esp + 0x30]
add esp, 0x1c
test bl, bl
push eax
je 0x1001c1a8
mov eax, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
jmp 0x1001c1b0
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.1001a600
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
inc eax
shr edx, 2
add edi, 4
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
jb 0x1001c098
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.1001c3d0
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esp + 0x10]
cmp eax, esi
mov byte [esp + 0x165c], 4
je 0x1001c26a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x1001c214
mov ecx, dword [0x1008504c]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x1001c21b
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x1001c251
mov ebp, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebp
call fcn.10001d60
test eax, eax
je 0x1001c26a
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov byte [edx + ebp], 0
jmp 0x1001c26a
lea ecx, [esp + 0x10]
call fcn.10001d20
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x1008504c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x165c], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001c2a3
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001c2a3
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
lea eax, [esp + 0x10]
push 0x2d
push eax
call fcn.10019be0
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 8
mov byte [esp + 0x165c], 2
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1664]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx - 8]
mov edx, dword [0x1008504c]
lea esi, [ecx + eax]
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001c315
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001c315
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x1008504c]
mov byte [esp + 0x165c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001c348
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001c348
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x1008504c]
mov byte [esp + 0x165c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001c37b
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001c37b
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x1008504c]
mov dword [esp + 0x165c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001c3b1
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001c3b1
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.1003c010
add esp, 4
mov ecx, dword [esp + 0x1654]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1650
ret 4