Function at 0x18001221c
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rcx + 0x18], rdx
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
mov rdx, qword [rbx + 0x18]
lea rcx, [rdx + rax*2 + 2]
mov qword [rbx + 0x20], rcx
call qword [sym.imp.msvcrt.dll_wcslen]
mov rdx, qword [rbx + 0x20]
lea rcx, [rdx + rax*2 + 2]
mov qword [rbx + 0x28], rcx
call qword [sym.imp.msvcrt.dll_wcslen]
mov rcx, qword [rbx + 0x28]
lea rcx, [rcx + rax*2 + 2]
mov qword [rbx + 0x30], rcx
call qword [sym.imp.msvcrt.dll_wcslen]
mov rcx, qword [rbx + 0x30]
lea rax, [rcx + rax*2 + 2]
mov rcx, rbx
mov qword [rbx + 0x38], rax
add rsp, 0x20
pop rbx
jmp 0x18001221c
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor r12d, r12d
mov rdx, qword [rbx + 0x30]
mov qword [rbp + 0x60], r12
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
call qword [rax + 0x38]
test eax, eax
jns 0x1800122ec
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x58], r12
lea r8, [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [0x18003adf8]
call qword [rax + 0x38]
test eax, eax
jns 0x18001228d
mov r8d, eax
lea rdx, str.Cannot_get_Root_Folder_pointer:__x_n
mov ecx, 0x184
call fcn.180030818
xor al, al
jmp 0x18001270d
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rbx + 0x30]
movups xmm0, xmmword [rbp - 0x60]
movsd xmm1, qword [rbp - 0x50]
mov rax, qword [rcx]
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x40]
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call qword [rax + 0x58]
lea rcx, [rbp - 0x60]
mov edi, eax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test edi, edi
jns 0x1800122ec
mov r8d, edi
lea rdx, str.Cannot_create_New_Folder_pointer:__x_n
mov ecx, 0x191
jmp 0x180012281
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbx + 0x20]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbx + 0x10]
mov qword [rbp + 0x58], r12
mov rax, qword [rcx]
lea r8, [rbp + 0x58]
xor edx, edx
call qword [rax + 0x48]
test eax, eax
jns 0x180012338
lea rdx, str.Failed_to_create_a_task_definition:__x_n
mov r8d, eax
mov ecx, 0x19e
call fcn.180030818
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180012286
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0x68], r12
lea rdx, [rbp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jns 0x180012372
lea rdx, str.Cannot_get_identification_pointer:__x_n
mov ecx, 0x1a9
mov r8d, eax
call fcn.180030818
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
jmp 0x18001232d
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbx + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x1800123a4
lea rdx, str.Cannot_put_identification_info:__x_n
mov r8d, eax
mov ecx, 0x1b2
call fcn.180030818
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180012362
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x1800123d3
mov r8d, edi
lea rdx, str.Cannot_put_identification_info:__x_n
mov ecx, 0x1bd
jmp 0x18001235d
mov rcx, qword [rbp + 0x58]
mov qword [rsp + 0x78], r12
lea rdx, [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
jns 0x1800123fc
lea rdx, str.Cannot_get_settings_pointer:__x_n
mov ecx, 0x1c9
jmp 0x18001235a
mov rcx, qword [rsp + 0x78]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x180012434
mov r8d, edi
lea rdx, str.Cannot_put_setting_info:__x_n
mov ecx, 0x1d4
jmp 0x18001235d
mov rcx, qword [rbp + 0x58]
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x18001245d
lea rdx, str.Cannot_get_trigger_collection:__x_n
mov ecx, 0x1e0
jmp 0x18001235a
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x78], r12
lea r8, [rbp - 0x78]
mov rax, qword [rcx]
mov edx, 9
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x18001249a
mov r8d, edi
lea rdx, str.Cannot_create_the_trigger:__x_n
mov ecx, 0x1ec
jmp 0x18001235d
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x80], r12
lea r8, [rbp - 0x80]
mov rax, qword [rcx]
lea rdx, [0x1800387a8]
call qword [rax]
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x1800124d6
mov r8d, edi
lea rdx, str.QueryInterface_call_failed_for_ILogonTrigger:__x_n
mov ecx, 0x1f7
jmp 0x18001235d
mov rcx, qword [rbx + 8]
mov edx, 8
mov r8d, 0x800
mov dword [rbp + 0x50], 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180012286
lea rdx, [rbp + 0x50]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x180012523
mov rcx, qword [rbx + 8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180012286
mov rcx, qword [rbp - 0x80]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xb8]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rcx]
mov esi, eax
call qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jns 0x180012566
mov r8d, esi
lea rdx, str.Cannot_add_user_ID_to_logon_trigger:__x_n
mov ecx, 0x211
jmp 0x18001235d
mov rcx, qword [rbp + 0x58]
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x88]
test eax, eax
jns 0x180012592
lea rdx, str.Cannot_get_Task_collection_pointer:__x_n
mov ecx, 0x21f
jmp 0x18001235a
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x50], r12
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x1800125ce
mov r8d, edi
lea rdx, str.Cannot_create_the_action:__x_n
mov ecx, 0x22b
jmp 0x18001235d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x60], r12
lea r8, [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, str.MbLk
call qword [rax]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x18001260e
mov r8d, edi
lea rdx, str.QueryInterface_call_failed_for_IExecAction:__x_n
mov ecx, 0x237
jmp 0x18001235d
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
mov edi, eax
call qword [rdx + 0x10]
test edi, edi
jns 0x180012642
mov r8d, edi
lea rdx, str.Cannot_set_path_of_executable:__x_n
mov ecx, 0x242
jmp 0x18001235d
lea rcx, [rbp - 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x58]
movups xmm1, xmmword [rbp - 0x20]
movsd xmm0, qword [rbp - 0x10]
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x70], r12
mov rax, qword [rcx]
movsd qword [rbp - 0x30], xmm0
movsd qword [rbp - 0x50], xmm0
movsd qword [rbp + 0x10], xmm0
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp], xmm1
mov qword [rsp + 0x40], rdx
lea rdx, [rbp - 0x40]
mov r9d, 6
mov qword [rsp + 0x38], rdx
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rdx
lea rdx, [rbp]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x20]
call qword [rax + 0x88]
lea rcx, [rbp - 0x20]
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x1800126dc
mov r8d, ebx
lea rdx, str.Error_saving_the_Task_:__x_n
mov ecx, 0x25a
jmp 0x18001235d
lea rdx, str.Success__Task_successfully_registered.__n
mov ecx, 0x260
call fcn.180030818
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, 1
add rsp, 0x120
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret