Function at 0x40c440
Capabilities:
Check if file exists
Check os version
Copy file
Create process on windows
Delete registry value
Get common file path
Get file attributes
Persist via run registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59870b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10a0
call fcn.0056ae30
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
call fcn.0042e9c0
call fcn.0042eb90
mov ecx, esi
call fcn.0040abb0
mov ecx, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0040b6b0
mov ecx, esi
call fcn.0040bf60
lea eax, [ebp - 0x16c]
xor edi, edi
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x16c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c504
cmp dword [ebp - 0x15c], 2
jne 0x40c504
mov eax, dword [ebp - 0x168]
mov edi, 1
cmp eax, 6
mov dword [ebp - 0x2c], edi
jb 0x40c504
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x50], edi
call fcn.0040c230
add esp, 4
push reloc.WSOCK32.dll_bind
call fcn.0040c230
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x48], 4
je 0x40c573
mov eax, dword [0x6614e8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
push ecx
push edx
push ebx
push ebx
push str.EnableDriver
push eax
call edi
test eax, eax
jne 0x40c536
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x1c], ecx
mov ecx, dword [0x6614e8]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
push eax
push ebx
push ebx
push str.AdvancedIntegration
push ecx
call edi
test eax, eax
jne 0x40c5b8
cmp dword [ebp - 0x44], ebx
je 0x40c5b8
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x58]
push edx
push eax
lea ecx, [esi + 4]
call fcn.00409d20
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x38], ecx
jmp 0x40c5b8
mov ecx, dword [0x6614e8]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
push eax
push ebx
push ebx
push str.AdvancedIntegration
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c599
mov edx, dword [ebp - 0x44]
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x1c], ebx
je 0x40c5b8
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x58]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00409d20
xor edx, edx
cmp eax, ebx
sete dl
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x54]
xor eax, eax
cmp ecx, ebx
sete al
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40c6c7
lea ecx, [ebp - 0x28]
mov edi, 1
push ecx
push 0x20019
push ebx
push 0x636e60
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c627
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
push eax
push ebx
push ebx
push str.AdvIntDriverEnabled2
push ecx
mov dword [ebp - 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c61d
mov edi, dword [ebp - 0x44]
mov dword [esi + 0x1c], edi
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x1c], ebx
jne 0x40c683
mov edx, dword [0x6614e8]
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x44]
push eax
push ecx
push ebx
push ebx
push str.bVistaAdvInt
push edx
mov dword [ebp - 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c67b
mov eax, 1
push 4
mov dword [esi + 0x1c], eax
mov ecx, dword [0x6614e8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push str.bVistaAdvInt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40c67e
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], ebx
je 0x40c6c7
lea edx, [ebp - 0x20]
mov ecx, esi
push edx
call fcn.0040d9b0
mov edi, dword [ebp - 0x20]
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x18]
sete cl
push 4
xor edx, edx
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x6614e8]
cmp edi, ebx
push 4
push ebx
sete dl
push str.EnableDriver
push ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x34], ebx
jne 0x40c6d5
cmp dword [ebp - 0x30], ebx
je 0x40c8dc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x3c], 1
call fcn.004b0bf0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004b1340
cmp eax, ebx
jne 0x40c876
lea ecx, [ebp - 0x1c]
call fcn.004b0c30
lea ecx, [ebp - 0x1c]
call fcn.004b1290
lea ecx, [ebp - 0x1c]
call fcn.004b1510
mov edx, dword [0x65ca8c]
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00411ad0
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00411570
cmp eax, ebx
je 0x40c7a0
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x40c79c
cmp ebx, dword [esi + 0x28]
jge 0x40c7a0
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x40c858
xor edi, edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40c7a0
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x28]
lea esi, [edi + edi*8]
push ecx
shl esi, 2
mov eax, dword [eax + esi]
push eax
call fcn.00573ec0
add esp, 8
test eax, eax
jne 0x40c84f
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + esi + 8]
test eax, eax
je 0x40c7a0
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40c80c
cmp dword [ebp - 0x2c], ebx
jne 0x40c80c
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x661d4c]
mov edx, dword [0x661ebc]
push ecx
push edx
lea eax, [ebp - 0x18]
push str._s_r_n_r_n_s
push eax
mov byte [ebp - 4], 3
call fcn.0057f8fb
mov ecx, dword [0x661ef8]
mov edx, dword [ebp - 0x18]
add esp, 0x10
push 0x50004
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40c7fc
mov edi, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00586b33
cmp edi, ebx
jne 0x40c85e
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmp eax, ebx
mov dword [ebp - 0x3c], ebx
jne 0x40c83a
lea eax, [ebp - 0x18]
push 4
push eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [0x6614e8]
push 4
push ebx
push str.AdvancedIntegration
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
mov ecx, esi
call fcn.004110f0
mov dword [0x66103c], 1
jmp 0x40c868
mov esi, dword [ebp - 0x40]
inc edi
jmp 0x40c75c
inc ebx
jmp 0x40c746
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00413310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00586b33
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40c8d0
cmp dword [ebp - 0x2c], ebx
jne 0x40c8d0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x20]
push edx
push eax
push 1
lea ecx, [ebp - 0x1c]
call fcn.004b1380
mov eax, dword [0x6614e8]
mov ecx, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x28]
push 4
push edx
push 4
push ebx
push str.ClChIDMRes
push eax
mov dword [ebp - 0x28], ecx
call edi
mov eax, dword [0x6614e8]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push 4
push edx
push 4
push ebx
push str.ClChIERes
push eax
mov dword [ebp - 0x28], ecx
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004b0c20
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40ccea
cmp dword [ebp - 0x38], ebx
jne 0x40ca05
cmp dword [ebp - 0x30], ebx
jne 0x40ca05
cmp edi, ebx
jne 0x40ccd0
lea ecx, [ebp - 0x270]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40c9ef
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x270]
push str.idmmbc.dll
push eax
lea ecx, [ebp - 0x14]
push 0x6379fc
push ecx
mov byte [ebp - 4], 5
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push edx
call edi
cmp eax, 0xffffffff
jne 0x40c9e0
lea eax, [ebp - 0x270]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40c9e0
lea ecx, [ebp - 0x570]
lea edx, [ebp - 0x470]
push ecx
lea eax, [ebp - 0x370]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x270]
push ecx
push edx
call fcn.0056b52c
add esp, 0x14
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x270]
push str.idmmbc.dll
push eax
push ecx
push 0x6379c4
push edx
call fcn.0056b4da
add esp, 0x14
lea eax, [ebp - 0x270]
push eax
call edi
cmp eax, 0xffffffff
je 0x40c9e0
mov ecx, dword [ebp - 0x14]
push ebx
lea edx, [ebp - 0x270]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x58], ebx
je 0x40ccee
lea ecx, [esi + 4]
call fcn.0040a250
jmp 0x40ccee
mov edx, dword [0x6614e8]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x60]
push eax
push ecx
push ebx
push ebx
push str.lastintres
push edx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ca67
cmp dword [ebp - 0x60], 1
jne 0x40ca67
cmp edi, ebx
jne 0x40ca67
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov eax, 0x661f0c
jne 0x40ca47
mov eax, 0x661f08
mov ecx, dword [0x661f14]
mov eax, dword [eax]
push 0x50004
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40ca67
mov dword [ebp - 0x38], ebx
jmp 0x40ca6c
cmp dword [ebp - 0x38], ebx
jne 0x40ca75
cmp dword [ebp - 0x30], ebx
je 0x40cccc
cmp edi, ebx
mov dword [ebp - 0x18], ebx
je 0x40cc66
cmp dword [ebp - 0x30], ebx
je 0x40cc94
mov ecx, esi
call fcn.00410390
cmp dword [ebp - 0x50], ebx
jne 0x40cace
push 1
mov ecx, esi
call fcn.0040db00
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [0x661038], 1
mov ecx, esi
je 0x40cac1
call fcn.0040d5b0
mov dword [ebp - 0x14], ebx
jmp 0x40cc7a
call fcn.0040d4f0
mov dword [ebp - 0x14], ebx
jmp 0x40cc7a
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x6614bc]
push str.Uninstall.exe
push eax
lea ecx, [ebp - 0x1c]
push 0x637020
push ecx
mov byte [ebp - 4], 4
call fcn.0057f8fb
mov edx, dword [ebp - 0x1c]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x98], 0x40
mov dword [ebp - 0x90], 0x636f3c
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x80], 3
call ebx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x88], str._instdriv
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cc51
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
mov ecx, esi
call fcn.0040c100
test al, al
je 0x40cc51
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea edx, [ebp - 0x9c]
push edx
call esi
test eax, eax
je 0x40cc4b
mov eax, dword [ebp - 0x64]
mov edi, 1
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40cbc0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [0x661038], edi
test eax, eax
jne 0x40cc51
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x98], 0x40
mov dword [ebp - 0x90], 0x636f3c
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x7c], eax
call ebx
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
push edx
mov dword [ebp - 0x88], str._uninstlsp
call esi
test eax, eax
je 0x40cc42
mov eax, dword [ebp - 0x64]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], 1
jmp 0x40cc51
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
call fcn.00586b33
jmp 0x40cc7a
cmp dword [ebp - 0x38], ebx
je 0x40cc94
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [esi + 4]
call fcn.00408850
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40cc94
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40cc9b
mov dword [0x661034], 1
jmp 0x40cc9b
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x6614e8]
xor edx, edx
push 4
test eax, eax
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.lastintres
setne dl
push ecx
mov dword [ebp - 0x60], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
xor ebx, ebx
cmp edi, ebx
je 0x40ccee
cmp dword [ebp - 0x14], ebx
je 0x40ccde
mov ecx, esi
call fcn.0040d5b0
jmp 0x40ccea
cmp dword [ebp - 0x50], ebx
jne 0x40ccea
mov ecx, esi
call fcn.0040d4f0
cmp edi, ebx
jne 0x40cd44
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cd44
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Adsoff_Startup
push eax
call edi
mov ecx, dword [ebp - 0x14]
push str.OSSPoxy
push ecx
call edi
mov edx, dword [ebp - 0x14]
push str.New.net_Startup
push edx
call edi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00410470
cmp dword [0x661034], ebx
je 0x40cd98
mov edx, dword [0x6614e8]
lea ecx, [ebp - 0x20]
push 4
push ecx
push 4
push ebx
push str.NeedChAfRb
push edx
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x661f14]
mov ecx, dword [0x661ec0]
push 0x50030
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b160
add esp, 4
cmp edi, ebx
jne 0x40cda1
cmp dword [ebp - 0x3c], ebx
jne 0x40cde9
mov ecx, dword [0x6614e8]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x34]
push edx
push eax
push ebx
push ebx
push str.NeedChAfRb
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d00b
mov edx, dword [0x6614e8]
mov edi, dword [ebp - 0x34]
push str.NeedChAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d00b
mov eax, dword [0x6614e8]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x6614e8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x28]
xor esi, esi
push ecx
push edx
push esi
push esi
push str.ClChIDMRes
push eax
xor ebx, ebx
mov dword [ebp - 0x34], 4
call edi
test eax, eax
jne 0x40ce29
mov esi, dword [ebp - 0x28]
mov eax, dword [0x6614e8]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
push 0
push str.ClChIERes
push eax
mov dword [ebp - 0x34], 4
call edi
test eax, eax
jne 0x40ce57
mov eax, dword [ebp - 0x28]
cmp eax, 1
mov ebx, eax
je 0x40ce60
cmp esi, 1
jne 0x40d00b
lea ecx, [ebp - 0x1c]
mov edi, 1
call fcn.004b0bf0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x3c]
push ecx
push edx
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004b1380
cmp ebx, edi
jne 0x40ce8f
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40ce8f
xor edi, edi
cmp esi, 1
jne 0x40ce9a
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40cea2
test edi, edi
jne 0x40cfab
mov eax, dword [0x661ef8]
mov ecx, dword [0x661ee8]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [ebp - 0x40]
lea ecx, [edi + 4]
call fcn.00409800
mov eax, dword [0x6614e8]
lea edx, [ebp - 0x14]
push 4
push edx
push 4
push 0
push str.AdvancedIntegration
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x38]
mov dword [edi + 0x1c], 0
call fcn.004b0bf0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x3c]
push ecx
push edx
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.004b1380
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40cf21
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40cf21
xor eax, eax
cmp esi, edi
jne 0x40cf2b
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40cf2f
test eax, eax
jne 0x40cf9a
mov ecx, dword [0x6614e8]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push str.NeedSnRpAfRb
push ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x661ef8]
mov eax, dword [0x661ee4]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040b160
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.004b0c20
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004b0c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 6
call fcn.004b0c20
jmp 0x40cfff
mov eax, dword [ebp - 0x3c]
push 0x50000
cmp eax, 1
jne 0x40cfc8
mov ecx, dword [0x661ef8]
mov edx, dword [0x661eb8]
push ecx
push edx
jmp 0x40cfd5
mov eax, dword [0x661ef8]
mov ecx, dword [0x661ee0]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x6614e8]
lea edx, [ebp - 0x14]
push 4
push edx
push 4
push 0
push str.AdvancedIntegration
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004b0c20
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x40d05b
mov eax, dword [0x6614e8]
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x20]
push ecx
push edx
push 0
push 0
push str.NeedSnRpAfRb
push eax
mov dword [ebp - 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d0fe
mov ecx, dword [0x6614e8]
mov edi, dword [ebp - 0x20]
push str.NeedSnRpAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d0fe
push 0
lea ecx, [ebp - 0x10b0]
call fcn.004d28d0
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 8
call fcn.00582ac6
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 0x10
call fcn.00586b33
lea ecx, [ebp - 0xf20]
mov byte [ebp - 4], 0xf
call fcn.00537f80
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0xe
call fcn.00586b33
lea ecx, [ebp - 0xf64]
mov byte [ebp - 4], 0xd
call fcn.0058e953
lea ecx, [ebp - 0xfa0]
mov byte [ebp - 4], 0xc
call fcn.0058e953
lea ecx, [ebp - 0xfdc]
mov byte [ebp - 4], 0xb
call fcn.0058e953
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 0xa
call fcn.0058e7cb
lea ecx, [ebp - 0x1054]
mov byte [ebp - 4], 9
call fcn.0058e803
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 0
call fcn.00582707
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.0040e6f0
mov ecx, esi
call fcn.00410390
mov ecx, esi
call fcn.0040d4e0
xor ebx, ebx
cmp eax, ebx
jne 0x40d147
push ebx
push ebx
mov ecx, esi
call fcn.0040ee20
push ebx
push ebx
mov ecx, esi
call fcn.0040fa80
push ebx
push ebx
mov ecx, esi
call fcn.0040faf0
push ebx
push ebx
mov ecx, esi
call fcn.0040f070
mov ecx, esi
call fcn.004d81c0
cmp dword [esi + 0x1c], ebx
je 0x40d157
push 1
mov ecx, esi
call fcn.00413c70
jmp 0x40d16a
mov ecx, esi
call fcn.004110a0
cmp eax, ebx
jne 0x40d16a
push ebx
mov ecx, esi
call fcn.004110f0
cmp dword [0x6614dc], ebx
je 0x40d179
mov ecx, esi
call fcn.00414210
cmp dword [ebp - 0x2c], ebx
je 0x40d3d2
lea edx, [ebp - 0x54]
lea edi, [esi + 4]
lea eax, [ebp - 0x58]
push edx
push eax
mov ecx, edi
call fcn.00409d20
cmp eax, ebx
je 0x40d28a
cmp dword [ebp - 0x50], ebx
jne 0x40d1ad
mov ecx, edi
call fcn.00409800
jmp 0x40d3db
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x6614bc]
push str.Uninstall.exe
push edx
lea eax, [ebp - 0x14]
push 0x637020
push eax
mov byte [ebp - 4], 0x11
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d27e
mov edx, dword [ebp - 0x14]
push ebx
push edx
mov ecx, esi
call fcn.0040c100
test al, al
je 0x40d27e
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x98], 0x40
mov dword [ebp - 0x90], 0x636f3c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
push ecx
mov dword [ebp - 0x88], str._uninstlsp
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d277
mov edx, dword [ebp - 0x64]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
cmp dword [ebp - 0x50], ebx
je 0x40d3d2
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40d2b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d2f3
call fcn.0042f230
neg eax
sbb eax, eax
lea ecx, [ebp - 0x4c]
and eax, 0x100
push ecx
add eax, 0x20019
push eax
push ebx
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d3d2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x6614bc]
push str.Uninstall.exe
push ecx
lea edx, [ebp - 0x30]
push 0x637020
push edx
mov byte [ebp - 4], 0x12
call fcn.0057f8fb
mov eax, dword [ebp - 0x30]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d3c6
mov ecx, dword [ebp - 0x30]
push 1
push ecx
mov ecx, esi
call fcn.0040c100
test al, al
je 0x40d3c6
mov edx, dword [ebp - 0x30]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xd8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xd8], 0x3c
mov dword [ebp - 0xd4], 0x40
mov dword [ebp - 0xcc], 0x636f3c
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], 3
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xc4], str._uninsttdi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d3c6
mov ecx, dword [ebp - 0xa0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00586b33
cmp dword [ebp - 0x5c], ebx
je 0x40cf89
mov edx, dword [0x661f14]
mov eax, dword [0x661ec0]
push 0x50030
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b160
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret