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 0x40f161
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x417024]
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 0x401647
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
push 0x410244
push 1
push 0
push 0x410264
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401641
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 0x401635
push str.MicrosoftWindowsWindows_Error_Reporting
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x12c], 0
call fcn.00401010
mov byte [ebp - 4], 7
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], 2
or edi, 0xffffffff
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 0x154], 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.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
mov eax, dword [ebp - 0x154]
add esp, 8
test eax, eax
jns 0x4013be
push 0x414c84
lea ecx, [ebp - 0x154]
call fcn.00401010
mov byte [ebp - 4], 8
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], 2
mov esi, dword [ebp - 0x154]
mov dword [ebp - 0x15c], 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.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
mov eax, dword [ebp - 0x15c]
add esp, 8
test eax, eax
js 0x401635
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 0x401629
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 0x40161d
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 0x401611
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x130]
push edx
mov dword [ebp - 0x130], 0
push 0x410254
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x401605
push str.Trigger1
lea ecx, [ebp - 0x154]
call fcn.00401010
mov byte [ebp - 4], 9
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], 2
mov esi, dword [ebp - 0x154]
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.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
add esp, 8
push str.2010_10_10T00:00:00
lea ecx, [ebp - 0x154]
call fcn.00401010
mov byte [ebp - 4], 0xa
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], 2
mov esi, dword [ebp - 0x154]
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.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
add esp, 8
push str.2030_12_31T23:59:59
lea ecx, [ebp - 0x154]
call fcn.00401010
mov byte [ebp - 4], 0xb
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], 2
mov esi, dword [ebp - 0x154]
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.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
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 0x40170f
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 0x401680
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401676
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bce
push edx
push ecx
call fcn.00402f79
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 0x4016c6
mov ecx, dword [ebx + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bce
push edx
push ecx
call fcn.00402f79
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 0x401bae
mov ecx, dword [ebx + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401ba4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bce
jmp 0x401ba4
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x154]
cmovae eax, dword [ebx + 0x20]
push eax
call fcn.00401010
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
test edx, edx
je 0x401734
mov edx, dword [edx]
jmp 0x401736
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 0x401794
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401794
test esi, esi
je 0x401794
mov eax, dword [esi]
test eax, eax
je 0x401772
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401789
push eax
call fcn.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
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 0x4015f9
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 0x4017ed
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4015f9
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 0x401b02
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.00401010
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
test edx, edx
je 0x401854
mov edx, dword [edx]
jmp 0x401856
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 0x4018b4
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4018b4
test esi, esi
je 0x4018b4
mov eax, dword [esi]
test eax, eax
je 0x401892
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4018a9
push eax
call fcn.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
add esp, 8
push str.__check
lea ecx, [ebp - 0x154]
call fcn.00401010
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
test edx, edx
je 0x4018d2
mov edx, dword [edx]
jmp 0x4018d4
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 0x401932
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x401932
test esi, esi
je 0x401932
mov eax, dword [esi]
test eax, eax
je 0x401910
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401927
push eax
call fcn.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
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 0x40161d
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 0x401986
mov eax, dword [ebp - 0x148]
jmp 0x401617
mov eax, 8
mov dword [ebp - 0x150], 0
push 0x414cc4
mov word [ebp - 0x170], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x401bd3
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.00401010
mov byte [ebp - 4], 0x12
mov esi, dword [eax]
test esi, esi
je 0x401a20
mov esi, dword [esi]
jmp 0x401a22
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 0x401ac8
lock xadd dword [esi + 8], edi
dec edi
jne 0x401abe
test esi, esi
je 0x401abe
mov eax, dword [esi]
test eax, eax
je 0x401a9c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401ab3
push eax
call fcn.00402f44
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00402f79
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 0x401b1f
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 0x4015f9
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 0x40164c
push edx
push ecx
call fcn.00402f79
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.00402f33
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040673c
push 0x8007000e
call fcn.00402bc0
int3