Function at 0x180aa867
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xb4], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x9c], ebx
mov edi, ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x20], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x20]
call fcn.1800774f
cmp byte [ebp + 0x14], bl
je 0x180aaa4c
mov dword [ebp - 0xc], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
cmp byte [ebp + 0x10], bl
jne 0x180aa96f
mov eax, dword [ebp - 0xc]
mov esi, 0x101
xor edx, edx
mov dword [ebp - 0x98], esi
inc edx
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x180aa908
push esi
lea ecx, [ebp - 0xc]
lfence
call fcn.180077dc
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.18009f73
test esi, esi
jne 0x180aa935
call fcn.1801ba7c
mov ecx, dword [ebp - 0xc]
mov ebx, eax
jmp 0x180aac85
push str.__UserId__n
lea eax, [ebp - 0xc]
push eax
push str._______UserId_
lea ecx, [ebp - 0xa8]
call fcn.1800759a
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.18029933
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.18009d3c
pop ecx
push 0xe
pop ecx
jmp 0x180aa982
push 0x1816db7c
lea ecx, [ebp - 0x9c]
call fcn.1800759a
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1800a175
push str.______LogonTrigger__n
mov edx, str._____LogonTrigger__n_______Enabled_true__Enabled__n
lea ecx, [ebp - 0x14]
lea esi, [eax + 0x10]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], esi
push eax
call fcn.18009ced
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.18009d3c
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.18009f25
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea ecx, [esi - 0x10]
call fcn.18007012
mov eax, dword [ebp - 0x10]
test al, 8
je 0x180aaa02
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffff7
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, dword [ebp - 0x10]
test al, 4
je 0x180aaa1a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, dword [ebp - 0x10]
test al, 2
je 0x180aaa2f
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, dword [ebp - 0x10]
test al, 1
je 0x180aaa41
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov dword [ebp - 0x14], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x14]
call fcn.1800774f
cmp byte [ebp + 0x18], bl
je 0x180aaa78
mov esi, str._____Repetition__n_______Interval_PT1H__Interval__n_______Duration_P1D__Duration__n______Repetition__n
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.1800768d
mov dword [ebp - 0xc], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
mov dword [ebp - 0x10], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x10]
call fcn.1800774f
lea eax, [ebp - 0x94]
cmp byte [ebp + 0x10], bl
je 0x180aab03
push 0x12
push 1
push 0x18196d04
push eax
call fcn.1800a5c2
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.18017791
mov esi, eax
test esi, esi
jne 0x180aaacc
mov eax, ebx
jmp 0x180aaad3
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.1800768d
lea ecx, [ebp - 0x94]
call fcn.1800a6ab
mov esi, str._RunLevel_HighestAvailable__RunLevel__n
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1800768d
jmp 0x180aab9f
push 0x60
push ebx
push eax
mov dword [ebp - 0x30], 0x18196d68
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.1812da70
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.1800a54f
push ebx
push 0x20008
lea ecx, [ebp - 0x30]
call fcn.1800bb68
push ecx
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.180102ec
lea ecx, [ebp - 0x94]
call fcn.18017791
mov esi, eax
test esi, esi
jne 0x180aab5e
mov eax, ebx
jmp 0x180aab65
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.1800768d
mov esi, str._LogonType_InteractiveToken__LogonType__n
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1800768d
lea ecx, [ebp - 0x94]
call fcn.1800a6ab
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x18196d68
call fcn.1800bc30
mov dword [ebp - 0x18], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x18]
call fcn.1800774f
cmp byte [ebp + 0x1c], bl
je 0x180aabd2
mov esi, str._____WnfStateChangeTrigger__n_______StateName_7510bca323028b41__StateName__n_______Data_01__Data__n_______DataOffset_0__DataOffset__n______WnfStateChangeTrigger__n
push esi
call fcn.18131ac0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.1800768d
mov eax, 0x181b4138
jmp 0x180aabd7
mov eax, 0x181b3758
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
call fcn.1800759a
mov dword [ebp - 0x1c], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x1c]
call fcn.1800774f
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0x98]
push dword [eax]
mov eax, dword [ebp - 0xb0]
push dword [edi]
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp - 0xb4]
push dword [ebp - 0x20]
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [0x181cf100]
push esi
push str.__xml_version_1.0__encoding_UTF_16____n_Task_version__s__n__xmlns_http:__schemas.microsoft.com_windows_2004_02_mit_task___n___RegistrationInfo__n_____Version__s__Version__n_____Description__s__Description__n____RegistrationInfo__n___Triggers__n_s_____CalendarTrigger__n_______StartBoundary__s__StartBoundary__n_s_______ScheduleByDay__n_________DaysInterval_1__DaysInterval__n________ScheduleByDay__n______CalendarTrigger__n_s____Triggers__n___Principals__n_____Principal__n_______UserId__s__UserId__n_______s_n______Principal__n____Principals__n___Settings__n_____MultipleInstancesPolicy_IgnoreNew__MultipleInstancesPolicy__n_____DisallowStartIfOnBatteries_false__DisallowStartIfOnBatteries__n_____StartWhenAvailable_true__StartWhenAvailable__n_____RunOnlyIfNetworkAvailable_false__RunOnlyIfNetworkAvailable__n_____Enabled_true__Enabled__n_____RunOnlyIfIdle_false__RunOnlyIfIdle__n_____WakeToRun_false__WakeToRun__n_____ExecutionTimeLimit_PT72H__ExecutionTimeLimit__n_____Priority_4__Priority__n____Settings__n___Actions__n_____Exec__n_______Command__s__Command__n_______Arguments__s__Arguments__n______Exec__n____Actions__n__Task__n
push eax
call fcn.18016b7d
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x1c]
add esp, 0x34
push eax
call fcn.18009f25
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea ecx, [esi - 0x10]
call fcn.18007012
lea ecx, [edi - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret