Function at 0x4021e0
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
sub esp, 0x568
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
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 + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0x104
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareClasseshttp_shellopencommand
push 0x80000001
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 8], eax
jne 0x40226c
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareClasseshttp_shellopencommand
push 0x80000002
call esi
neg eax
sbb eax, eax
inc eax
je 0x4024ef
push ebx
lea edx, [esp + 0x14]
push ebp
lea eax, [esp + 0x128]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x4024e0
mov al, byte [esp + 0x128]
lea ebp, [esp + 0x128]
cmp al, 0x20
jne 0x4022b6
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x4022ae
mov al, byte [ebp]
xor esi, esi
cmp al, 0x22
jne 0x4022d6
lea eax, [ebp + 1]
push 0x40b0ac
push eax
call fcn.004033e0
add esp, 8
sub eax, ebp
js 0x4022d6
mov esi, eax
add esi, ebp
push 0x40b0a8
push esi
call fcn.004033e0
add esp, 8
sub eax, ebp
js 0x4022ee
mov byte [eax + ebp], 0
push 0x40b0ac
push ebp
call fcn.004033e0
add esp, 8
test eax, eax
je 0x402329
mov cl, byte [eax + 1]
test cl, cl
je 0x402314
mov cl, byte [eax + 1]
mov byte [eax], cl
mov cl, byte [eax + 2]
inc eax
test cl, cl
jne 0x402307
push 0x40b0ac
push ebp
mov byte [eax], 0
call fcn.004033e0
add esp, 8
test eax, eax
jne 0x402300
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
cmp ecx, ebp
jbe 0x402392
cmp byte [ecx], 0x5c
je 0x40236a
dec ecx
cmp ecx, ebp
ja 0x40235e
jmp 0x402392
cmp ecx, ebp
jbe 0x402392
lea edi, [ecx + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x57c]
test edi, edi
je 0x4023bf
mov esi, dword [esp + 0x580]
test esi, esi
je 0x4023bf
lea ecx, [esi - 1]
lea edx, [esp + 0x24]
push ecx
push edx
push edi
call fcn.00403460
add esp, 0xc
mov byte [edi + esi - 1], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x4024e0
lea eax, [esp + 0x22c]
mov dword [esp + 0x22c], 0x128
push eax
push edi
mov dword [esp + 0x18], 0
mov esi, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4024dc
lea ecx, [esp + 0x250]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004091e0
add esp, 8
test eax, eax
jne 0x4024c2
mov eax, dword [0x40dd30]
xor esi, esi
cmp eax, 6
mov dword [esp + 0x10], 1
jae 0x4024c2
mov eax, dword [esp + 0x234]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4024c2
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x358]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x354]
mov dword [esp + 0x354], 0x224
push ecx
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4024b7
lea edx, [esp + 0x474]
push ebp
push edx
call fcn.004091e0
add esp, 8
test eax, eax
je 0x40249d
mov dword [esp + 0x10], esi
mov esi, 1
jmp 0x4024b7
lea eax, [esp + 0x24]
push str.iexplore.exe
push eax
call fcn.004091e0
add esp, 8
test eax, eax
jne 0x4024b7
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x22c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test esi, esi
je 0x4024dc
test eax, eax
jne 0x402405
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x568
ret