Function at 0x40e210
Capabilities:
Delete registry value
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdc46
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.Vcheck
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x15c], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea eax, [ebp - 0x180]
mov dword [ebp - 4], 0
push 1
push eax
call fcn.00409c90
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x17c]
mov edi, 0x400
mov ecx, dword [esi]
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebx + 0xd0]
cmp eax, dword [ebx + 0xcc]
je 0x40e2fc
push eax
push str.VerCheckDays
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
add esp, 0x10
push dword [ebx + 0xc8]
push str.lvAsked
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
push dword [ebx + 0xbc]
push str.lvMajor
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
push dword [ebx + 0xc0]
push str.lvMinor
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
push dword [ebx + 0xc4]
push str.lvFix
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
add esp, 0x40
push dword [0x5206f8]
push str.Ltch
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
push dword [0x520700]
push str.Lvch
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
push dword [ebx + 0xe4]
push str.AdEngine
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x30
lea ecx, [ebx + 0xe4]
push str.self
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
test eax, eax
jne 0x40e97a
lea ecx, [ebp - 0x160]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push dword [ebx + 0xe8]
mov byte [ebp - 4], 5
push str.LastAN
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a790
add esp, 0x10
mov ecx, ebx
call fcn.0040cd00
xor esi, esi
cmp dword [ebx + 0xec], esi
jle 0x40e6d8
lea eax, [ebx + 0xf8]
mov dword [ebp - 0x158], eax
test esi, esi
je 0x40e441
push esi
lea eax, [ebp - 0x160]
push 0x4d4de4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
add esp, 0xc
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x174]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x160]
or edi, 0x200
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x174]
push str.AUrl
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [ebp - 0x158]
push dword [eax - 4]
push dword [ebp - 0x174]
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x24
lea ecx, [ebp - 0x174]
and edi, 0xfffffdff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x160]
or edi, 0x100
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x168]
push str.AImg
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [ebp - 0x158]
push dword [eax]
push dword [ebp - 0x168]
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x24
lea ecx, [ebp - 0x168]
and edi, 0xfffffeff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x16c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x160]
or edi, 0x80
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x16c]
push str.ATxt
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [ebp - 0x158]
push dword [eax - 8]
push dword [ebp - 0x16c]
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x24
lea ecx, [ebp - 0x16c]
and edi, 0xffffff7f
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0xa
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x158]
push dword [eax + 0xc]
push dword [eax + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
add esp, 0x10
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x170]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x160]
or edi, 0x40
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x170]
push str.AExp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x170]
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x24
lea ecx, [ebp - 0x170]
and edi, 0xffffffbf
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x160]
or edi, 0x20
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x164]
push str.Agif
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [ebp - 0x158]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp - 0x164]
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a740
add esp, 0x28
mov byte [ebp - 4], 5
and edi, 0xffffffdf
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x15c], edi
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
add dword [ebp - 0x158], 0x20
inc esi
cmp esi, dword [ebx + 0xec]
jl 0x40e427
lea eax, [ebp - 0x178]
push eax
push 0x20006
push 0
push dword [ebp - 0x154]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e96a
mov esi, dword [ebx + 0xec]
cmp esi, 0xa
jge 0x40e95e
nop
lea ecx, [ebp - 0x158]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xb
test esi, esi
je 0x40e73a
push esi
lea eax, [ebp - 0x158]
push 0x4d4de4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
add esp, 0xc
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x158]
or edi, 0x10
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x164]
push str.AUrl
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x164]
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x164]
and edi, 0xffffffef
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x170]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x158]
or edi, 8
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x170]
push str.AImg
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x170]
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x170]
and edi, 0xfffffff7
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x16c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x158]
or edi, 4
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x16c]
push str.ATxt
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x16c]
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x16c]
and edi, 0xfffffffb
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 2
mov dword [ebp - 0x15c], edi
mov eax, dword [ebp - 0x158]
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x168]
push str.AExp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x168]
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x168]
and edi, 0xfffffffd
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x10
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x174]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x158]
or edi, 1
mov dword [ebp - 0x15c], edi
push dword [eax - 0xc]
push eax
push 4
lea eax, [ebp - 0x174]
push str.Agif
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x174]
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
and edi, 0xfffffffe
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x15c], edi
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x158]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
cmp esi, 0xa
jl 0x40e710
push dword [ebp - 0x178]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebx + 0xd8]
push str.NewVerURL
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
push dword [ebx + 0xdc]
push str.Message
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
push dword [ebx + 0xe0]
push str.MessageURL
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x30
lea esi, [ebx + 0x234]
lea ecx, [ebp - 0x164]
push dword [esi]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
push dword [eax]
mov byte [ebp - 4], 0x11
push 0x4df4a8
push dword [ebp - 0x154]
push 0x80000001
call fcn.0040a7e0
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x164]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4df514
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
test eax, eax
jle 0x40eb5d
mov eax, dword [esi]
push 1
mov eax, dword [eax - 0xc]
add eax, 0x14
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ecx, dword [esi]
mov edi, eax
push 0
mov dword [ebp - 0x168], edi
mov ecx, dword [ecx - 0xc]
lea eax, [edi + 0xc]
add ecx, 0x14
mov dword [ebp - 0x16c], eax
mov dword [edi], ecx
mov ecx, dword [0x5206f8]
mov dword [edi + 4], ecx
mov ecx, dword [0x520700]
mov dword [edi + 8], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [edi + 0xc], eax
add esp, 0xc
mov ecx, dword [esi]
lea eax, [edi + 0x10]
mov dword [ebp - 0x170], eax
mov edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40ea80
mov eax, dword [esi]
lea ecx, [edi + 0xc]
mov edx, ecx
cmp dword [eax - 0xc], 0
jle 0x40eae0
mov eax, 0xfffffff0
lea esi, [edi + 0x10]
sub eax, edi
mov dword [ebp - 0x164], eax
mov edi, eax
nop dword [eax]
mov al, byte [edx]
lea esi, [esi + 1]
xor byte [esi - 1], al
inc edx
cmp edx, dword [ebp - 0x170]
mov eax, ecx
lea ecx, [edi + esi]
cmovb eax, edx
mov edx, eax
mov eax, dword [ebx + 0x234]
cmp ecx, dword [eax - 0xc]
mov ecx, dword [ebp - 0x16c]
jl 0x40eab0
mov edi, dword [ebp - 0x168]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 0
call fcn.0040ebd0
add esp, 0xc
mov esi, eax
cmp eax, 0x4dad36bb
jne 0x40eb07
mov eax, 0xa10b5339
mov esi, 0x24e3af87
push eax
lea eax, [ebp - 0xb0]
push str.Identities_X_CA39_31BF_B518_527AD6AE017B
push eax
call fcn.0040b210
push esi
lea eax, [ebp - 0x150]
push str.CLSID_X_C9A3_1B3F_B185_D6A527AE017BVERSION
push eax
call fcn.0040b210
push dword [edi]
lea eax, [ebp - 0xb0]
push edi
push 0x4df510
push eax
push 0x80000001
call fcn.0040a740
push dword [edi]
lea eax, [ebp - 0x150]
push edi
push 0
push eax
push 0x80000000
call fcn.0040a740
add esp, 0x40
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418035
mov esp, ebp
pop ebp
ret