Function at 0x40e9b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631241
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x158], edi
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40ef85
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], 0
call fcn.00413bf0
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40ea2c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push str.schtasks__delete__tn__s__F
push eax
call fcn.004132c0
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x40ea7c
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef8f
push edx
push ecx
call fcn.005c385c
add esp, 8
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40ef94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push dword [edi + 0x600]
call fcn.00411c00
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push 3
push dword [edi + 0x5b0]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.004126e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push dword [esi]
push dword [ebp - 0xa8]
push str.___s_supdater.exe____stageschtasks_
push eax
call fcn.004132c0
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
add esp, 0x10
cmp eax, ecx
je 0x40eb03
push eax
call fcn.006140b6
add esp, 4
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40ef9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 5
call fcn.00413bf0
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x154]
push dword [edi + 0x600]
call fcn.00411c00
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0xa4]
push 3
push dword [edi + 0x5b0]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.004126e0
mov byte [ebp - 4], 8
cmp dword [esi + 0x14], 0x10
jb 0x40eba4
mov esi, dword [esi]
mov eax, dword [ebp - 0x14]
push esi
push dword [eax]
lea eax, [ebp - 0x20]
push dword [ebp - 0xa8]
push str._s_s_s.xml
push eax
call fcn.004132c0
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
add esp, 0x14
cmp eax, ecx
je 0x40ebda
push eax
call fcn.006140b6
add esp, 4
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x154]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ebfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x40ec39
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40efa8
push edx
push ecx
call fcn.005c385c
add esp, 8
push 3
push dword [ebp - 0x18]
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], eax
call fcn.004127d0
mov byte [ebp - 4], 9
mov edx, 0x1388
mov ecx, dword [ebp - 0x128]
push 0
call fcn.00480d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x128]
add esp, 4
cmp eax, ecx
je 0x40ec8b
push eax
call fcn.006140b6
add esp, 4
push 0x110
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.005feb40
add esp, 0xc
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 5
mov edi, dword [ebp - 0x20]
ja 0x40ed49
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00413bf0
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40eced
mov eax, dword [eax]
push dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push str.schtasks__create__sc_ONLOGON__tn__s__tr__s__ru__System_
push eax
call fcn.004132c0
mov byte [ebp - 4], 5
add esp, 0x10
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x40eec5
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40efad
push edx
push ecx
call fcn.005c385c
add esp, 8
jmp 0x40eec5
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40efb2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x158]
mov byte [ebp - 4], 0xb
push dword [eax + 0x600]
push dword [eax + 0x5b0]
lea eax, [ebp - 0x14]
push str.__s_supdater.exe_
push eax
call fcn.00402970
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
mov dword [ebp - 0x140], 0
xor eax, eax
mov dword [ebp - 0x13c], 7
mov word [ebp - 0x150], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x150]
call fcn.00416b00
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x170]
push 9
xor eax, eax
mov dword [ebp - 0x160], 0
push str.command
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
call fcn.00416b00
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x170]
mov ecx, edi
call fcn.00484af0
add esp, 4
lea ecx, [ebp - 0x170]
call fcn.00402f20
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xb
call fcn.00402f20
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00413bf0
lea ecx, [ebp - 0x188]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x40ee59
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x18]
push str.schtasks__create__tn__s__xml___s_
push eax
call fcn.004132c0
mov byte [ebp - 4], 0xb
add esp, 0x10
mov edx, dword [ebp - 0x174]
cmp edx, 0x10
jb 0x40eeaa
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40efbc
push edx
push ecx
call fcn.005c385c
add esp, 8
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40eec5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x124]
push 3
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], eax
call fcn.004127d0
mov byte [ebp - 4], 0xf
mov edx, 0x1388
mov ecx, dword [ebp - 0x128]
push 0
call fcn.00480d60
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x124]
add esp, 4
cmp eax, ecx
je 0x40ef14
push eax
call fcn.006140b6
add esp, 4
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ef2f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ef69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f90
call fcn.00606fc9
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
call fcn.00606fc9
call fcn.00606fc9
push 0x80004005
call fcn.00401f90
call fcn.00606fc9
int3