Function at 0x401120
Capabilities:
Query environment variable
Schedule task via itaskservice

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e936
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x416024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401a3b
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
push 0x40f224
push 1
push 0
push 0x40f244
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401a35
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x170]
push eax
call esi
movups xmm0, xmmword [ebp - 0x170]
lea eax, [ebp - 0x190]
push eax
movups xmmword [ebp - 0x1a0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x190]
lea eax, [ebp - 0x1d0]
push eax
movups xmmword [ebp - 0x1b0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x1d0]
lea eax, [ebp - 0x180]
push eax
movups xmmword [ebp - 0x1c0], xmm0
call esi
mov byte [ebp - 4], 4
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x124]
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1b0]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1c0]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x180]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
lea eax, [ebp - 0x180]
push eax
call edi
lea eax, [ebp - 0x1d0]
push eax
call edi
lea eax, [ebp - 0x190]
push eax
call edi
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0
push eax
call edi
test esi, esi
js 0x401a29
push str.MicrosoftWindowsWindows_Error_Reporting
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x12c], 0
call fcn.00401010
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4012a7
mov edx, dword [eax]
jmp 0x4012a9
xor edx, edx
mov eax, dword [ebp - 0x124]
lea esi, [ebp - 0x12c]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x158], eax
test esi, esi
je 0x40131d
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40131d
test esi, esi
je 0x40131d
mov eax, dword [esi]
test eax, eax
je 0x4012f5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40130c
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
mov eax, dword [ebp - 0x158]
add esp, 8
test eax, eax
jns 0x4013be
push 0x413c64
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x401343
mov edx, dword [eax]
jmp 0x401345
xor edx, edx
mov eax, dword [ebp - 0x124]
lea esi, [ebp - 0x12c]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
mov dword [ebp - 0x160], eax
test esi, esi
je 0x4013b6
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4013b6
test esi, esi
je 0x4013b6
mov eax, dword [esi]
test eax, eax
je 0x40138e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4013a5
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
mov eax, dword [ebp - 0x160]
add esp, 8
test eax, eax
js 0x401a29
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x401a1d
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x134]
mov dword [ebp - 0x134], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x401a11
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
push edx
mov dword [ebp - 0x138], 0
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x401a05
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x130]
push edx
mov dword [ebp - 0x130], 0
push 0x40f234
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x4019f9
push str.Trigger1
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 7
mov edx, dword [eax]
test edx, edx
je 0x401478
mov edx, dword [edx]
jmp 0x40147a
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x4014d8
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4014d8
test esi, esi
je 0x4014d8
mov eax, dword [esi]
test eax, eax
je 0x4014b6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4014cd
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
push str.2010_10_10T00:00:00
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 8
mov edx, dword [eax]
test edx, edx
je 0x4014f6
mov edx, dword [edx]
jmp 0x4014f8
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x401556
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401556
test esi, esi
je 0x401556
mov eax, dword [esi]
test eax, eax
je 0x401534
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40154b
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
push str.2030_12_31T23:59:59
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 9
mov edx, dword [eax]
test edx, edx
je 0x401574
mov edx, dword [edx]
jmp 0x401576
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x4015d4
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4015d4
test esi, esi
je 0x4015d4
mov eax, dword [esi]
test eax, eax
je 0x4015b2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4015c9
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x150]
mov dword [ebp - 0x150], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x4019ed
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
lea ecx, [ebp - 0x158]
cmovae eax, dword [ebx + 8]
push eax
call fcn.00401010
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
test edx, edx
je 0x40161e
mov edx, dword [edx]
jmp 0x401620
xor edx, edx
mov eax, dword [ebp - 0x150]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x40167e
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x40167e
test esi, esi
je 0x40167e
mov eax, dword [esi]
test eax, eax
je 0x40165c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401673
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x4019ed
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x140]
push edx
mov dword [ebp - 0x140], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x4019e1
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x144]
push edx
mov dword [ebp - 0x144], 0
push str.MbLk
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x4019d5
push 0x104
lea eax, [ebp - 0x120]
push eax
push str._APPDATA_PowerSavesNeverSleep.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
test edx, edx
je 0x40172a
mov edx, dword [edx]
jmp 0x40172c
xor edx, edx
mov eax, dword [ebp - 0x144]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x40178a
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x40178a
test esi, esi
je 0x40178a
mov eax, dword [esi]
test eax, eax
je 0x401768
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40177f
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
push str.__check
lea ecx, [ebp - 0x158]
call fcn.00401010
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
test edx, edx
je 0x4017a8
mov edx, dword [edx]
jmp 0x4017aa
xor edx, edx
mov eax, dword [ebp - 0x144]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x158]
test esi, esi
je 0x401808
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401808
test esi, esi
je 0x401808
mov eax, dword [esi]
test eax, eax
je 0x4017e6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4017fd
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x148]
mov dword [ebp - 0x148], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x401a11
mov eax, dword [ebp - 0x148]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x148]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
jns 0x40185c
mov eax, dword [ebp - 0x148]
jmp 0x401a0b
mov eax, 8
mov dword [ebp - 0x14c], 0
push 0x413cc8
mov word [ebp - 0x180], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x178], eax
test eax, eax
je 0x401bbd
movups xmm0, xmmword [ebp - 0x180]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x190]
push eax
movups xmmword [ebp - 0x1c0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x190]
lea eax, [ebp - 0x170]
push eax
movups xmmword [ebp - 0x1b0], xmm0
call esi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x160]
movups xmm0, xmmword [ebp - 0x170]
push 0x413ccc
movups xmmword [ebp - 0x1a0], xmm0
call fcn.00401010
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
test eax, eax
je 0x4018ef
mov esi, dword [eax]
jmp 0x4018f1
xor esi, esi
movups xmm0, xmmword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x14c]
push eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
push 3
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1b0]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x1a0]
push 6
push dword [ebp - 0x128]
movups xmmword [eax], xmm0
push esi
push ecx
call dword [edx + 0x44]
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x158], eax
test esi, esi
je 0x401997
lock xadd dword [esi + 8], edi
dec edi
jne 0x40198d
test esi, esi
je 0x40198d
mov eax, dword [esi]
test eax, eax
je 0x40196b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401982
push eax
call fcn.00402806
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040283b
add esp, 8
mov dword [ebp - 0x160], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x170]
push eax
call edi
lea eax, [ebp - 0x190]
push eax
call edi
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 0
push eax
call edi
cmp dword [ebp - 0x158], 0
jge 0x401a77
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x401b9d
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401b93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bc7
jmp 0x401b93
lea eax, [ebp - 0x170]
mov dword [ebp - 0x154], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0x14c]
movups xmm0, xmmword [ebp - 0x170]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x30]
mov esi, eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x170]
push eax
call edi
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x401b1a
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x13c]
jmp 0x401a0b
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
jmp 0x401a40
push edx
push ecx
call fcn.0040283b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004027f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x8007000e
call fcn.00402500
call fcn.00405f1c
int3