Function at 0x40a2d0
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 0x553b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfe4
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.00425230
mov ecx, esi
mov dword [esi + 0x48], ebx
call fcn.00408ed0
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00409a70
mov ecx, esi
call fcn.0040a130
mov edx, dword [0x5c74b0]
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 0x40a34e
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 0x40a377
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x50]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.00408060
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 0x40a587
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.00490fb0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00491700
cmp eax, ebx
jne 0x40a520
lea ecx, [ebp - 0x18]
call fcn.00490ff0
lea ecx, [ebp - 0x18]
call fcn.00491650
lea ecx, [ebp - 0x18]
call fcn.00491810
mov edx, dword [0x5c2a74]
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.0040ef70
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0040ea50
cmp eax, ebx
je 0x40a452
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40a44e
cmp ebx, dword [esi + 0x28]
jge 0x40a452
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x40a504
xor edi, edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40a452
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.0052f680
add esp, 8
test eax, eax
jne 0x40a4fb
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 0x40a452
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40a4b9
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5c7b2c]
mov edx, dword [0x5c7c9c]
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.0053afda
mov ecx, dword [0x5c7cd8]
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 0x40a4a9
mov edi, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005421be
cmp edi, ebx
jne 0x40a50a
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push 4
push eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [0x5c74b0]
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.0040e5d0
mov edx, dword [0x5c8404]
push edx
push ebx
call fcn.00456db0
add esp, 8
jmp 0x40a514
mov esi, dword [ebp - 0x38]
inc edi
jmp 0x40a40e
inc ebx
jmp 0x40a3f8
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.00410960
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005421be
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a57b
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 1
lea ecx, [ebp - 0x18]
call fcn.00491740
mov ecx, dword [0x5c74b0]
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 [0x5c74b0]
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.00490fe0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a8b8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40a7bf
mov ecx, dword [0x5c74b0]
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 0x40a5fd
cmp dword [ebp - 0x44], 1
jne 0x40a5fd
mov eax, dword [ebp - 0x30]
test eax, eax
mov eax, 0x5c7cec
jne 0x40a5dd
mov eax, 0x5c7ce8
mov edx, dword [0x5c7cf4]
mov eax, dword [eax]
push 0x50004
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40a8b8
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 0x40a631
cmp dword [ebp - 0x114], 2
jne 0x40a631
cmp dword [ebp - 0x120], 6
jb 0x40a631
mov edi, 1
xor ebx, ebx
test edi, edi
je 0x40a76f
mov ecx, esi
call fcn.0040d810
mov ecx, dword [0x5c2a74]
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.0052776a
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push str.Uninstall.exe
push edx
push eax
push 0x5a47ec
push ecx
call fcn.0053afda
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 0x40a713
mov dword [ebp - 0x7c], str._instlsp2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a761
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a75b
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 0x40a761
mov ebx, dword [ebp - 0x20]
jmp 0x40a761
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
jmp 0x40a77d
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 4]
push edx
call fcn.00406ba0
mov ebx, eax
test ebx, ebx
je 0x40a78d
mov dword [0x5c7020], 1
jmp 0x40a794
mov dword [ebp - 0x28], 0
mov edx, dword [0x5c74b0]
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 0x40a8b8
lea eax, [ebp - 0x194]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40a8a9
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x194]
push str.idmmbc.dll
push edx
lea eax, [ebp - 0x14]
push 0x5a4824
push eax
mov byte [ebp - 4], 5
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40a89d
lea edx, [ebp - 0x194]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a89d
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.0052776a
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x194]
push str.idmmbc.dll
push edx
push eax
push 0x5a47ec
push ecx
call fcn.00527718
add esp, 0x14
lea edx, [ebp - 0x194]
push edx
call edi
cmp eax, 0xffffffff
je 0x40a89d
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.005421be
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40a8b8
lea ecx, [esi + 4]
call fcn.00408590
lea edx, [ebp - 0x40]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a910
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.0040d8f0
mov eax, dword [0x5c7020]
test eax, eax
je 0x40a967
mov edx, dword [0x5c74b0]
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 [0x5c7cf4]
mov ecx, dword [0x5c7ca0]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00409520
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40a9b8
mov ecx, dword [0x5c74b0]
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 0x40abda
mov edx, dword [0x5c74b0]
mov edi, dword [ebp - 0x20]
push str.NeedChAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40abda
mov eax, dword [0x5c74b0]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x5c74b0]
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 0x40a9f8
mov esi, dword [ebp - 0x24]
mov eax, dword [0x5c74b0]
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 0x40aa26
mov eax, dword [ebp - 0x24]
cmp eax, 1
mov ebx, eax
je 0x40aa2f
cmp esi, 1
jne 0x40abda
lea ecx, [ebp - 0x20]
mov edi, 1
call fcn.00490fb0
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.00491740
cmp ebx, edi
jne 0x40aa5e
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40aa5e
xor edi, edi
cmp esi, 1
jne 0x40aa69
cmp dword [ebp - 0x28], 0xffffffff
je 0x40aa71
test edi, edi
jne 0x40ab7a
mov eax, dword [0x5c7cd8]
mov ecx, dword [0x5c7cc8]
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.00407b40
mov eax, dword [0x5c74b0]
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.00490fb0
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.00491740
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40aaf0
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40aaf0
xor eax, eax
cmp esi, edi
jne 0x40aafa
cmp dword [ebp - 0x28], 0xffffffff
je 0x40aafe
test eax, eax
jne 0x40ab69
mov ecx, dword [0x5c74b0]
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 [0x5c7cd8]
mov eax, dword [0x5c7cc4]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00409520
add esp, 4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00490fe0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00490fe0
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.00490fe0
jmp 0x40abce
mov eax, dword [ebp - 0x28]
push 0x50000
cmp eax, 1
jne 0x40ab97
mov ecx, dword [0x5c7cd8]
mov edx, dword [0x5c7c98]
push ecx
push edx
jmp 0x40aba4
mov eax, dword [0x5c7cd8]
mov ecx, dword [0x5c7cc0]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x5c74b0]
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.00490fe0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40ac2a
mov eax, dword [0x5c74b0]
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 0x40accd
mov ecx, dword [0x5c74b0]
mov edi, dword [ebp - 0x3c]
push str.NeedSnRpAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40accd
push 0
lea ecx, [ebp - 0xff0]
call fcn.004b2ca0
lea ecx, [ebp - 0xff0]
mov byte [ebp - 4], 8
call fcn.0053e1a5
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 0x10
call fcn.005421be
lea ecx, [ebp - 0xe60]
mov byte [ebp - 4], 0xf
call fcn.004ff780
lea ecx, [ebp - 0xe68]
mov byte [ebp - 4], 0xe
call fcn.005421be
lea ecx, [ebp - 0xea4]
mov byte [ebp - 4], 0xd
call fcn.0054a098
lea ecx, [ebp - 0xee0]
mov byte [ebp - 4], 0xc
call fcn.0054a098
lea ecx, [ebp - 0xf1c]
mov byte [ebp - 4], 0xb
call fcn.0054a098
lea ecx, [ebp - 0xf58]
mov byte [ebp - 4], 0xa
call fcn.00549f10
lea ecx, [ebp - 0xf94]
mov byte [ebp - 4], 9
call fcn.00549f48
lea ecx, [ebp - 0xff0]
mov byte [ebp - 4], 0
call fcn.0053dde6
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.0040b5f0
mov ecx, esi
call fcn.0040d810
mov ecx, esi
call fcn.0040ae40
test eax, eax
jne 0x40ad1a
push eax
push eax
mov ecx, esi
call fcn.0040bca0
push 0
push 0
mov ecx, esi
call fcn.0040ceb0
push 0
push 0
mov ecx, esi
call fcn.0040cf20
push 0
push 0
mov ecx, esi
call fcn.0040c2d0
mov ecx, esi
call fcn.004fba10
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40ad25
push 1
jmp 0x40ad46
mov ecx, esi
call fcn.0040e580
test eax, eax
jne 0x40ad3a
push eax
mov ecx, esi
call fcn.0040e5d0
jmp 0x40ad4d
mov ecx, esi
call fcn.00411260
test eax, eax
jne 0x40ad4d
push eax
mov ecx, esi
call fcn.00411480
mov eax, dword [0x5c74a8]
test eax, eax
je 0x40ab58
mov ecx, esi
call fcn.00411ad0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret