Function at 0x40b8f0
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 0x57bc0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4c
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.0042bbd0
mov ecx, esi
mov dword [esi + 0x48], ebx
call fcn.0040a450
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
call fcn.0040aff0
mov ecx, esi
call fcn.0040b750
mov edx, dword [0x63e518]
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 0x40b96e
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 0x40b997
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x50]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.004095e0
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 0x40bba7
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.004a6a80
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004a71d0
cmp eax, ebx
jne 0x40bb40
lea ecx, [ebp - 0x18]
call fcn.004a6ac0
lea ecx, [ebp - 0x18]
call fcn.004a7120
lea ecx, [ebp - 0x18]
call fcn.004a72e0
mov edx, dword [0x639ad4]
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.004105c0
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00410080
cmp eax, ebx
je 0x40ba72
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40ba6e
cmp ebx, dword [esi + 0x28]
jge 0x40ba72
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x40bb24
xor edi, edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40ba72
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.00556b60
add esp, 8
test eax, eax
jne 0x40bb1b
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 0x40ba72
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40bad9
mov eax, dword [0x639ad4]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x63ec74]
mov edx, dword [0x63ede4]
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.00562ecb
mov ecx, dword [0x63ee20]
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 0x40bac9
mov edi, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0056a100
cmp edi, ebx
jne 0x40bb2a
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push 4
push eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [0x63e518]
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.0040fc00
mov edx, dword [0x63f54c]
push edx
push ebx
call fcn.00464930
add esp, 8
jmp 0x40bb34
mov esi, dword [ebp - 0x38]
inc edi
jmp 0x40ba2e
inc ebx
jmp 0x40ba18
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.004121d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0056a100
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40bb9b
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 1
lea ecx, [ebp - 0x18]
call fcn.004a7210
mov ecx, dword [0x63e518]
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 [0x63e518]
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.004a6ab0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40bed8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40bddf
mov ecx, dword [0x63e518]
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 0x40bc1d
cmp dword [ebp - 0x44], 1
jne 0x40bc1d
mov eax, dword [ebp - 0x30]
test eax, eax
mov eax, 0x63ee34
jne 0x40bbfd
mov eax, 0x63ee30
mov edx, dword [0x63ee3c]
mov eax, dword [eax]
push 0x50004
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40bed8
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 0x40bc51
cmp dword [ebp - 0x114], 2
jne 0x40bc51
cmp dword [ebp - 0x120], 6
jb 0x40bc51
mov edi, 1
xor ebx, ebx
test edi, edi
je 0x40bd8f
mov ecx, esi
call fcn.0040ee40
mov ecx, dword [0x639ad4]
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.0054ea7c
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push str.Uninstall.exe
push edx
push eax
push 0x6168c4
push ecx
call fcn.00562ecb
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], 0x615e54
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 0x40bd33
mov dword [ebp - 0x7c], str._instlsp2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bd81
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40bd7b
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 0x40bd81
mov ebx, dword [ebp - 0x20]
jmp 0x40bd81
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x40bd9d
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 4]
push edx
call fcn.00408120
mov ebx, eax
test ebx, ebx
je 0x40bdad
mov dword [0x63e074], 1
jmp 0x40bdb4
mov dword [ebp - 0x28], 0
mov edx, dword [0x63e518]
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 0x40bed8
lea eax, [ebp - 0x194]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40bec9
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x194]
push str.idmmbc.dll
push edx
lea eax, [ebp - 0x14]
push 0x6168fc
push eax
mov byte [ebp - 4], 5
call fcn.00562ecb
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40bebd
lea edx, [ebp - 0x194]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40bebd
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.0054ea7c
add esp, 0x14
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x194]
push str.idmmbc.dll
push edx
push eax
push 0x6168c4
push ecx
call fcn.0054ea2a
add esp, 0x14
lea edx, [ebp - 0x194]
push edx
call edi
cmp eax, 0xffffffff
je 0x40bebd
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.0056a100
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40bed8
lea ecx, [esi + 4]
call fcn.00409b10
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 0x40bf30
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.0040ef20
mov eax, dword [0x63e074]
test eax, eax
je 0x40bf87
mov edx, dword [0x63e518]
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 [0x63ee3c]
mov ecx, dword [0x63ede8]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040aaa0
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40bfd8
mov ecx, dword [0x63e518]
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 0x40c1fa
mov edx, dword [0x63e518]
mov edi, dword [ebp - 0x20]
push str.NeedChAfRb
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40c1fa
mov eax, dword [0x63e518]
push str.NeedChAfRb
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x63e518]
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 0x40c018
mov esi, dword [ebp - 0x24]
mov eax, dword [0x63e518]
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 0x40c046
mov eax, dword [ebp - 0x24]
cmp eax, 1
mov ebx, eax
je 0x40c04f
cmp esi, 1
jne 0x40c1fa
lea ecx, [ebp - 0x20]
mov edi, 1
call fcn.004a6a80
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.004a7210
cmp ebx, edi
jne 0x40c07e
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40c07e
xor edi, edi
cmp esi, 1
jne 0x40c089
cmp dword [ebp - 0x28], 0xffffffff
je 0x40c091
test edi, edi
jne 0x40c19a
mov eax, dword [0x63ee20]
mov ecx, dword [0x63ee10]
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.004090c0
mov eax, dword [0x63e518]
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.004a6a80
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.004a7210
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40c110
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40c110
xor eax, eax
cmp esi, edi
jne 0x40c11a
cmp dword [ebp - 0x28], 0xffffffff
je 0x40c11e
test eax, eax
jne 0x40c189
mov ecx, dword [0x63e518]
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 [0x63ee20]
mov eax, dword [0x63ee0c]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040aaa0
add esp, 4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.004a6ab0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004a6ab0
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.004a6ab0
jmp 0x40c1ee
mov eax, dword [ebp - 0x28]
push 0x50000
cmp eax, 1
jne 0x40c1b7
mov ecx, dword [0x63ee20]
mov edx, dword [0x63ede0]
push ecx
push edx
jmp 0x40c1c4
mov eax, dword [0x63ee20]
mov ecx, dword [0x63ee08]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x63e518]
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.004a6ab0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40c24a
mov eax, dword [0x63e518]
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 0x40c2ed
mov ecx, dword [0x63e518]
mov edi, dword [ebp - 0x3c]
push str.NeedSnRpAfRb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40c2ed
push 0
lea ecx, [ebp - 0xf58]
call fcn.004ca010
lea ecx, [ebp - 0xf58]
mov byte [ebp - 4], 8
call fcn.00566096
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 0x10
call fcn.0056a100
lea ecx, [ebp - 0xdc8]
mov byte [ebp - 4], 0xf
call fcn.0051e0a0
lea ecx, [ebp - 0xdd0]
mov byte [ebp - 4], 0xe
call fcn.0056a100
lea ecx, [ebp - 0xe0c]
mov byte [ebp - 4], 0xd
call fcn.00571f23
lea ecx, [ebp - 0xe48]
mov byte [ebp - 4], 0xc
call fcn.00571f23
lea ecx, [ebp - 0xe84]
mov byte [ebp - 4], 0xb
call fcn.00571f23
lea ecx, [ebp - 0xec0]
mov byte [ebp - 4], 0xa
call fcn.00571d9b
lea ecx, [ebp - 0xefc]
mov byte [ebp - 4], 9
call fcn.00571dd3
lea ecx, [ebp - 0xf58]
mov byte [ebp - 4], 0
call fcn.00565cd7
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.0040cc20
mov ecx, esi
call fcn.0040ee40
mov ecx, esi
call fcn.0040c460
test eax, eax
jne 0x40c33a
push eax
push eax
mov ecx, esi
call fcn.0040d2d0
push 0
push 0
mov ecx, esi
call fcn.0040e4e0
push 0
push 0
mov ecx, esi
call fcn.0040e550
push 0
push 0
mov ecx, esi
call fcn.0040d900
mov ecx, esi
call fcn.0040c470
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40c345
push 1
jmp 0x40c366
mov ecx, esi
call fcn.0040fbb0
test eax, eax
jne 0x40c35a
push eax
mov ecx, esi
call fcn.0040fc00
jmp 0x40c36d
mov ecx, esi
call fcn.00412ae0
test eax, eax
jne 0x40c36d
push eax
mov ecx, esi
call fcn.00412d00
mov eax, dword [0x63e510]
test eax, eax
je 0x40c178
mov ecx, esi
call fcn.004133b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret