Function at 0x422ec0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49176d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b4180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0x400
call fcn.004253b0
mov ebx, dword [ebp - 0x30]
mov edx, ebx
mov esi, dword [ebp - 0x34]
sub edx, esi
mov ecx, dword [ebp - 0x10]
sar edx, 2
cmp ecx, edx
jae 0x422f3a
lea ebx, [esi + ecx*4]
jmp 0x422f7a
jbe 0x422f7d
mov eax, dword [ebp - 0x2c]
sub eax, esi
sar eax, 2
cmp ecx, eax
jbe 0x422f5d
push ecx
push ecx
lea ecx, [ebp - 0x34]
call fcn.00425600
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
jmp 0x422f7d
sub ecx, edx
lea esi, [ecx*4]
push esi
push 0
push ebx
call fcn.0046dc50
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ebx, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], ebx
mov edi, dword [sym.imp.PSAPI.DLL_EnumProcesses]
lea eax, [ebp - 0x10]
push eax
lea eax, [ecx*4]
push eax
push esi
call edi
test eax, eax
je 0x423276
mov eax, ebx
sub eax, esi
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp eax, esi
jne 0x42305e
nop dword [eax]
mov eax, dword [ebp - 0x2c]
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x34]
sub eax, esi
sar eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jbe 0x422fe9
cmp ecx, 0x3fffffff
ja 0x4232bf
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004253b0
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov edx, ebx
sub edx, esi
sar edx, 2
cmp ecx, edx
jae 0x422ff9
lea ebx, [esi + ecx*4]
jmp 0x423039
jbe 0x42303c
mov eax, dword [ebp - 0x2c]
sub eax, esi
sar eax, 2
cmp ecx, eax
jbe 0x42301c
push ecx
push ecx
lea ecx, [ebp - 0x34]
call fcn.00425600
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
jmp 0x42303c
sub ecx, edx
lea esi, [ecx*4]
push esi
push 0
push ebx
call fcn.0046dc50
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ebx, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
call edi
test eax, eax
je 0x423276
mov eax, ebx
sub eax, esi
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp eax, esi
je 0x422fb0
mov edi, dword [ebp - 0x34]
mov ecx, ebx
sub ecx, edi
shr esi, 2
sar ecx, 2
cmp esi, ecx
jae 0x423074
lea ebx, [edi + esi*4]
jmp 0x4230a7
jbe 0x4230aa
mov eax, dword [ebp - 0x2c]
sub eax, edi
sar eax, 2
cmp esi, eax
jbe 0x423094
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00425600
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
jmp 0x4230aa
sub esi, ecx
shl esi, 2
push esi
push 0
push ebx
call fcn.0046dc50
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x30], ebx
mov eax, edi
mov dword [ebp - 0x1c], edi
cmp eax, ebx
je 0x423272
push dword [eax]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x423261
call fcn.004038b0
mov ecx, eax
test ecx, ecx
je 0x4232ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, 1
mov dword [ebp - 0x20], 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x42311a
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cc0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x423137
xor ecx, ecx
jmp 0x423150
push dword [eax - 8]
push eax
call fcn.004797b1
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4232c4
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x4232c4
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.004038b0
test eax, eax
je 0x4232ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004029f0
test al, al
jne 0x4231c9
test esi, esi
jne 0x4231a7
xor ecx, ecx
jmp 0x4231bf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4231b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00402d20
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov eax, dword [eax + 4]
cmp edi, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
je 0x42322a
nop
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4232ce
mov edx, eax
nop dword [eax]
mov si, word [edx]
cmp si, word [ecx]
jne 0x423216
test si, si
je 0x423212
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x423216
add edx, 4
add ecx, 4
test si, si
jne 0x4231f0
xor ecx, ecx
jmp 0x42321b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x423222
mov byte [edi], 1
add edi, 8
cmp edi, dword [ebp - 0x28]
jne 0x4231e0
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423242
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423261
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x4230b7
mov bl, 1
jmp 0x423278
xor bl, bl
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x4232ab
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4232a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232d8
push ecx
push edx
call fcn.0046b748
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403150
push 0x80070057
call fcn.00403680
push 0x80004005
call fcn.00403680
call fcn.00470dbf
int3