Function at 0x4053d0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1bc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
call fcn.0040c916
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push str.6__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
push esi
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push esi
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x80000001
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40562a
mov edi, 1
lea edx, [esp + 0x2c]
lea eax, [esp + 0xcc]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push 0
lea eax, [esp + 0x5c]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x48], 0x80
mov dword [esp + 0x4c], 0x100
call ebp
cmp eax, 0x103
je 0x40556d
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x4054e7
cmp eax, 2
jne 0x405567
lea edx, [esp + 0x24]
lea eax, [esp + 0xcc]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00402510
add esp, 8
test eax, eax
jne 0x405567
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push 0x411a08
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x1d8]
add esp, 8
xor edi, edi
test eax, eax
je 0x405567
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x405494
test edi, edi
jne 0x40561d
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x40561d
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x40561d
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.00401d00
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4055e3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x4119e0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4055fc
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4119b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x48]
add esp, 8
inc esi
cmp esi, eax
jl 0x405592
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40562e
mov edi, dword [esp + 0x1c]
xor edx, edx
push 0xffffffffffffffff
test edi, edi
sete dl
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], edx
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x405816
mov edi, 1
xor esi, esi
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xcc]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push 0
lea edx, [esp + 0x5c]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x48], 0x80
mov dword [esp + 0x4c], 0x100
call ebp
cmp eax, 0x103
je 0x40575b
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x4056d5
cmp eax, 2
jne 0x405755
lea ecx, [esp + 0x24]
lea edx, [esp + 0xcc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402510
add esp, 8
test eax, eax
jne 0x405755
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push 0x411a08
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x1d8]
add esp, 8
xor edi, edi
test eax, eax
je 0x405755
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x405682
test edi, edi
jne 0x40580b
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x40580b
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x40580b
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.00401d00
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4057d1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4119e0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4057ea
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x4119b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x48]
add esp, 8
inc esi
cmp esi, eax
jl 0x405780
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
xor ecx, ecx
test edi, edi
sete cl
or esi, ecx
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x405a04
mov edi, 1
xor esi, esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x5c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x48], 0x80
mov dword [esp + 0x4c], 0x100
call ebp
cmp eax, 0x103
je 0x405949
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x4058c3
cmp eax, 2
jne 0x405943
lea eax, [esp + 0x24]
lea edx, [esp + 0xcc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402510
add esp, 8
test eax, eax
jne 0x405943
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push 0x411a08
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x1d8]
add esp, 8
xor edi, edi
test eax, eax
je 0x405943
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x405870
test edi, edi
jne 0x4059f9
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x4059f9
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x4059f9
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.00401d00
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4059bf
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4119e0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4059d8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x4119b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x48]
add esp, 8
inc esi
cmp esi, eax
jl 0x40596e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
xor ecx, ecx
test edi, edi
sete cl
or esi, ecx
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x405bf2
mov edi, 1
xor esi, esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x5c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x48], 0x80
mov dword [esp + 0x4c], 0x100
call ebp
cmp eax, 0x103
je 0x405b37
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x405ab1
cmp eax, 2
jne 0x405b31
lea eax, [esp + 0x24]
lea edx, [esp + 0xcc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402510
add esp, 8
test eax, eax
jne 0x405b31
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push 0x411a08
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x1d8]
add esp, 8
xor edi, edi
test eax, eax
je 0x405b31
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x405a5e
test edi, edi
jne 0x405be7
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x405be7
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x405be7
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.00401d00
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405bad
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4119e0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x405bc6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x4119b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x48]
add esp, 8
inc esi
cmp esi, eax
jl 0x405b5c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x34]
xor ecx, ecx
test edi, edi
sete cl
or ecx, eax
jne 0x405c0d
lea edx, [esp + 0x10]
push 0x411990
push edx
jmp 0x405c17
lea eax, [esp + 0x10]
push 0x411974
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
call fcn.0040c91c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1bc
ret