Function at 0x40ca40
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 0x5b73f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1320
call fcn.00589870
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.004358e0
call fcn.00435ab0
mov ecx, esi
call fcn.0040abf0
mov ecx, esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x88], ebx
call fcn.0040bad0
mov ecx, esi
call fcn.0040c380
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40cb0a
cmp dword [ebp - 0x18c], 2
jne 0x40cb0a
mov eax, dword [ebp - 0x198]
mov edi, 1
cmp eax, 6
mov dword [ebp - 0x38], edi
jb 0x40cb0a
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x7c], edi
call fcn.0040c650
add esp, 4
push reloc.WSOCK32.dll_bind
call fcn.0040c650
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x74], 4
je 0x40cb81
mov eax, dword [0x687b54]
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x64]
push ecx
push edx
push ebx
push ebx
push str.EnableDriver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cb3a
mov ecx, dword [ebp - 0x64]
mov dword [esi + 0x1c], ecx
mov ecx, dword [0x687b54]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push str.AdvancedIntegration
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cbcc
cmp dword [ebp - 0x64], ebx
je 0x40cbcc
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x90]
push edx
push eax
lea ecx, [esi + 4]
call fcn.00409db0
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x28], ecx
jmp 0x40cbcc
mov ecx, dword [0x687b54]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push str.AdvancedIntegration
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cba7
mov edx, dword [ebp - 0x64]
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x1c], ebx
je 0x40cbcc
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x90]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00409db0
xor edx, edx
cmp eax, ebx
sete dl
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x84]
xor eax, eax
cmp ecx, ebx
sete al
cmp edi, ebx
mov dword [ebp - 0x78], eax
je 0x40ccde
lea ecx, [ebp - 0x1c]
mov edi, 1
push ecx
push 0x20019
push ebx
push 0x65be60
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cc3b
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push str.AdvIntDriverEnabled2
push ecx
mov dword [ebp - 0x74], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc31
mov edi, dword [ebp - 0x64]
mov dword [esi + 0x1c], edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x1c], ebx
jne 0x40cc97
mov edx, dword [0x687b54]
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x64]
push eax
push ecx
push ebx
push ebx
push str.bVistaAdvInt
push edx
mov dword [ebp - 0x74], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40cc8f
mov eax, 1
push 4
mov dword [esi + 0x1c], eax
mov ecx, dword [0x687b54]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push ebx
push str.bVistaAdvInt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40cc92
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], ebx
je 0x40ccdb
lea edx, [ebp - 0x3c]
mov ecx, esi
push edx
call fcn.0040e750
mov edi, dword [ebp - 0x3c]
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 [0x687b54]
cmp edi, ebx
push 4
push ebx
sete dl
push str.EnableDriver
push ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x78], ebx
jne 0x40ccec
cmp dword [ebp - 0x60], ebx
je 0x40cf00
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], 1
call fcn.004c2560
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004c2e40
cmp eax, ebx
jne 0x40ce95
lea ecx, [ebp - 0x18]
call fcn.004c25a0
lea ecx, [ebp - 0x18]
call fcn.004c2d90
lea ecx, [ebp - 0x18]
call fcn.004c3050
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x58], bx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004139d0
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x5c]
push edx
push eax
mov ecx, esi
call fcn.00412fa0
cmp eax, ebx
je 0x40cdc1
mov eax, dword [ebp - 0x3c]
cmp eax, 1
je 0x40cdbd
xor ebx, ebx
cmp ebx, dword [esi + 0x28]
jge 0x40cdc1
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebx*4]
cmp eax, dword [edx + 8]
jne 0x40ce79
xor edi, edi
mov eax, dword [esi + 0x24]
mov eax, dword [eax + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40cdc1
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x40cd8b
lea ecx, [ebp - 0x58]
mov edx, dword [eax + 0x18]
lea esi, [edi + edi*8]
shl esi, 2
push ecx
mov eax, dword [edx + esi]
push eax
call fcn.0058b9fc
add esp, 8
test eax, eax
jne 0x40ce70
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + esi + 8]
test ecx, ecx
je 0x40cdc1
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40ce2d
cmp dword [ebp - 0x38], ebx
jne 0x40ce2d
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x688414]
mov eax, dword [0x688584]
push edx
push eax
lea ecx, [ebp - 0x1c]
push str._s_r_n_r_n_s
push ecx
mov byte [ebp - 4], 3
call fcn.0059e618
mov edx, dword [0x6885c0]
mov eax, dword [ebp - 0x1c]
add esp, 0x10
push 0x50004
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40ce1d
mov edi, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005a584d
cmp edi, ebx
jne 0x40ce7f
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp eax, ebx
mov dword [ebp - 0x50], ebx
jne 0x40ce5b
lea ecx, [ebp - 0x1c]
push 4
push ecx
mov dword [esi + 0x1c], ebx
mov edx, dword [0x687b54]
push 4
push ebx
push str.AdvancedIntegration
push edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
mov ecx, esi
call fcn.00412b10
mov dword [0x68752c], 1
jmp 0x40ce89
mov esi, dword [ebp - 0x40]
inc edi
jmp 0x40cd76
inc ebx
jmp 0x40cd60
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00416370
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
cmp dword [esi + 0x1c], ebx
je 0x40cef1
cmp dword [ebp - 0x38], ebx
jne 0x40cef1
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push 1
lea ecx, [ebp - 0x18]
call fcn.004c2e80
mov ecx, dword [0x687b54]
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push str.ClChIDMRes
push ecx
mov dword [ebp - 0x1c], edx
call edi
mov ecx, dword [0x687b54]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push str.ClChIERes
push ecx
mov dword [ebp - 0x1c], edx
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004c2590
mov edi, dword [ebp - 0x38]
cmp dword [esi + 0x1c], ebx
je 0x40d536
cmp dword [ebp - 0x28], ebx
jne 0x40d026
cmp dword [ebp - 0x60], ebx
jne 0x40d026
cmp edi, ebx
jne 0x40d51c
lea edx, [ebp - 0x2a0]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40d00d
mov eax, dword [0x682f9c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2a0]
push str.idmmbc.dll
push ecx
lea edx, [ebp - 0x14]
push 0x65c9dc
push edx
mov byte [ebp - 4], 8
call fcn.0059e618
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push eax
call edi
cmp eax, 0xffffffff
jne 0x40cffe
lea ecx, [ebp - 0x2a0]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40cffe
lea edx, [ebp - 0x4a0]
lea eax, [ebp - 0x5a0]
push edx
lea ecx, [ebp - 0x3a0]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x2a0]
push edx
push eax
call fcn.00589e5c
add esp, 0x14
lea ecx, [ebp - 0x3a0]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2a0]
push str.idmmbc.dll
push ecx
push edx
push 0x65c9a4
push eax
call fcn.00589e0a
add esp, 0x14
lea ecx, [ebp - 0x2a0]
push ecx
call edi
cmp eax, 0xffffffff
je 0x40cffe
mov edx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x2a0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005a584d
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x90], ebx
je 0x40d53a
lea ecx, [esi + 4]
call fcn.0040a2e0
jmp 0x40d53a
mov eax, dword [0x687b54]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x8c]
push ecx
push edx
push ebx
push ebx
push str.lastintres
push eax
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d08d
cmp dword [ebp - 0x8c], 1
jne 0x40d08d
cmp edi, ebx
jne 0x40d08d
mov eax, dword [ebp - 0x78]
cmp eax, ebx
mov eax, 0x6885d4
jne 0x40d06d
mov eax, 0x6885d0
mov ecx, dword [0x6885dc]
mov eax, dword [eax]
push 0x50004
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40d08d
mov dword [ebp - 0x28], ebx
jmp 0x40d092
cmp dword [ebp - 0x28], ebx
jne 0x40d09b
cmp dword [ebp - 0x60], ebx
je 0x40d518
cmp edi, ebx
mov dword [ebp - 0x18], ebx
je 0x40d4ac
cmp dword [ebp - 0x60], ebx
je 0x40d4da
mov ecx, esi
call fcn.004116f0
cmp dword [ebp - 0x7c], ebx
jne 0x40d0f4
push 1
mov ecx, esi
call fcn.0040e8a0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [0x687528], 1
mov ecx, esi
je 0x40d0e7
call fcn.0040e0a0
mov dword [ebp - 0x14], ebx
jmp 0x40d4c0
call fcn.0040dfe0
mov dword [ebp - 0x14], ebx
jmp 0x40d4c0
xor edx, edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], edx
mov word [ebp - 0x30], bx
mov edi, dword [0x687b08]
mov byte [ebp - 4], 4
cmp edi, ebx
jne 0x40d113
mov edi, 0x687b0c
mov eax, 0x65bff8
test eax, eax
je 0x40d237
cmp edi, ebx
je 0x40d237
mov ecx, str.Uninstall.exe
test ecx, ecx
je 0x40d237
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
call fcn.00402800
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x6c], bx
call fcn.00401ee0
push str.Uninstall.exe
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x58], bx
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00401ed0
push eax
call fcn.00589432
add esp, 4
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.00401ed0
push eax
call fcn.00589432
add edi, ebx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x34], edx
je 0x40d20e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x5c]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x70]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x34]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00589432
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401070
mov edx, dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [esi + 0x48]
mov cl, byte [eax + 0x3b]
test cl, cl
jne 0x40d303
cmp dword [0x687b48], ebx
jne 0x40d303
mov cl, byte [eax + 0x25]
test cl, cl
je 0x40d303
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x4c], 1
cmp eax, ebx
jne 0x40d497
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xcc], 0x3c
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], str.open
jne 0x40d2a2
lea edx, [ebp - 0x30]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xb8], str._uninstlsp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40d2f4
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x88], 1
jmp 0x40d497
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xcc], 0x3c
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], str.open
jne 0x40d337
lea edx, [ebp - 0x30]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ebp - 0xb8], str._instdriv
jne 0x40d373
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d497
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x40d38d
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
call fcn.0040c520
test al, al
je 0x40d497
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0xcc]
push eax
call ebx
test eax, eax
je 0x40d491
mov ecx, dword [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x18], edi
call esi
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40d3e9
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x28]
mov dword [0x687528], edi
test eax, eax
jne 0x40d497
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xcc], 0x3c
test eax, eax
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], str.open
je 0x40d436
mov dword [ebp - 0xbc], eax
jmp 0x40d43f
lea edx, [ebp - 0x30]
mov dword [ebp - 0xbc], edx
xor eax, eax
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xb8], str._uninstlsp
call ebx
test eax, eax
je 0x40d485
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
push ecx
call esi
mov dword [ebp - 0x88], 1
jmp 0x40d497
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x40d4c0
cmp dword [ebp - 0x28], ebx
je 0x40d4da
mov edx, dword [ebp - 0x78]
lea ecx, [esi + 4]
push edx
call fcn.004088e0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d4da
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40d4e1
mov dword [0x687524], 1
jmp 0x40d4e1
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x687b54]
xor eax, eax
push 4
test ecx, ecx
lea ecx, [ebp - 0x8c]
push ecx
push 4
push 0
push str.lastintres
setne al
push edx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
xor ebx, ebx
cmp edi, ebx
je 0x40d53a
cmp dword [ebp - 0x14], ebx
je 0x40d52a
mov ecx, esi
call fcn.0040e0a0
jmp 0x40d536
cmp dword [ebp - 0x7c], ebx
jne 0x40d536
mov ecx, esi
call fcn.0040dfe0
cmp edi, ebx
jne 0x40d590
lea eax, [ebp - 0x14]
push ebx
push eax
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 0x40d590
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Adsoff_Startup
push ecx
call edi
mov edx, dword [ebp - 0x14]
push str.OSSPoxy
push edx
call edi
mov eax, dword [ebp - 0x14]
push str.New.net_Startup
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x38]
mov ecx, esi
call fcn.004117d0
cmp dword [0x687524], ebx
je 0x40d5e4
mov eax, dword [0x687b54]
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push ebx
push str.NeedChAfRb
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [0x6885dc]
mov edx, dword [0x688588]
push 0x50030
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b540
add esp, 4
cmp edi, ebx
jne 0x40d5ed
cmp dword [ebp - 0x50], ebx
jne 0x40d634
mov edx, dword [0x687b54]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push ebx
push ebx
push str.NeedChAfRb
push edx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d85c
mov eax, dword [0x687b54]
mov edi, dword [ebp - 0x3c]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d85c
mov ecx, dword [0x687b54]
push str.NeedChAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [0x687b54]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x1c]
xor esi, esi
push edx
push eax
push esi
push esi
push str.ClChIDMRes
push ecx
xor ebx, ebx
mov dword [ebp - 0x78], 4
call edi
test eax, eax
jne 0x40d676
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x687b54]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push str.ClChIERes
push ecx
mov dword [ebp - 0x78], 4
call edi
test eax, eax
jne 0x40d6a5
mov eax, dword [ebp - 0x1c]
cmp eax, 1
mov ebx, eax
je 0x40d6ae
cmp esi, 1
jne 0x40d85c
lea ecx, [ebp - 0x28]
mov edi, 1
call fcn.004c2560
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x50]
push edx
push eax
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004c2e80
cmp ebx, edi
jne 0x40d6dd
cmp dword [ebp - 0x60], 0xffffffff
jne 0x40d6dd
xor edi, edi
cmp esi, 1
jne 0x40d6e8
cmp dword [ebp - 0x50], 0xffffffff
je 0x40d6f0
test edi, edi
jne 0x40d7fb
mov ecx, dword [0x6885c0]
mov edx, dword [0x6885b0]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [ebp - 0x40]
lea ecx, [edi + 4]
call fcn.00409890
mov ecx, dword [0x687b54]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push str.AdvancedIntegration
push ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x18]
mov dword [edi + 0x1c], 0
call fcn.004c2560
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x50]
push edx
push eax
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004c2e80
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40d771
cmp dword [ebp - 0x60], 0xffffffff
jne 0x40d771
xor eax, eax
cmp esi, edi
jne 0x40d77b
cmp dword [ebp - 0x50], 0xffffffff
je 0x40d77f
test eax, eax
jne 0x40d7ea
mov edx, dword [0x687b54]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push 0
push str.NeedSnRpAfRb
push edx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x6885c0]
mov ecx, dword [0x6885ac]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040b540
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.004c2590
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004c2590
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 - 0x18]
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 9
call fcn.004c2590
jmp 0x40d850
mov eax, dword [ebp - 0x50]
push 0x50000
cmp eax, 1
jne 0x40d817
mov edx, dword [0x6885c0]
mov eax, dword [0x688580]
push edx
push eax
jmp 0x40d825
mov ecx, dword [0x6885c0]
mov edx, dword [0x6885a8]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x687b54]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push str.AdvancedIntegration
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004c2590
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x40d8ad
mov ecx, dword [0x687b54]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x80]
push edx
push eax
push 0
push 0
push str.NeedSnRpAfRb
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d950
mov edx, dword [0x687b54]
mov edi, dword [ebp - 0x80]
push str.NeedSnRpAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d950
push 0
lea ecx, [ebp - 0x1330]
call fcn.004e7410
lea ecx, [ebp - 0x1330]
mov byte [ebp - 4], 0xb
call fcn.005a17e3
lea ecx, [ebp - 0x5a4]
mov byte [ebp - 4], 0x13
call fcn.005a584d
lea ecx, [ebp - 0x11a0]
mov byte [ebp - 4], 0x12
call fcn.00554010
lea ecx, [ebp - 0x11a8]
mov byte [ebp - 4], 0x11
call fcn.005a584d
lea ecx, [ebp - 0x11e4]
mov byte [ebp - 4], 0x10
call fcn.005ad4e1
lea ecx, [ebp - 0x1220]
mov byte [ebp - 4], 0xf
call fcn.005ad4e1
lea ecx, [ebp - 0x125c]
mov byte [ebp - 4], 0xe
call fcn.005ad4e1
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 0xd
call fcn.005ad359
lea ecx, [ebp - 0x12d4]
mov byte [ebp - 4], 0xc
call fcn.005ad391
lea ecx, [ebp - 0x1330]
mov byte [ebp - 4], 0
call fcn.005a1424
mov ebx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.0040fa00
mov ecx, ebx
call fcn.004116f0
mov ecx, ebx
call fcn.0040dfd0
xor esi, esi
cmp eax, esi
jne 0x40d999
push esi
push esi
mov ecx, ebx
call fcn.004102a0
push esi
push esi
mov ecx, ebx
call fcn.00410fa0
push esi
push esi
mov ecx, ebx
call fcn.00411010
push esi
push esi
mov ecx, ebx
call fcn.00410690
mov ecx, ebx
call fcn.00550130
cmp dword [ebx + 0x1c], esi
je 0x40d9a9
push 1
mov ecx, ebx
call fcn.00416df0
jmp 0x40d9bc
mov ecx, ebx
call fcn.00412ac0
cmp eax, esi
jne 0x40d9bc
push esi
mov ecx, ebx
call fcn.00412b10
cmp dword [0x687b48], esi
je 0x40d9cb
mov ecx, ebx
call fcn.00417380
cmp dword [ebp - 0x38], esi
je 0x40debb
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x90]
lea edi, [ebx + 4]
push eax
push ecx
mov ecx, edi
call fcn.00409db0
cmp eax, esi
je 0x40dc31
cmp dword [ebp - 0x7c], esi
jne 0x40da05
mov ecx, edi
call fcn.00409890
jmp 0x40dec7
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], si
mov edi, dword [0x687b08]
mov byte [ebp - 4], 0x14
cmp edi, esi
jne 0x40da24
mov edi, 0x687b0c
mov edx, 0x65bff8
test edx, edx
je 0x40db58
cmp edi, esi
je 0x40db58
mov ecx, str.Uninstall.exe
test ecx, ecx
je 0x40db58
push esi
push edx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x58], si
call fcn.00402800
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x6c], si
call fcn.00401ee0
push str.Uninstall.exe
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov word [ebp - 0x48], si
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov eax, dword [ebp - 0x70]
cmp eax, esi
jne 0x40daa2
lea eax, [ebp - 0x6c]
mov ebx, dword [ebp - 0x4c]
cmp ebx, esi
jne 0x40daac
lea ebx, [ebp - 0x48]
mov edi, dword [ebp - 0x54]
push eax
call fcn.00589432
mov edx, eax
push ebx
mov dword [ebp - 0x20], edx
call fcn.00589432
mov edx, dword [ebp - 0x20]
add edi, edx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0x34], edx
je 0x40db2e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x4c]
cmp eax, esi
mov edx, eax
jne 0x40dafe
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp ecx, esi
jne 0x40db08
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x40db12
lea eax, [ebp - 0x58]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x34]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00589432
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x14
call fcn.00401070
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x40]
cmp eax, esi
jne 0x40db5f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dc25
mov eax, dword [ebp - 0x34]
cmp eax, esi
jne 0x40db79
lea eax, [ebp - 0x30]
push esi
push eax
mov ecx, ebx
call fcn.0040c520
test al, al
je 0x40dc25
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xcc], 0x3c
cmp eax, esi
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], str.open
je 0x40dbc6
mov dword [ebp - 0xbc], eax
jmp 0x40dbcf
lea edx, [ebp - 0x30]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xb8], str._uninstlsp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40dc1b
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x88], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00401070
cmp dword [ebp - 0x7c], esi
je 0x40debb
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40dc5f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dc9a
call fcn.004368b0
neg eax
sbb eax, eax
lea edx, [ebp - 0x20]
and eax, 0x100
push edx
add eax, 0x20019
push eax
push esi
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40debb
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], si
mov edi, dword [0x687b08]
mov byte [ebp - 4], 0x18
cmp edi, esi
jne 0x40dcb9
mov edi, 0x687b0c
mov ecx, 0x65bff8
test ecx, ecx
je 0x40ddea
cmp edi, esi
je 0x40ddea
mov edx, str.Uninstall.exe
test edx, edx
je 0x40ddea
push esi
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x58], si
call fcn.00402800
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x30], si
call fcn.00401ee0
push str.Uninstall.exe
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x6c], si
call fcn.00401ee0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x1b
call fcn.00401070
mov eax, dword [ebp - 0x34]
cmp eax, esi
jne 0x40dd37
lea eax, [ebp - 0x30]
mov ebx, dword [ebp - 0x70]
cmp ebx, esi
jne 0x40dd41
lea ebx, [ebp - 0x6c]
mov edi, dword [ebp - 0x54]
push eax
call fcn.00589432
mov edx, eax
push ebx
mov dword [ebp - 0x20], edx
call fcn.00589432
mov ecx, dword [ebp - 0x20]
add edi, ecx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0x4c], edx
je 0x40ddc3
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x70]
cmp eax, esi
mov edx, eax
jne 0x40dd93
lea edx, [ebp - 0x6c]
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
jne 0x40dd9d
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x40dda7
lea eax, [ebp - 0x58]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x4c]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00589432
add esp, 0x18
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.00401070
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jne 0x40ddf1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40deaf
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jne 0x40de0b
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
push 1
push eax
call fcn.0040c520
test al, al
je 0x40deaf
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x108], 0x3c
cmp eax, esi
mov dword [ebp - 0x104], 0x40
mov dword [ebp - 0xfc], str.open
je 0x40de5a
mov dword [ebp - 0xf8], eax
jmp 0x40de63
lea edx, [ebp - 0x48]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], 3
mov dword [ebp - 0xe8], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0xf4], str._uninsttdi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40deaf
mov ecx, dword [ebp - 0xd0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00401070
cmp dword [ebp - 0x88], esi
je 0x40d7d9
mov edx, dword [0x6885dc]
mov eax, dword [0x688588]
push 0x50030
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b540
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