Function at 0x40eb00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418270
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x488], edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x48c], esi
test esi, esi
je 0x40ebf0
cmp esi, 0xffffffff
je 0x40ebf0
push 0x200
lea eax, [ebp - 0x460]
mov dword [ebp - 0x480], 0x428
push 0
push eax
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x260]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x40ec0d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416332
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x40ec38
xorps xmm0, xmm0
xor esi, esi
mov edx, 7
mov dword [ebp - 0x30], esi
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], ax
jmp 0x40ecf7
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x40ec42
mov ecx, dword [edi]
push 0
push 0
push eax
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 7
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x58], ax
test esi, esi
jne 0x40ec80
mov dword [ebp - 0x48], esi
mov word [ebp + esi*2 - 0x58], ax
jmp 0x40ecb8
cmp esi, 7
ja 0x40eca7
xor eax, eax
mov dword [ebp - 0x48], esi
mov ecx, esi
lea edi, [ebp - 0x58]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x488]
xor eax, eax
mov word [ebp + esi*2 - 0x58], ax
jmp 0x40ecb8
push ecx
push esi
push dword [ebp - 0x48c]
lea ecx, [ebp - 0x58]
push esi
call fcn.00413640
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
mov ecx, dword [edi + 0x10]
cmova eax, dword [ebp - 0x58]
cmp dword [edi + 0x14], 0xf
jbe 0x40ecce
mov edi, dword [edi]
push esi
push eax
push ecx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp edx, 7
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x40]
cmova eax, ecx
lea edi, [ebp - 0x40]
cmova edi, ecx
lea eax, [eax + esi*2]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x488], eax
cmova esi, ecx
cmp esi, eax
je 0x40ed41
sub edi, esi
movzx eax, word [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x488]
jne 0x40ed25
mov dword [ebp - 4], 0xffffffff
mov edx, 0xa
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea esi, [ebp - 0x460]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ed70
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x40f0f3
mov dword [ebp - 0x14], 7
cmp esi, 7
ja 0x40edbc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x460]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x40ee5c
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40edd7
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x40edf4
cmp edi, 0xa
cmovb edi, edx
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x40f0f8
add eax, eax
cmp eax, 0x1000
jb 0x40ee1d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40f0f8
push ecx
call fcn.00416340
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40f0dc
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40ee2e
test eax, eax
je 0x40ee2c
push eax
call fcn.00416340
add esp, 4
jmp 0x40ee2e
xor eax, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x460]
add esi, esi
mov dword [ebp - 0x484], eax
push esi
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x484]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov dword [ebp - 4], 2
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
seta al
cmova edi, edx
test al, al
je 0x40ee84
mov esi, edx
lea eax, [edx + ecx*2]
jmp 0x40ee8a
lea eax, [esi + ecx*2]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x484], eax
cmp esi, eax
je 0x40eeb8
sub edi, esi
movzx eax, word [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x484]
jne 0x40ee96
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push 0
cmova eax, edx
lea eax, [eax + ecx*2]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x28]
cmova eax, edx
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x28]
cmova eax, edx
push ecx
push eax
call fcn.00416260
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov edi, eax
cmova ecx, dword [ebp - 0x28]
sub edi, ecx
mov ecx, dword [ebp - 0x484]
sub ecx, eax
sar edi, 1
sar ecx, 1
mov dword [ebp - 0x488], edi
mov edi, dword [ebp - 0x18]
mov eax, edi
mov dword [ebp - 0x484], ecx
mov ecx, dword [ebp - 0x488]
sub eax, ecx
mov esi, dword [ebp - 0x484]
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x484], esi
cmova eax, dword [ebp - 0x28]
lea edx, [eax + ecx*2]
mov eax, esi
sub edi, eax
lea ecx, [edx + eax*2]
mov eax, edi
sub eax, dword [ebp - 0x488]
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memmove
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmova eax, dword [ebp - 0x40]
cmp edi, 7
cmova ecx, esi
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40efa6
test dx, dx
je 0x40efa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40efa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x40ef80
xor eax, eax
jmp 0x40efab
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f054
cmp edi, 7
jbe 0x40efe7
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40efdd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0dc
push ecx
push esi
call fcn.00416375
add esp, 8
mov esi, dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
mov edx, 0xa
test eax, eax
jne 0x40ed50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40ebf0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f045
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f045
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00416375
add esp, 8
jmp 0x40ebf0
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x46c]
cmp ecx, 7
jbe 0x40f09c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f092
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0dc
push ecx
push edx
call fcn.00416375
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x40f0ec
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f0e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f0e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00416375
add esp, 8
mov eax, esi
jmp 0x40ebf2
call fcn.004011f0
call fcn.00401140
int3