Function at 0x180aa977
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x181d400c]
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.18006f7b
push eax
lea ecx, [ebp - 0x20]
call fcn.1800768f
cmp byte [ebp + 0x14], bl
je 0x180aab5c
mov dword [ebp - 0xc], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
cmp byte [ebp + 0x10], bl
jne 0x180aaa7f
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 0x180aaa18
push esi
lea ecx, [ebp - 0xc]
lfence
call fcn.1800771c
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.18009eb8
test esi, esi
jne 0x180aaa45
call fcn.1801baa5
mov ecx, dword [ebp - 0xc]
mov ebx, eax
jmp 0x180aad95
push str.__UserId__n
lea eax, [ebp - 0xc]
push eax
push str._______UserId_
lea ecx, [ebp - 0xa8]
call fcn.180074da
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.18029c13
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.18009c81
pop ecx
push 0xe
pop ecx
jmp 0x180aaa92
push 0x18172bbc
lea ecx, [ebp - 0x9c]
call fcn.180074da
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1800a0ba
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.18009c32
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.18009c81
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.18009e6a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [esi - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x10]
test al, 8
je 0x180aab12
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffff7
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x10]
test al, 4
je 0x180aab2a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x10]
test al, 2
je 0x180aab3f
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x10]
test al, 1
je 0x180aab51
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov dword [ebp - 0x14], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x14]
call fcn.1800768f
cmp byte [ebp + 0x18], bl
je 0x180aab88
mov esi, str._____Repetition__n_______Interval_PT1H__Interval__n_______Duration_P1D__Duration__n______Repetition__n
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.180075cd
mov dword [ebp - 0xc], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
mov dword [ebp - 0x10], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x10]
call fcn.1800768f
lea eax, [ebp - 0x94]
cmp byte [ebp + 0x10], bl
je 0x180aac13
push 0x12
push 1
push 0x181a0d04
push eax
call fcn.1800a512
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.1801772f
mov esi, eax
test esi, esi
jne 0x180aabdc
mov eax, ebx
jmp 0x180aabe3
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075cd
lea ecx, [ebp - 0x94]
call fcn.1800a5fb
mov esi, str._RunLevel_HighestAvailable__RunLevel__n
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.180075cd
jmp 0x180aacaf
push 0x60
push ebx
push eax
mov dword [ebp - 0x30], 0x181a0d68
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.18132ed0
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.1800a494
push ebx
push 0x20008
lea ecx, [ebp - 0x30]
call fcn.1800bab8
push ecx
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.1801022e
lea ecx, [ebp - 0x94]
call fcn.1801772f
mov esi, eax
test esi, esi
jne 0x180aac6e
mov eax, ebx
jmp 0x180aac75
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075cd
mov esi, str._LogonType_InteractiveToken__LogonType__n
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.180075cd
lea ecx, [ebp - 0x94]
call fcn.1800a5fb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x181a0d68
call fcn.1800bb80
mov dword [ebp - 0x18], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x18]
call fcn.1800768f
cmp byte [ebp + 0x1c], bl
je 0x180aace2
mov esi, str._____WnfStateChangeTrigger__n_______StateName_7510bca323028b41__StateName__n_______Data_01__Data__n_______DataOffset_0__DataOffset__n______WnfStateChangeTrigger__n
push esi
call fcn.18136f20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.180075cd
mov eax, 0x181be1e4
jmp 0x180aace7
mov eax, 0x181be1ec
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
call fcn.180074da
mov dword [ebp - 0x1c], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x1c]
call fcn.1800768f
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 [0x181da054]
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.18016b1d
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x1c]
add esp, 0x34
push eax
call fcn.18009e6a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [esi - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret