Function at 0x40c3f0
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 0x59a29b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10a0
call fcn.0056c9b0
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.0042eb00
call fcn.0042ecd0
mov ecx, esi
call fcn.0040ab60
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.0040b660
mov ecx, esi
call fcn.0040bf10
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 0x40c4b4
cmp dword [ebp - 0x15c], 2
jne 0x40c4b4
mov eax, dword [ebp - 0x168]
mov edi, 1
cmp eax, 6
mov dword [ebp - 0x2c], edi
jb 0x40c4b4
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x50], edi
call fcn.0040c1e0
add esp, 4
push reloc.WSOCK32.dll_bind
call fcn.0040c1e0
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x48], 4
je 0x40c523
mov eax, dword [0x663680]
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 0x40c4e6
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x1c], ecx
mov ecx, dword [0x663680]
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 0x40c568
cmp dword [ebp - 0x44], ebx
je 0x40c568
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x58]
push edx
push eax
lea ecx, [esi + 4]
call fcn.00409cd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x38], ecx
jmp 0x40c568
mov ecx, dword [0x663680]
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 0x40c549
mov edx, dword [ebp - 0x44]
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x1c], ebx
je 0x40c568
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x58]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00409cd0
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 0x40c677
lea ecx, [ebp - 0x28]
mov edi, 1
push ecx
push 0x20019
push ebx
push 0x638e68
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c5d7
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 0x40c5cd
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 0x40c633
mov edx, dword [0x663680]
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 0x40c62b
mov eax, 1
push 4
mov dword [esi + 0x1c], eax
mov ecx, dword [0x663680]
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 0x40c62e
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], ebx
je 0x40c677
lea edx, [ebp - 0x20]
mov ecx, esi
push edx
call fcn.0040d960
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 [0x663680]
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 0x40c685
cmp dword [ebp - 0x30], ebx
je 0x40c88c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x3c], 1
call fcn.004b1a10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004b2160
cmp eax, ebx
jne 0x40c826
lea ecx, [ebp - 0x1c]
call fcn.004b1a50
lea ecx, [ebp - 0x1c]
call fcn.004b20b0
lea ecx, [ebp - 0x1c]
call fcn.004b2330
mov edx, dword [0x65ec1c]
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.00411b20
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.004115c0
cmp eax, ebx
je 0x40c750
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x40c74c
cmp ebx, dword [esi + 0x28]
jge 0x40c750
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x40c808
xor edi, edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40c750
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.00575a20
add esp, 8
test eax, eax
jne 0x40c7ff
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 0x40c750
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40c7bc
cmp dword [ebp - 0x2c], ebx
jne 0x40c7bc
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x663ee4]
mov edx, dword [0x664054]
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.0058148b
mov ecx, dword [0x664090]
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 0x40c7ac
mov edi, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005886c0
cmp edi, ebx
jne 0x40c80e
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmp eax, ebx
mov dword [ebp - 0x3c], ebx
jne 0x40c7ea
lea eax, [ebp - 0x18]
push 4
push eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [0x663680]
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.00411140
mov dword [0x6631cc], 1
jmp 0x40c818
mov esi, dword [ebp - 0x40]
inc edi
jmp 0x40c70c
inc ebx
jmp 0x40c6f6
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00413360
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005886c0
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40c880
cmp dword [ebp - 0x2c], ebx
jne 0x40c880
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x20]
push edx
push eax
push 1
lea ecx, [ebp - 0x1c]
call fcn.004b21a0
mov eax, dword [0x663680]
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 [0x663680]
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.004b1a40
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40cc9a
cmp dword [ebp - 0x38], ebx
jne 0x40c9b5
cmp dword [ebp - 0x30], ebx
jne 0x40c9b5
cmp edi, ebx
jne 0x40cc80
lea ecx, [ebp - 0x270]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40c99f
mov edx, dword [0x65ec1c]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x270]
push str.idmmbc.dll
push eax
lea ecx, [ebp - 0x14]
push 0x639a04
push ecx
mov byte [ebp - 4], 5
call fcn.0058148b
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push edx
call edi
cmp eax, 0xffffffff
jne 0x40c990
lea eax, [ebp - 0x270]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40c990
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.0056d0ac
add esp, 0x14
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x270]
push str.idmmbc.dll
push eax
push ecx
push 0x6399cc
push edx
call fcn.0056d05a
add esp, 0x14
lea eax, [ebp - 0x270]
push eax
call edi
cmp eax, 0xffffffff
je 0x40c990
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.005886c0
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x58], ebx
je 0x40cc9e
lea ecx, [esi + 4]
call fcn.0040a200
jmp 0x40cc9e
mov edx, dword [0x663680]
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 0x40ca17
cmp dword [ebp - 0x60], 1
jne 0x40ca17
cmp edi, ebx
jne 0x40ca17
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov eax, 0x6640a4
jne 0x40c9f7
mov eax, 0x6640a0
mov ecx, dword [0x6640ac]
mov eax, dword [eax]
push 0x50004
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40ca17
mov dword [ebp - 0x38], ebx
jmp 0x40ca1c
cmp dword [ebp - 0x38], ebx
jne 0x40ca25
cmp dword [ebp - 0x30], ebx
je 0x40cc7c
cmp edi, ebx
mov dword [ebp - 0x18], ebx
je 0x40cc16
cmp dword [ebp - 0x30], ebx
je 0x40cc44
mov ecx, esi
call fcn.004103e0
cmp dword [ebp - 0x50], ebx
jne 0x40ca7e
push 1
mov ecx, esi
call fcn.0040dab0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [0x6631c8], 1
mov ecx, esi
je 0x40ca71
call fcn.0040d560
mov dword [ebp - 0x14], ebx
jmp 0x40cc2a
call fcn.0040d4a0
mov dword [ebp - 0x14], ebx
jmp 0x40cc2a
mov edx, dword [0x65ec1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x663654]
push str.Uninstall.exe
push eax
lea ecx, [ebp - 0x1c]
push 0x639028
push ecx
mov byte [ebp - 4], 4
call fcn.0058148b
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], 0x638f44
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 0x40cc01
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
mov ecx, esi
call fcn.0040c0b0
test al, al
je 0x40cc01
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea edx, [ebp - 0x9c]
push edx
call esi
test eax, eax
je 0x40cbfb
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 0x40cb70
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [0x6631c8], edi
test eax, eax
jne 0x40cc01
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], 0x638f44
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 0x40cbf2
mov eax, dword [ebp - 0x64]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], 1
jmp 0x40cc01
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
call fcn.005886c0
jmp 0x40cc2a
cmp dword [ebp - 0x38], ebx
je 0x40cc44
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [esi + 4]
call fcn.00408800
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40cc44
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40cc4b
mov dword [0x6631c4], 1
jmp 0x40cc4b
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x663680]
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 0x40cc9e
cmp dword [ebp - 0x14], ebx
je 0x40cc8e
mov ecx, esi
call fcn.0040d560
jmp 0x40cc9a
cmp dword [ebp - 0x50], ebx
jne 0x40cc9a
mov ecx, esi
call fcn.0040d4a0
cmp edi, ebx
jne 0x40ccf4
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 0x40ccf4
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.004104c0
cmp dword [0x6631c4], ebx
je 0x40cd48
mov edx, dword [0x663680]
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 [0x6640ac]
mov ecx, dword [0x664058]
push 0x50030
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b110
add esp, 4
cmp edi, ebx
jne 0x40cd51
cmp dword [ebp - 0x3c], ebx
jne 0x40cd99
mov ecx, dword [0x663680]
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 0x40cfbb
mov edx, dword [0x663680]
mov edi, dword [ebp - 0x34]
push str.NeedChAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40cfbb
mov eax, dword [0x663680]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x663680]
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 0x40cdd9
mov esi, dword [ebp - 0x28]
mov eax, dword [0x663680]
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 0x40ce07
mov eax, dword [ebp - 0x28]
cmp eax, 1
mov ebx, eax
je 0x40ce10
cmp esi, 1
jne 0x40cfbb
lea ecx, [ebp - 0x1c]
mov edi, 1
call fcn.004b1a10
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.004b21a0
cmp ebx, edi
jne 0x40ce3f
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40ce3f
xor edi, edi
cmp esi, 1
jne 0x40ce4a
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40ce52
test edi, edi
jne 0x40cf5b
mov eax, dword [0x664090]
mov ecx, dword [0x664080]
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.004097b0
mov eax, dword [0x663680]
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.004b1a10
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.004b21a0
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40ced1
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40ced1
xor eax, eax
cmp esi, edi
jne 0x40cedb
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40cedf
test eax, eax
jne 0x40cf4a
mov ecx, dword [0x663680]
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 [0x664090]
mov eax, dword [0x66407c]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040b110
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.004b1a40
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004b1a40
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.004b1a40
jmp 0x40cfaf
mov eax, dword [ebp - 0x3c]
push 0x50000
cmp eax, 1
jne 0x40cf78
mov ecx, dword [0x664090]
mov edx, dword [0x664050]
push ecx
push edx
jmp 0x40cf85
mov eax, dword [0x664090]
mov ecx, dword [0x664078]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x663680]
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.004b1a40
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x40d00b
mov eax, dword [0x663680]
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 0x40d0ae
mov ecx, dword [0x663680]
mov edi, dword [ebp - 0x20]
push str.NeedSnRpAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d0ae
push 0
lea ecx, [ebp - 0x10b0]
call fcn.004d3f30
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 8
call fcn.00584656
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 0x10
call fcn.005886c0
lea ecx, [ebp - 0xf20]
mov byte [ebp - 4], 0xf
call fcn.00539850
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0xe
call fcn.005886c0
lea ecx, [ebp - 0xf64]
mov byte [ebp - 4], 0xd
call fcn.005904e3
lea ecx, [ebp - 0xfa0]
mov byte [ebp - 4], 0xc
call fcn.005904e3
lea ecx, [ebp - 0xfdc]
mov byte [ebp - 4], 0xb
call fcn.005904e3
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 0xa
call fcn.0059035b
lea ecx, [ebp - 0x1054]
mov byte [ebp - 4], 9
call fcn.00590393
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 0
call fcn.00584297
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.0040e6a0
mov ecx, esi
call fcn.004103e0
mov ecx, esi
call fcn.0040d490
xor ebx, ebx
cmp eax, ebx
jne 0x40d0f7
push ebx
push ebx
mov ecx, esi
call fcn.0040ee30
push ebx
push ebx
mov ecx, esi
call fcn.0040fa90
push ebx
push ebx
mov ecx, esi
call fcn.0040fb00
push ebx
push ebx
mov ecx, esi
call fcn.0040f080
mov ecx, esi
call fcn.004e23e0
cmp dword [esi + 0x1c], ebx
je 0x40d107
push 1
mov ecx, esi
call fcn.00413cc0
jmp 0x40d11a
mov ecx, esi
call fcn.004110f0
cmp eax, ebx
jne 0x40d11a
push ebx
mov ecx, esi
call fcn.00411140
cmp dword [0x663674], ebx
je 0x40d129
mov ecx, esi
call fcn.00414260
cmp dword [ebp - 0x2c], ebx
je 0x40d382
lea edx, [ebp - 0x54]
lea edi, [esi + 4]
lea eax, [ebp - 0x58]
push edx
push eax
mov ecx, edi
call fcn.00409cd0
cmp eax, ebx
je 0x40d23a
cmp dword [ebp - 0x50], ebx
jne 0x40d15d
mov ecx, edi
call fcn.004097b0
jmp 0x40d38b
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x663654]
push str.Uninstall.exe
push edx
lea eax, [ebp - 0x14]
push 0x639028
push eax
mov byte [ebp - 4], 0x11
call fcn.0058148b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d22e
mov edx, dword [ebp - 0x14]
push ebx
push edx
mov ecx, esi
call fcn.0040c0b0
test al, al
je 0x40d22e
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], 0x638f44
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 0x40d227
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.005886c0
cmp dword [ebp - 0x50], ebx
je 0x40d382
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 0x40d268
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d2a3
call fcn.0042f370
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 0x40d382
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x663654]
push str.Uninstall.exe
push ecx
lea edx, [ebp - 0x30]
push 0x639028
push edx
mov byte [ebp - 4], 0x12
call fcn.0058148b
mov eax, dword [ebp - 0x30]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d376
mov ecx, dword [ebp - 0x30]
push 1
push ecx
mov ecx, esi
call fcn.0040c0b0
test al, al
je 0x40d376
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], 0x638f44
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 0x40d376
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.005886c0
cmp dword [ebp - 0x5c], ebx
je 0x40cf39
mov edx, dword [0x6640ac]
mov eax, dword [0x664058]
push 0x50030
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b110
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