Function at 0x404fb0
Capabilities:
Check if file exists
Delete directory
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Get installed programs
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507f4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b8
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404c70
push 0x45e8ec
lea ecx, [ebp - 0x408]
call fcn.004090c0
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x408]
call fcn.00408cd0
cmp dword [ebp - 0x3f8], eax
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x338], 0
cmovb eax, dword [ebp - 0x3f8]
cmp dword [ebp - 0x3f4], 0x10
push eax
cmovae ecx, dword [ebp - 0x408]
push ecx
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x408]
call fcn.00408fa0
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x4050b0
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406460
push edx
push ecx
call fcn.004120fb
add esp, 8
push 0x21
push str._n_____DIAS_installation_folder___
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 1
call fcn.00401ca0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x40512a
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405120
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406465
push edx
push ecx
call fcn.004120fb
add esp, 8
lea ecx, [ebp - 0x408]
call fcn.00406e20
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.004090c0
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3a8]
call fcn.00408cd0
cmp dword [ebp - 0x398], eax
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 0x338], 0
cmovb eax, dword [ebp - 0x398]
cmp dword [ebp - 0x394], 0x10
push eax
cmovae ecx, dword [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.00408fa0
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x4051ee
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4051e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40646a
push edx
push ecx
call fcn.004120fb
add esp, 8
push 0x15
push str._n_____Canon_folder___
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 3
call fcn.00401ca0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405268
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40525e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40646f
push edx
push ecx
call fcn.004120fb
add esp, 8
lea eax, [ebp - 0x3a8]
mov edx, str.__del_dir_:
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401ca0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x4052cb
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406474
push edx
push ecx
call fcn.004120fb
add esp, 8
push 0x140
lea eax, [ebp - 0x5a8]
push 0
push eax
call fcn.00413960
add esp, 0xc
lea edx, [ebp - 0x3a8]
lea ecx, [ebp - 0x450]
push 0x459f34
call fcn.0040a590
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5a8]
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push ecx
cmovae eax, dword [ebp - 0x450]
push eax
mov byte [ebp - 0x5a9], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x40542e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop word [eax + eax]
push 0x459f38
lea eax, [ebp - 0x57c]
push eax
call esi
test eax, eax
je 0x405387
push 0x459f3c
lea eax, [ebp - 0x57c]
push eax
call esi
test eax, eax
je 0x405387
test byte [ebp - 0x5a8], 0x10
je 0x40539b
push 4
lea eax, [ebp - 0x57c]
push eax
push str.DIAS
call fcn.0041c2d8
add esp, 0xc
test eax, eax
jne 0x40539b
lea eax, [ebp - 0x5a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405340
jmp 0x4053a2
mov byte [ebp - 0x5a9], 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x5a9], 0
je 0x40542e
push 0x21
push str.____not_empty._skipped_deletion.
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 6
call fcn.00401ca0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405458
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405422
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406479
push edx
push ecx
call fcn.004120fb
add esp, 8
jmp 0x405458
cmp dword [ebp - 0x394], 0x10
lea eax, [ebp - 0x3a8]
cmovae eax, dword [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405458
lea ecx, [ebp - 0x3a8]
call fcn.00407720
mov ecx, dword [0x45e95c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x45e958]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4057d3
push 0x45e94c
lea ecx, [ebp - 0x354]
call fcn.00408a20
mov ecx, 0xf
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], ecx
mov byte [ebp - 0x378], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x354]
cmp eax, dword [ebp - 0x350]
je 0x40576f
push 0x459a2c
mov edx, 0x45e91c
lea ecx, [ebp - 0x3c0]
call fcn.0040a590
add esp, 4
mov edi, eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x350]
cmp dword [eax - 4], 0x10
lea edx, [eax - 0x18]
jb 0x4054f0
mov edx, dword [eax - 0x18]
mov ecx, dword [eax - 8]
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
sub eax, esi
mov dword [ebp - 0x5bc], ecx
cmp ecx, eax
ja 0x40552e
cmp dword [edi + 0x14], 0x10
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x405515
mov eax, dword [edi]
push ecx
add esi, eax
push edx
push esi
call fcn.0041b280
mov eax, dword [ebp - 0x5bc]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x405547
push ecx
push edx
mov byte [ebp - 0x5b4], 0
push dword [ebp - 0x5b4]
push ecx
mov ecx, edi
call fcn.0040b490
mov edi, eax
movups xmm0, xmmword [edi]
movq xmm1, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x364]
movq qword [ebp - 0x5c0], xmm1
movups xmmword [ebp - 0x340], xmm0
cmp edx, 0x10
jb 0x4055b8
mov ecx, dword [ebp - 0x378]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40559f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406460
push edx
push ecx
call fcn.004120fb
movups xmm0, xmmword [ebp - 0x340]
add esp, 8
movq xmm1, qword [ebp - 0x5c0]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x3ac]
movq qword [ebp - 0x368], xmm1
movups xmmword [ebp - 0x378], xmm0
cmp edx, 0x10
jb 0x405605
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4055fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406460
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x364], 0x10
lea eax, [ebp - 0x378]
cmovae eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405645
cmp dword [ebp - 0x364], 0x10
lea eax, [ebp - 0x378]
push 0x80
cmovae eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x364], 0x10
lea eax, [ebp - 0x378]
cmovae eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x405685
lea eax, [ebp - 0x378]
mov edx, str.__del_file:
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0040a3a0
add esp, 4
mov byte [ebp - 4], 0xa
jmp 0x4056bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x405702
lea ecx, [ebp - 0x378]
call fcn.00407720
test al, al
je 0x405702
lea eax, [ebp - 0x378]
mov edx, str.__del_file_after_rebooting:
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0040a3a0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00401ca0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x405702
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406460
push edx
push ecx
call fcn.004120fb
add esp, 8
mov esi, dword [ebp - 0x350]
mov ecx, dword [esi - 4]
cmp ecx, 0x10
jb 0x40573c
mov eax, dword [esi - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x405732
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406460
mov eax, edx
push ecx
push eax
call fcn.004120fb
add esp, 8
mov dword [esi - 8], 0
mov dword [esi - 4], 0xf
mov byte [esi - 0x18], 0
mov eax, dword [ebp - 0x350]
sub eax, 0x18
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x354], eax
jne 0x4054c0
mov ecx, dword [ebp - 0x364]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x4057a9
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x378]
mov eax, ecx
cmp edx, 0x1000
jb 0x40579f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40647e
push edx
push ecx
call fcn.004120fb
add esp, 8
lea ecx, [ebp - 0x354]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0xf
mov byte [ebp - 0x378], 0
mov byte [ebp - 4], 5
call fcn.00409510
push 0x1b
push str._n_____registry_entries____
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 0xc
call fcn.00401ca0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x40584d
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406483
push edx
push ecx
call fcn.004120fb
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x5b0]
push eax
push 0x2001f
push 0
push str.SOFTWARECanonCBTSETUPCBTUser
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x405b36
push 0x20
push str.SOFTWARECanonCBTSETUPCBTUser
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.00409910
push str.DIAS
mov byte [ebp - 4], 0xd
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x360]
mov edx, 0x459f70
push eax
lea ecx, [ebp - 0x468]
call fcn.0040a3a0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xe
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 9
jb 0x405909
lea eax, [ecx + 9]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4058f0
mov eax, dword [edi]
push 9
lea esi, [eax + ecx]
push str.__Value:
push esi
call fcn.0041b280
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x405928
push 9
push str.__Value:
mov byte [ebp - 0x5bc], 0
mov ecx, edi
push dword [ebp - 0x5bc]
push 9
call fcn.0040b490
mov edi, eax
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x348], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x338], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x334]
mov eax, edx
mov ecx, dword [ebp - 0x338]
sub eax, ecx
push 4
push str.DIAS
cmp eax, 4
jb 0x4059b4
cmp edx, 0x10
lea esi, [ebp - 0x348]
lea eax, [ecx + 4]
cmovae esi, dword [ebp - 0x348]
add esi, ecx
mov dword [ebp - 0x338], eax
push esi
call fcn.0041b280
add esp, 0xc
mov byte [esi + 4], 0
lea eax, [ebp - 0x348]
jmp 0x4059ce
mov byte [ebp - 0x5bc], 0
lea ecx, [ebp - 0x348]
push dword [ebp - 0x5bc]
push 4
call fcn.0040b490
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3c0], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x3b0], xmm0
mov byte [eax], 0
lea ecx, [ebp - 0x3c0]
mov byte [ebp - 4], 0x10
call fcn.00401ca0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x405a43
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406488
push edx
push ecx
call fcn.004120fb
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405a81
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40648d
push edx
push ecx
call fcn.004120fb
add esp, 8
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
cmp edx, 0x10
jb 0x405ada
mov ecx, dword [ebp - 0x468]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406492
push edx
push ecx
call fcn.004120fb
add esp, 8
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x34c]
cmp edx, 0x10
jb 0x405b30
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406497
push edx
push ecx
call fcn.004120fb
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x45e95c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x45e958]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x405c50
push 0x12
push str.SOFTWARECanonCBT
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea edx, [ebp - 0x348]
mov byte [ebp - 4], 0x11
call fcn.00406710
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405bd6
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405bcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40649c
push edx
push ecx
call fcn.004120fb
add esp, 8
push 0x12
push str.SOFTWARECanonCBT
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea edx, [ebp - 0x348]
mov byte [ebp - 4], 0x12
call fcn.004064f0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405c50
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a1
push edx
push ecx
call fcn.004120fb
add esp, 8
push 0x13
push str.SOFTWARECanonDIAS
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
call fcn.00409910
lea edx, [ebp - 0x3f0]
mov byte [ebp - 4], 0x13
call fcn.00406710
lea edx, [ebp - 0x3f0]
call fcn.004064f0
push 0x13
push str.SOFTWARECanonDIAS
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x37c], 0xf
mov byte [ebp - 0x390], 0
call fcn.00409910
sub esp, 8
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x390]
call fcn.00408cd0
cmp dword [ebp - 0x380], eax
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x338], 0
cmovb eax, dword [ebp - 0x380]
cmp dword [ebp - 0x37c], 0x10
push eax
cmovae ecx, dword [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x390]
call fcn.00408fa0
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405d6b
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a6
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x37c], 0x10
lea ecx, [ebp - 0x5b0]
push ecx
push 0x2001f
lea eax, [ebp - 0x390]
cmovae eax, dword [ebp - 0x390]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x405e39
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x350]
push eax
xor esi, esi
mov dword [ebp - 0x5b4], 0x104
push esi
push esi
push esi
lea eax, [ebp - 0x5b4]
mov dword [ebp - 0x5bc], esi
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x5b0]
call edi
cmp eax, 0x103
je 0x405e13
mov dword [ebp - 0x5bc], 1
lea eax, [ebp - 0x350]
inc esi
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x5b0]
call edi
cmp eax, 0x103
jne 0x405de7
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5bc], 0
jne 0x405e33
lea edx, [ebp - 0x390]
call fcn.004064f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x38
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDIAS
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.00409910
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
push 0x2e
push str._n____registry_the_installer_might_have_set___
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 0x16
call fcn.00401ca0
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x405ee4
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064ab
push edx
push ecx
call fcn.004120fb
add esp, 8
lea edx, [ebp - 0x3d8]
call fcn.00406710
lea edx, [ebp - 0x3d8]
call fcn.004064f0
push 0x31
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunonce
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x360]
push 0x49
push str._n____registry_for_the_startup_progs___obsolete_for_the_current_DIAS_____
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], 0
call fcn.00409910
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x18
call fcn.00401ca0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x34c]
cmp edx, 0x10
jb 0x405fa5
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405f9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064b0
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x334], 0x10
lea ecx, [ebp - 0x5b0]
push ecx
push 0x20006
lea eax, [ebp - 0x348]
cmovae eax, dword [ebp - 0x348]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4060b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x5c4], 0x104
push eax
lea eax, [ebp - 0x5c8]
mov dword [ebp - 0x5b4], 0x104
push eax
xor esi, esi
lea eax, [ebp - 0x5c4]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x5b0]
call edi
test eax, eax
jne 0x4060a4
nop dword [eax + eax]
push 8
lea eax, [ebp - 0x120]
push str.DiasCmd
push eax
call fcn.0041c0a0
add esp, 0xc
test eax, eax
jne 0x40605d
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x5b4]
mov dword [ebp - 0x5c4], 0x104
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x5b4], 0x104
push eax
lea eax, [ebp - 0x5c8]
inc esi
push eax
push 0
lea eax, [ebp - 0x5c4]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x5b0]
call edi
test eax, eax
je 0x406030
push dword [ebp - 0x5b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 0x15
call fcn.00408f50
push 0x35
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.00409910
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x420]
push 9
push str.CanonDIAS
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
call fcn.00409910
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x348]
push 0x4f
push str._n____registry_for_the_startup_Win9x_progs___obsolete_for_the_current_DIAS_____
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
call fcn.00409910
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 0x1b
call fcn.00401ca0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x334]
cmp edx, 0x10
jb 0x40619b
mov ecx, dword [ebp - 0x348]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064b5
push edx
push ecx
call fcn.004120fb
add esp, 8
lea eax, [ebp - 0x420]
push eax
lea edx, [ebp - 0x438]
call fcn.00406950
mov edx, dword [ebp - 0x40c]
add esp, 4
cmp edx, 0x10
jb 0x4061ea
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4061e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064ba
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
cmp edx, 0x10
jb 0x40623f
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406235
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064bf
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x3c4]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
cmp edx, 0x10
jb 0x406294
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40628a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064c4
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x37c]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
cmp edx, 0x10
jb 0x4062e9
mov ecx, dword [ebp - 0x390]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4062df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064c9
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x37c], 0xf
mov byte [ebp - 0x390], 0
cmp edx, 0x10
jb 0x40633e
mov ecx, dword [ebp - 0x3f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406334
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064ce
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
cmp edx, 0x10
jb 0x406393
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406389
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064d3
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x394]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
cmp edx, 0x10
jb 0x4063e8
mov ecx, dword [ebp - 0x3a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4063de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064d8
push edx
push ecx
call fcn.004120fb
add esp, 8
mov edx, dword [ebp - 0x3f4]
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 0xf
mov byte [ebp - 0x3a8], 0
cmp edx, 0x10
jb 0x40643d
mov ecx, dword [ebp - 0x408]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406433
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064dd
push edx
push ecx
call fcn.004120fb
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
int3