Function at 0x401990
Capabilities:
Enumerate processes
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x340
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x245]
mov byte [esp + 0x244], 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 + 0x141]
mov byte [esp + 0x140], 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 0x401a26
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
mov dword [esp + 8], eax
je 0x401bf7
push ebx
lea edx, [esp + 0x14]
push ebp
lea eax, [esp + 0x24c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401bea
mov al, byte [esp + 0x24c]
lea ebp, [esp + 0x24c]
cmp al, 0x20
jne 0x401a6b
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x401a63
mov al, byte [ebp]
xor esi, esi
cmp al, 0x22
jne 0x401a8b
lea eax, [ebp + 1]
push 0x40b0ac
push eax
call fcn.004033e0
add esp, 8
sub eax, ebp
js 0x401a8b
mov esi, eax
add esi, ebp
push 0x40b0a8
push esi
call fcn.004033e0
add esp, 8
sub eax, ebp
js 0x401aa3
mov byte [eax + ebp], 0
push 0x40b0ac
push ebp
call fcn.004033e0
add esp, 8
test eax, eax
je 0x401ade
mov cl, byte [eax + 1]
test cl, cl
je 0x401ac9
mov cl, byte [eax + 1]
mov byte [eax], cl
mov cl, byte [eax + 2]
inc eax
test cl, cl
jne 0x401abc
push 0x40b0ac
push ebp
mov byte [eax], 0
call fcn.004033e0
add esp, 8
test eax, eax
jne 0x401ab5
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
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 0x401b4d
cmp byte [ecx], 0x5c
je 0x401b22
dec ecx
cmp ecx, ebp
ja 0x401b16
jmp 0x401b4d
cmp ecx, ebp
jbe 0x401b4d
lea edi, [ecx + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
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]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x401bea
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x128
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401bea
mov edi, dword [esp + 0x354]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x44]
lea eax, [esp + 0x148]
push edx
push eax
call fcn.004091e0
add esp, 8
test eax, eax
jne 0x401bdb
test edi, edi
je 0x401bb7
cmp dword [esp + 0x38], edi
sete al
test eax, eax
je 0x401bdb
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0x1f0fff
call ebp
mov esi, eax
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x401bea
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401b8f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x340
ret