Function at 0x4067d0
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov eax, 0x1a18
call fcn.0040e020
push esi
push edi
mov edi, dword [esp + 0x1a24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
ja 0x40682e
pop edi
pop esi
add esp, 0x1a18
ret
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, 4
push 0x5c
mov byte [ecx + edx], al
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x406864
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ecx
jmp 0x406869
inc eax
mov dword [esp + 0x20], eax
push ebx
push ebp
push 9
mov ecx, 0x4fb
xor eax, eax
lea edi, [esp + 0x640]
push str.softwaremicrosoftwindows_ntcurrentversionperflib
lea edx, [esp + 0x244]
push str._s_03x
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x23c]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406c46
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.Counters
push ecx
call ebp
test eax, eax
jne 0x406c46
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x406c46
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
push 0
push str.Counters
push edx
call ebp
test eax, eax
jne 0x406c38
mov al, byte [esi]
mov ebx, esi
test al, al
je 0x406a35
mov ebp, dword [sym.imp.MSVCRT.dll_isdigit]
cmp ebx, esi
jbe 0x406973
movsx eax, byte [ebx - 2]
lea esi, [ebx - 2]
push eax
call ebp
add esp, 4
test eax, eax
je 0x40696f
movsx ecx, byte [esi - 1]
dec esi
push ecx
call ebp
add esp, 4
test eax, eax
jne 0x406960
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str.process
push ebx
call edi
add esp, 8
test eax, eax
jne 0x4069d1
movsx edx, byte [ebx - 2]
lea esi, [ebx - 2]
push edx
call ebp
add esp, 4
test eax, eax
je 0x4069a8
movsx eax, byte [esi - 1]
dec esi
push eax
call ebp
add esp, 4
test eax, eax
jne 0x406999
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x23c]
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]
jmp 0x406a0f
push str.id_process
push ebx
call edi
add esp, 8
test eax, eax
jne 0x406a13
movsx ecx, byte [ebx - 2]
lea esi, [ebx - 2]
push ecx
call ebp
add esp, 4
test eax, eax
je 0x406a00
movsx edx, byte [esi - 1]
dec esi
push edx
call ebp
add esp, 4
test eax, eax
jne 0x4069f1
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x40694b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
call dword [sym.imp.MSVCRT.dll_free]
push 0xc800
mov dword [esp + 0x1c], 0xc800
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
add esp, 8
test edx, edx
mov dword [esp + 0x10], edx
je 0x406c46
mov ecx, dword [esp + 0x14]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [sym.imp.MSVCRT.dll_realloc]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push edx
push ecx
lea edx, [esp + 0x248]
push 0
push edx
push 0x80000004
call ebp
test eax, eax
je 0x406adf
cmp eax, 0xea
jne 0x406c34
mov eax, dword [esp + 0x14]
add eax, 0x6400
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x18], edi
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x406a7c
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x406c34
mov eax, dword [esp + 0x10]
cmp word [eax], 0x50
jne 0x406c34
mov ecx, eax
cmp word [ecx + 2], 0x45
jne 0x406c34
mov edx, eax
cmp word [edx + 4], 0x52
jne 0x406c34
cmp word [eax + 6], 0x46
jne 0x406c34
mov eax, dword [ecx + 0x18]
xor edx, edx
add eax, ecx
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0x20]
add ecx, eax
test esi, esi
jbe 0x406b4d
mov edi, dword [esp + 0x18]
mov ebx, dword [ecx + 4]
cmp ebx, edi
je 0x406b46
add ecx, 0x28
inc edx
cmp edx, esi
jb 0x406b31
jmp 0x406b4d
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x20], 0xfe
cmp ecx, 0xfe
ja 0x406b64
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + 4]
add ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x406c34
lea ebp, [esp + 0x63c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
push 0
push 0
lea edx, [esp + 0x140]
push 0x104
add eax, ebx
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x406bca
mov edi, str.unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 4]
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]
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
ja 0x406c05
lea edi, [esp + 0x138]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 4]
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 eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov ecx, dword [eax + ecx]
test ecx, ecx
mov dword [ebp], ecx
jne 0x406c1e
mov dword [ebp], 0xfffffffe
mov ebx, dword [eax]
add ebp, 0x14
add ebx, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x406b80
mov esi, dword [esp + 0x10]
test esi, esi
je 0x406c46
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push 0x80000004
call esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
jbe 0x406ce1
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [esp + 0x63c]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x406cd3
mov ecx, dword [ebx]
push ecx
push eax
push 1
call ebp
mov esi, eax
test esi, esi
je 0x406cc8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406cc1
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
add ebx, 0x14
dec eax
mov dword [esp + 0x18], eax
jne 0x406c7b
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1a18
ret