Function at 0x409e80
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
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf84
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
call fcn.004227e0
mov ecx, esi
mov dword [esi + 0x48], ebx
call fcn.00408dd0
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
call fcn.004098d0
mov edx, dword [0x5ba8bc]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x54]
push eax
push ecx
push ebx
push ebx
push str.AdvancedIntegration
push edx
mov dword [ebp - 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ef7
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, ebx
mov dword [ebp - 0x48], edi
je 0x409f20
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x50]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.00407f90
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x48]
xor eax, eax
cmp edx, ebx
sete al
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x40a130
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.0048a760
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0048aeb0
cmp eax, ebx
jne 0x40a0c9
lea ecx, [ebp - 0x18]
call fcn.0048a7a0
lea ecx, [ebp - 0x18]
call fcn.0048ae00
lea ecx, [ebp - 0x18]
call fcn.0048afc0
mov edx, dword [0x5b5ecc]
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040eb00
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0040e5e0
cmp eax, ebx
je 0x409ffb
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x409ff7
cmp ebx, dword [esi + 0x28]
jge 0x409ffb
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x40a0ad
xor edi, edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x409ffb
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x24]
lea esi, [edi + edi*8]
push ecx
shl esi, 2
mov eax, dword [eax + esi]
push eax
call fcn.00524fd0
add esp, 8
test eax, eax
jne 0x40a0a4
mov edx, dword [ebp - 0x38]
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 0x409ffb
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40a062
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5baed4]
mov edx, dword [0x5bb044]
push ecx
push edx
lea eax, [ebp - 0x14]
push str._s_r_n_r_n_s
push eax
mov byte [ebp - 4], 3
call fcn.0053091a
mov ecx, dword [0x5bb080]
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0x50004
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40a052
mov edi, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00537b04
cmp edi, ebx
jne 0x40a0b3
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push 4
push eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [0x5ba8bc]
push 4
push ebx
push str.AdvancedIntegration
push ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
mov ecx, esi
call fcn.0040e160
mov edx, dword [0x5bb7ac]
push edx
push ebx
call fcn.004515a0
add esp, 8
jmp 0x40a0bd
mov esi, dword [ebp - 0x38]
inc edi
jmp 0x409fb7
inc ebx
jmp 0x409fa1
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.004104f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00537b04
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a124
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 1
lea ecx, [ebp - 0x18]
call fcn.0048aef0
mov ecx, dword [0x5ba8bc]
mov edx, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push 0
push str.ClChIDMRes
push ecx
mov dword [ebp - 0x24], edx
call edi
mov ecx, dword [0x5ba8bc]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push 0
push str.ClChIERes
push ecx
mov dword [ebp - 0x24], edx
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0048a790
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a461
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40a368
mov ecx, dword [0x5ba8bc]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
push edx
push eax
push 0
push 0
push str.lastintres
push ecx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a1a6
cmp dword [ebp - 0x44], 1
jne 0x40a1a6
mov eax, dword [ebp - 0x30]
test eax, eax
mov eax, 0x5bb094
jne 0x40a186
mov eax, 0x5bb090
mov edx, dword [0x5bb09c]
mov eax, dword [eax]
push 0x50004
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40a461
lea eax, [ebp - 0x124]
xor edi, edi
push eax
mov dword [ebp - 0x124], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a1da
cmp dword [ebp - 0x114], 2
jne 0x40a1da
cmp dword [ebp - 0x120], 6
jb 0x40a1da
mov edi, 1
xor ebx, ebx
test edi, edi
je 0x40a318
mov ecx, esi
call fcn.0040d3a0
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x498]
push 0x104
push edx
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x598]
lea ecx, [ebp - 0x394]
push eax
lea edx, [ebp - 0x294]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x498]
push eax
push ecx
call fcn.0051d13a
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push str.Uninstall.exe
push edx
push eax
push 0x59879c
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x14]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x90]
add esp, 0x14
rep stosd dword es:[edi], eax
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x84], str.open
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x7c], str._instlsp1
jne 0x40a2bc
mov dword [ebp - 0x7c], str._instlsp2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a30a
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a304
mov edx, dword [ebp - 0x58]
push 0xffffffffffffffff
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40a30a
mov ebx, dword [ebp - 0x20]
jmp 0x40a30a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x40a326
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 4]
push edx
call fcn.00406ae0
mov ebx, eax
test ebx, ebx
je 0x40a336
mov dword [0x5ba470], 1
jmp 0x40a33d
mov dword [ebp - 0x28], 0
mov edx, dword [0x5ba8bc]
lea ecx, [ebp - 0x44]
push 4
xor eax, eax
push ecx
push 4
test ebx, ebx
push 0
push str.lastintres
setne al
push edx
mov dword [ebp - 0x44], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40a461
lea eax, [ebp - 0x194]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40a452
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x194]
push str.idmmbc.dll
push edx
lea eax, [ebp - 0x14]
push 0x5987d4
push eax
mov byte [ebp - 4], 5
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40a446
lea edx, [ebp - 0x194]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a446
lea eax, [ebp - 0x394]
lea ecx, [ebp - 0x598]
push eax
lea edx, [ebp - 0x294]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x194]
push eax
push ecx
call fcn.0051d13a
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x194]
push str.idmmbc.dll
push edx
push eax
push 0x59879c
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x194]
push edx
call edi
cmp eax, 0xffffffff
je 0x40a446
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x194]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40a461
lea ecx, [esi + 4]
call fcn.004084c0
lea edx, [ebp - 0x40]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a4b9
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Adsoff_Startup
push eax
call edi
mov ecx, dword [ebp - 0x40]
push str.OSSPoxy
push ecx
call edi
mov edx, dword [ebp - 0x40]
push str.New.net_Startup
push edx
call edi
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0040d480
mov eax, dword [0x5ba470]
test eax, eax
je 0x40a510
mov edx, dword [0x5ba8bc]
lea ecx, [ebp - 0x2c]
push 4
push ecx
push 4
push 0
push str.NeedChAfRb
push edx
mov dword [ebp - 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x5bb09c]
mov ecx, dword [0x5bb048]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004093a0
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40a561
mov ecx, dword [0x5ba8bc]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push 0
push str.NeedChAfRb
push ecx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a783
mov edx, dword [0x5ba8bc]
mov edi, dword [ebp - 0x20]
push str.NeedChAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40a783
mov eax, dword [0x5ba8bc]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x5ba8bc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x24]
xor esi, esi
push ecx
push edx
push esi
push esi
push str.ClChIDMRes
push eax
xor ebx, ebx
mov dword [ebp - 0x30], 4
call edi
test eax, eax
jne 0x40a5a1
mov esi, dword [ebp - 0x24]
mov eax, dword [0x5ba8bc]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x24]
push ecx
push edx
push 0
push 0
push str.ClChIERes
push eax
mov dword [ebp - 0x30], 4
call edi
test eax, eax
jne 0x40a5cf
mov eax, dword [ebp - 0x24]
cmp eax, 1
mov ebx, eax
je 0x40a5d8
cmp esi, 1
jne 0x40a783
lea ecx, [ebp - 0x20]
mov edi, 1
call fcn.0048a760
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0048aef0
cmp ebx, edi
jne 0x40a607
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40a607
xor edi, edi
cmp esi, 1
jne 0x40a612
cmp dword [ebp - 0x28], 0xffffffff
je 0x40a61a
test edi, edi
jne 0x40a723
mov eax, dword [0x5bb080]
mov ecx, dword [0x5bb070]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [ebp - 0x38]
lea ecx, [edi + 4]
call fcn.00407a70
mov eax, dword [0x5ba8bc]
lea edx, [ebp - 0x18]
push 4
push edx
push 4
push 0
push str.AdvancedIntegration
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x34]
mov dword [edi + 0x1c], 0
call fcn.0048a760
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.0048aef0
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40a699
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40a699
xor eax, eax
cmp esi, edi
jne 0x40a6a3
cmp dword [ebp - 0x28], 0xffffffff
je 0x40a6a7
test eax, eax
jne 0x40a712
mov ecx, dword [0x5ba8bc]
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push str.NeedSnRpAfRb
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x5bb080]
mov eax, dword [0x5bb06c]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.004093a0
add esp, 4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0048a790
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0048a790
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 - 0x34]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 6
call fcn.0048a790
jmp 0x40a777
mov eax, dword [ebp - 0x28]
push 0x50000
cmp eax, 1
jne 0x40a740
mov ecx, dword [0x5bb080]
mov edx, dword [0x5bb040]
push ecx
push edx
jmp 0x40a74d
mov eax, dword [0x5bb080]
mov ecx, dword [0x5bb068]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x5ba8bc]
lea edx, [ebp - 0x18]
push 4
push edx
push 4
push 0
push str.AdvancedIntegration
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0048a790
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40a7d3
mov eax, dword [0x5ba8bc]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push ecx
push edx
push 0
push 0
push str.NeedSnRpAfRb
push eax
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a867
mov ecx, dword [0x5ba8bc]
mov edi, dword [ebp - 0x3c]
push str.NeedSnRpAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40a867
push 0
lea ecx, [ebp - 0xf90]
call fcn.004ab4c0
lea ecx, [ebp - 0xf90]
mov byte [ebp - 4], 8
call fcn.00533ae5
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 0xf
call fcn.00537b04
lea ecx, [ebp - 0xe40]
mov byte [ebp - 4], 0xe
call fcn.004f5e70
lea ecx, [ebp - 0xe44]
mov byte [ebp - 4], 0xd
call fcn.00537b04
lea ecx, [ebp - 0xe80]
mov byte [ebp - 4], 0xc
call fcn.0053f9c6
lea ecx, [ebp - 0xebc]
mov byte [ebp - 4], 0xb
call fcn.0053f9c6
lea ecx, [ebp - 0xef8]
mov byte [ebp - 4], 0xa
call fcn.0053f9c6
lea ecx, [ebp - 0xf34]
mov byte [ebp - 4], 9
call fcn.0053f83e
lea ecx, [ebp - 0xf90]
mov byte [ebp - 4], 0
call fcn.00533726
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.0040b180
mov ecx, esi
call fcn.0040d3a0
mov ecx, esi
call fcn.0040a9d0
test eax, eax
jne 0x40a8b4
push eax
push eax
mov ecx, esi
call fcn.0040b830
push 0
push 0
mov ecx, esi
call fcn.0040ca40
push 0
push 0
mov ecx, esi
call fcn.0040cab0
push 0
push 0
mov ecx, esi
call fcn.0040be60
mov ecx, esi
call fcn.004b7c70
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a8bf
push 1
jmp 0x40a8e0
mov ecx, esi
call fcn.0040e110
test eax, eax
jne 0x40a8d4
push eax
mov ecx, esi
call fcn.0040e160
jmp 0x40a8e7
mov ecx, esi
call fcn.00410df0
test eax, eax
jne 0x40a8e7
push eax
mov ecx, esi
call fcn.00411010
mov eax, dword [0x5ba8b4]
test eax, eax
je 0x40a701
mov ecx, esi
call fcn.00411660
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret