Function at 0x401400
Capabilities:
Get session user name
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4032e0
mov eax, dword fs:[0]
push eax
mov eax, 0x100cc
call fcn.00403190
mov eax, dword [0x406010]
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 esi, ecx
push str.WINDIR
call dword [sym.imp.MSVCR120.dll__wgetenv]
mov edx, eax
mov dword [ebp - 0x10014], 7
xor eax, eax
mov dword [ebp - 0x10018], 0
add esp, 4
mov word [ebp - 0x10028], ax
cmp word [edx], ax
jne 0x40146a
xor ecx, ecx
jmp 0x40147f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401470
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10028]
call fcn.00402200
lea eax, [ebp - 0x10028]
mov dword [ebp - 4], 0
cmp eax, esi
je 0x4014a9
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00402110
cmp dword [ebp - 0x10018], 0
je 0x401ab4
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4014d8
push eax
push str._nCoInitializeEx_failed:__x
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
jmp 0x401ab4
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x401508
push eax
push str._nCoInitializeSecurity_failed:__x
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
jmp 0x401aae
lea eax, [ebp - 0x10038]
mov dword [ebp - 0x10038], 0
push eax
push 0x40417c
push 1
push 0
push 0x40418c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x401545
push eax
push str.Failed_to_create_an_instance_of_ITaskService:__x
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
jmp 0x401aae
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x10078]
push eax
call ebx
movdqu xmm0, xmmword [ebp - 0x10078]
lea eax, [ebp - 0x10098]
push eax
movdqu xmmword [ebp - 0x100c8], xmm0
call ebx
movdqu xmm0, xmmword [ebp - 0x10098]
lea eax, [ebp - 0x10088]
push eax
movdqu xmmword [ebp - 0x100a8], xmm0
call ebx
movdqu xmm0, xmmword [ebp - 0x10088]
lea eax, [ebp - 0x100d8]
push eax
movdqu xmmword [ebp - 0x100b8], xmm0
call ebx
mov byte [ebp - 4], 4
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x100c8]
mov ecx, dword [ebp - 0x10038]
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x100a8]
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x100b8]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x100d8]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
lea eax, [ebp - 0x100d8]
push eax
call ebx
lea eax, [ebp - 0x10088]
push eax
call ebx
lea eax, [ebp - 0x10098]
push eax
call ebx
lea eax, [ebp - 0x10078]
mov byte [ebp - 4], 0
push eax
call ebx
test esi, esi
jns 0x401641
push esi
push str.ITaskService::Connect_failed:__x
call dword [sym.imp.MSVCR120.dll_printf]
mov eax, dword [ebp - 0x10038]
add esp, 8
jmp 0x401aa8
push 0x4042e4
lea ecx, [ebp - 0x10064]
mov dword [ebp - 0x10034], 0
call fcn.004012a0
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x401669
mov edx, dword [eax]
jmp 0x40166b
xor edx, edx
mov eax, dword [ebp - 0x10038]
lea esi, [ebp - 0x10034]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00401350
test esi, esi
jns 0x4016ae
push esi
push str.Cannot_get_Root_Folder_pointer:__x
call dword [sym.imp.MSVCR120.dll_printf]
mov eax, dword [ebp - 0x10038]
add esp, 8
jmp 0x401aa8
push str.MiniTool_Shadow_Maker
lea ecx, [ebp - 0x10064]
call fcn.004012a0
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x4016cc
mov edx, dword [eax]
jmp 0x4016ce
xor edx, edx
mov eax, dword [ebp - 0x10034]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
call fcn.00401350
mov eax, dword [ebp - 0x10038]
lea edx, [ebp - 0x10030]
push edx
mov dword [ebp - 0x10030], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x10038]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401737
push esi
push str.Failed_to_create_a_task_definition:__x
call dword [sym.imp.MSVCR120.dll_printf]
mov eax, dword [ebp - 0x10034]
add esp, 8
jmp 0x401aa8
mov eax, dword [ebp - 0x10030]
lea edx, [ebp - 0x10058]
mov dword [ebp - 0x10058], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x401769
push eax
push str._nCannot_get_identification_pointer:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10058]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x10058]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10030]
lea edx, [ebp - 0x1005c]
mov dword [ebp - 0x1005c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x4017b5
push eax
push str._nCannot_get_identification_pointer:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x1005c]
push str.MiniTool
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov ecx, dword [ebp - 0x1005c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x4017e9
push esi
push str._nCannot_put_identification_info:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10030]
lea edx, [ebp - 0x10054]
mov dword [ebp - 0x10054], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x40181b
push eax
push str._nCannot_get_settings_pointer:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10054]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ecx, dword [ebp - 0x10054]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x40184c
push esi
push str._nCannot_put_setting_info:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10030]
lea edx, [ebp - 0x10048]
mov dword [ebp - 0x10048], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x40187e
push eax
push str._nCannot_get_trigger_collection:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10048]
lea edx, [ebp - 0x10044]
push edx
mov dword [ebp - 0x10044], 0
push 9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov ecx, dword [ebp - 0x10048]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x4018c0
push esi
push str._nCannot_create_the_trigger:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
mov eax, dword [ebp - 0x10044]
lea edx, [ebp - 0x1003c]
push edx
mov dword [ebp - 0x1003c], 0
push 0x40419c
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x10044]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401904
push esi
push str._nQueryInterface_call_failed_for_ILogonTrigger:__x
call dword [sym.imp.MSVCR120.dll_printf]
jmp 0x401a93
push str.Trigger1
lea ecx, [ebp - 0x10064]
call fcn.004012a0
mov byte [ebp - 4], 7
mov eax, dword [eax]
test eax, eax
je 0x401922
mov edx, dword [eax]
jmp 0x401924
xor edx, edx
mov eax, dword [ebp - 0x1003c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00401350
mov esi, dword [sym.imp.MSVCR120.dll_printf]
test edi, edi
jns 0x401957
push edi
push str._nCannot_put_the_trigger_ID:__x
call esi
add esp, 8
push str.2020_01_01T12:05:00
lea ecx, [ebp - 0x10064]
call fcn.004012a0
mov byte [ebp - 4], 8
mov eax, dword [eax]
test eax, eax
je 0x401975
mov edx, dword [eax]
jmp 0x401977
xor edx, edx
mov eax, dword [ebp - 0x1003c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00401350
test edi, edi
jns 0x4019a4
push edi
push str._nCannot_put_the_start_boundary:__x
call esi
add esp, 8
push str.2030_05_02T08:00:00
lea ecx, [ebp - 0x10064]
call fcn.004012a0
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x4019c2
mov edx, dword [eax]
jmp 0x4019c4
xor edx, edx
mov eax, dword [ebp - 0x1003c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00401350
test edi, edi
jns 0x4019f1
push edi
push str._nCannot_put_the_end_boundary:__x
call esi
add esp, 8
xor eax, eax
push 0xfffc
push eax
mov word [ebp - 0x10010], ax
lea eax, [ebp - 0x1000e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x1002c], 0x7fff
lea eax, [ebp - 0x1002c]
push eax
lea eax, [ebp - 0x10010]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x401a3b
push str.Failed_to_GetUserName
call esi
add esp, 4
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x10064]
call fcn.004012a0
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x401a5b
mov edx, dword [eax]
jmp 0x401a5d
xor edx, edx
mov eax, dword [ebp - 0x1003c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00401350
mov ecx, dword [ebp - 0x1003c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
jns 0x401aef
push edi
push str._nCannot_add_user_ID_to_logon_trigger:__x
call esi
mov eax, dword [ebp - 0x10034]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10030]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
cmp dword [ebp - 0x10014], 8
jb 0x401ad1
push dword [ebp - 0x10028]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
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.0040280f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10030]
lea edx, [ebp - 0x10050]
mov dword [ebp - 0x10050], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x401b1b
push eax
push str._nCannot_get_Task_collection_pointer:__x
jmp 0x401a91
mov eax, dword [ebp - 0x10050]
lea edx, [ebp - 0x1004c]
push edx
mov dword [ebp - 0x1004c], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, dword [ebp - 0x10050]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
jns 0x401b57
push edi
push str._nCannot_create_the_action:__x
jmp 0x401a91
mov eax, dword [ebp - 0x1004c]
lea edx, [ebp - 0x10040]
push edx
mov dword [ebp - 0x10040], 0
push str.MbLk
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x1004c]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
jns 0x401b95
push edi
push str._nQueryInterface_call_failed_for_IExecAction:__x
jmp 0x401a91
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
lea ecx, [ebp - 0x10064]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.004012a0
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
test edx, edx
je 0x401bc3
mov edx, dword [edx]
jmp 0x401bc5
xor edx, edx
mov eax, dword [ebp - 0x10040]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x10064]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00401350
mov ecx, dword [ebp - 0x10040]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
jns 0x401bfe
push edi
push str._nCannot_set_path_of_executable:__x
jmp 0x401a91
push 0x4045fc
lea ecx, [ebp - 0x10088]
mov dword [ebp - 0x10060], 0
call fcn.004013b0
movdqu xmm0, xmmword [eax]
lea eax, [ebp - 0x10078]
push eax
movdqu xmmword [ebp - 0x100b8], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10098]
movdqu xmm0, xmmword [ebp - 0x10078]
push str.BuiltinAdministrators
movdqu xmmword [ebp - 0x100a8], xmm0
call fcn.004013b0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10064]
movdqu xmm0, xmmword [eax]
push str.MiniTool_Shadow_Maker
movdqu xmmword [ebp - 0x100c8], xmm0
call fcn.004012a0
mov byte [ebp - 4], 0xf
mov edi, dword [eax]
test edi, edi
je 0x401c83
mov edi, dword [edi]
jmp 0x401c85
xor edi, edi
movdqu xmm0, xmmword [ebp - 0x100b8]
mov ecx, dword [ebp - 0x10034]
lea eax, [ebp - 0x10060]
push eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
push 4
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x100a8]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x100c8]
push 6
push dword [ebp - 0x10030]
movdqu xmmword [eax], xmm0
push edi
push ecx
call dword [edx + 0x44]
lea ecx, [ebp - 0x10064]
mov edi, eax
call fcn.00401350
lea eax, [ebp - 0x10098]
push eax
call ebx
lea eax, [ebp - 0x10078]
push eax
call ebx
lea eax, [ebp - 0x10088]
mov byte [ebp - 4], 0
push eax
call ebx
test edi, edi
jns 0x401d11
push edi
push str._nError_saving_the_Task_:__x
jmp 0x401a91
push str._n_Success__Task_successfully_registered.
call esi
mov eax, dword [ebp - 0x10034]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10030]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10060]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
jmp 0x401ab9