Function at 0x1017b6c
Capabilities:
Enumerate process modules

Disassembly:
push 0x684
mov eax, 0x101a37d
call fcn.01012582
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x424
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x63c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x640], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x66c]
call fcn.0101292a
lea ecx, [ebp - 0x678]
mov dword [ebp - 4], edi
call fcn.0101292a
mov dword [ebp - 0x660], edi
xor eax, eax
lea edi, [ebp - 0x65c]
mov byte [ebp - 4], 1
stosd dword es:[edi], eax
test ebx, ebx
jne 0x1017c2d
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1017c00
test byte [eax + 0x1c], 1
je 0x1017c00
push 0x1003070
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80070057
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 0
call fcn.0101293c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.0101293c
mov eax, edi
call fcn.01012614
ret 0x14
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessId]
push ebx
call edi
mov dword [ebp - 0x644], eax
test eax, eax
jne 0x1017c74
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1017c64
test byte [eax + 0x1c], 1
je 0x1017c64
push 0x1003070
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov edi, eax
jmp 0x1017c05
xor eax, eax
mov word [ebp - 0x218], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1002b78
mov dword [ebp - 0x64c], eax
call fcn.01013f92
mov dword [ebp - 0x654], eax
test eax, eax
jne 0x1017cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1018304
test byte [eax + 0x1c], 1
je 0x1018304
push 0x1003070
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1018304
push 0x10031f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x650], eax
test eax, eax
jne 0x1017d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1018304
test byte [eax + 0x1c], 1
je 0x1018304
push edi
push 0x1003070
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x1018304
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xa0], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esi + 0xa4], eax
mov dword [esi + 0x9c], eax
call edi
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x660]
push eax
push ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x1017d91
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x65c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
push dword [ebp - 0x644]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x644], eax
cmp eax, 0xffffffff
jne 0x1017ddf
mov edi, 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182f8
test byte [eax + 0x1c], 1
je 0x10182f8
push 0x1003070
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x10182f8
lea ecx, [ebp - 0x640]
push ecx
push eax
mov dword [ebp - 0x640], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x1017e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x10182ef
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x624]
push ebx
call dword [ebp - 0x650]
test eax, eax
jne 0x1017e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x1017e8b
test byte [ecx + 0x1c], 1
je 0x1017e8b
push eax
push 0x1003070
push 0x31
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01006418
lea eax, [esi + 0x34]
push eax
lea ecx, [esi + 0x2c]
push ecx
lea edx, [esi + 0x14]
push edx
lea ebx, [esi + 8]
push ebx
push dword [ebp - 0x624]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x648]
mov ecx, esi
call fcn.01016bce
mov edi, eax
test edi, edi
jge 0x1017f00
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push 0x1003070
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x10182ef
lea eax, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.01012949
push eax
call fcn.010165c0
lea edi, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.01012949
push eax
push dword [ebp - 0x658]
mov ecx, esi
push dword [ebp - 0x648]
call fcn.01017b10
push edi
mov ecx, ebx
call fcn.01012949
push eax
mov ecx, esi
call fcn.01016ed7
mov ecx, ebx
call fcn.01012949
push eax
push 0x10031e8
call fcn.01017126
mov ebx, 0x1001580
lea ecx, [esi + 0x60]
push ebx
call fcn.01012cbe
mov edi, eax
test edi, edi
jge 0x1017f8c
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push 0x1003070
push 0x33
jmp 0x1017ef0
lea ecx, [esi + 0x6c]
push ebx
call fcn.01012cbe
mov edi, eax
test edi, edi
jge 0x1017fc1
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push 0x1003070
push 0x34
jmp 0x1017ef0
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x628]
lea edx, [ecx + eax]
mov ecx, dword [esi + 0xa4]
cmp ecx, eax
jb 0x1017fde
cmp ecx, edx
jb 0x1018034
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x644]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1017fc1
lea eax, [ebp - 0x658]
push eax
mov ecx, esi
call fcn.0101770e
mov ebx, 0x101d014
mov ecx, esi
call fcn.0101706a
test eax, eax
je 0x1018017
call fcn.010178a2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x64c], eax
ja 0x1018111
sub eax, dword [ebp - 0x64c]
jmp 0x1018118
sub ecx, eax
xor eax, eax
mov word [ebp - 0x218], ax
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x624]
mov dword [esi + 0x9c], ecx
push dword [ebp - 0x648]
call dword [ebp - 0x650]
test eax, eax
jne 0x10180b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov ecx, dword [0x101d014]
mov ebx, 0x101d014
cmp ecx, ebx
je 0x101809c
test byte [ecx + 0x1c], 1
je 0x101809c
push eax
push 0x1003070
push 0x35
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01006418
jmp 0x10180b7
mov ebx, 0x101d014
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x6c]
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0x624]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x648]
mov ecx, esi
call fcn.01016bce
mov edi, eax
test edi, edi
jge 0x1018007
mov eax, dword [0x101d014]
cmp eax, ebx
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push 0x1003070
push 0x36
jmp 0x1017ef0
sub eax, dword [ebp - 0x64c]
dec eax
mov ecx, dword [0x101d014]
cmp ecx, ebx
je 0x101813b
test byte [ecx + 0x1c], 4
je 0x101813b
push eax
push 0x1003070
push 0x37
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
lea ecx, [esi + 0x60]
call fcn.01012949
push eax
push 0x10031d8
call fcn.01017126
movzx eax, word [esi + 0x32]
push eax
movzx eax, word [esi + 0x30]
push eax
movzx eax, word [esi + 0x2e]
push eax
movzx eax, word [esi + 0x2c]
push eax
lea eax, [esi + 0x48]
push 0x10031c0
push eax
call fcn.010136de
mov edi, eax
add esp, 0x18
test edi, edi
jge 0x101819d
mov eax, dword [0x101d014]
cmp eax, ebx
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x38
jmp 0x1017e2a
push dword [esi + 0x34]
mov ebx, 0x1002a64
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.010136de
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x10181df
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x39
jmp 0x1017e2a
movzx eax, word [esi + 0x7e]
push eax
movzx eax, word [esi + 0x7c]
push eax
movzx eax, word [esi + 0x7a]
push eax
movzx eax, word [esi + 0x78]
push eax
lea eax, [esi + 0x84]
push 0x10031c0
push eax
call fcn.010136de
mov edi, eax
add esp, 0x18
test edi, edi
jge 0x1018234
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x3a
jmp 0x1017e2a
push dword [esi + 0x80]
lea eax, [esi + 0x90]
push ebx
push eax
call fcn.010136de
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x1018277
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x3b
jmp 0x1017e2a
push dword [esi + 0xa0]
lea eax, [esi + 0xb4]
push ebx
push eax
call fcn.010136de
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x10182b2
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x3c
jmp 0x1017e2a
push dword [esi + 0x9c]
add esi, 0xa8
push ebx
push esi
call fcn.010136de
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x10182ed
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10182ef
test byte [eax + 0x1c], 1
je 0x10182ef
push edi
push 0x1003070
push 0x3d
jmp 0x1017e2a
xor edi, edi
cmp dword [ebp - 0x644], 0
je 0x1018304
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x654], 0
je 0x1017c05
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1017c05