Function at 0x4017b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413816
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x494], edi
cmp edi, 0xffffffff
je 0x401817
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], 0x428
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x40181e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401b87
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x498], 1
mov edi, dword [eax]
mov dword [ebp - 0x490], edi
lea eax, [edi + 0xa8]
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x468]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401850
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00406f4c
add esp, 8
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401896
sub ecx, edx
lea eax, [ebp - 0x468]
sar ecx, 1
cmp ecx, 7
ja 0x4018cd
lea esi, [ecx + ecx]
mov dword [ebp - 0x18], ecx
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004053c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4018e4
push eax
mov byte [ebp - 0x4a4], 0
push dword [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, edx
setae bl
test bl, bl
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x28]
cmovne ecx, edx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.004023b0
mov byte [ebp - 4], 1
movaps xmm0, xmmword [0x419e30]
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x38], 0x62af6043
mov dword [ebp - 0x34], 0xd859bc88
mov dword [ebp - 0x30], 0x6fa55b19
mov byte [ebp - 0x2c], 0xeb
movups xmmword [ebp - 0x48], xmm0
test al, 1
jne 0x4019a7
or eax, 1
mov dword [edi + 0xa4], eax
mov ebx, dword [ebp - 0x48c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4a0], xmm0
mov edx, dword [ebp - 0x49c]
mov eax, dword [ebp - 0x4a0]
mov byte [ebp - 4], 2
mov byte [edi + 0xc5], 1
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + ebx], cl
add eax, 1
adc edx, 0
jne 0x401994
cmp eax, 0x1d
jb 0x401980
push 0x4139d0
call fcn.00402b2c
add esp, 4
mov byte [ebp - 4], 1
jmp 0x4019ad
mov ebx, dword [ebp - 0x48c]
cmp byte [edi + 0xc5], 0
je 0x401a04
xorps xmm0, xmm0
movlpd qword [ebp - 0x4a0], xmm0
mov edi, dword [ebp - 0x49c]
mov esi, dword [ebp - 0x4a0]
nop dword [eax]
mov ecx, esi
mov eax, 0x3c93f37
and ecx, 7
mov edx, 0xbd3dddeb
shl ecx, 3
call fcn.00413440
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x4019f7
cmp esi, 0x1d
jb 0x4019d0
mov eax, dword [ebp - 0x490]
mov byte [eax + 0xc5], 0
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
mov esi, dword [ebp - 0x60]
cmp edi, 0x10
mov ecx, ebx
setae dh
cmovae eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401a38
test dl, dl
je 0x401a34
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401a38
add eax, 2
add ecx, 2
test dl, dl
jne 0x401a18
xor eax, eax
jmp 0x401a3d
sbb eax, eax
or eax, 1
test eax, eax
je 0x401af1
mov byte [ebp - 4], 0
test dh, dh
je 0x401a78
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x401a6e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ba3
push ecx
push esi
call fcn.00402a7a
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 8
jb 0x401acb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ac1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ba3
push ecx
push edx
call fcn.00402a7a
add esp, 8
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x401b75
mov edi, dword [ebp - 0x490]
jmp 0x401842
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x498], eax
cmp edi, 0x10
jb 0x401b2d
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x401b23
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ba3
push ecx
push esi
call fcn.00402a7a
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 8
jb 0x401b75
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ba3
push ecx
push edx
call fcn.00402a7a
add esp, 8
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x498]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402a3c
mov esp, ebp
pop ebp
ret
call fcn.00407156
int3