Function at 0x180af3a7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x181d600c]
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.18006f9c
push eax
lea ecx, [ebp - 0x20]
call fcn.180076af
cmp byte [ebp + 0x14], bl
je 0x180af58c
mov dword [ebp - 0xc], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
cmp byte [ebp + 0x10], bl
jne 0x180af4af
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 0x180af448
push esi
lea ecx, [ebp - 0xc]
lfence
call fcn.1800773c
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.18009ed8
test esi, esi
jne 0x180af475
call fcn.1801bab5
mov ecx, dword [ebp - 0xc]
mov ebx, eax
jmp 0x180af7c5
push str.__UserId__n
lea eax, [ebp - 0xc]
push eax
push str._______UserId_
lea ecx, [ebp - 0xa8]
call fcn.180074fa
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.1802acea
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.18009ca1
pop ecx
push 0xe
pop ecx
jmp 0x180af4c2
push 0x18176bdc
lea ecx, [ebp - 0x9c]
call fcn.180074fa
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1800a0da
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.18009c52
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.18009ca1
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.18009e8a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [esi - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0x10]
test al, 8
je 0x180af542
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffff7
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0x10]
test al, 4
je 0x180af55a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0x10]
test al, 2
je 0x180af56f
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0x10]
test al, 1
je 0x180af581
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov dword [ebp - 0x14], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0x14]
call fcn.180076af
cmp byte [ebp + 0x18], bl
je 0x180af5b8
mov esi, str._____Repetition__n_______Interval_PT1H__Interval__n_______Duration_P1D__Duration__n______Repetition__n
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.180075ed
mov dword [ebp - 0xc], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
mov dword [ebp - 0x10], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0x10]
call fcn.180076af
lea eax, [ebp - 0x94]
cmp byte [ebp + 0x10], bl
je 0x180af643
push 0x12
push 1
push 0x181a18c4
push eax
call fcn.1800a532
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.1801773f
mov esi, eax
test esi, esi
jne 0x180af60c
mov eax, ebx
jmp 0x180af613
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075ed
lea ecx, [ebp - 0x94]
call fcn.1800a61b
mov esi, str._RunLevel_HighestAvailable__RunLevel__n
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.180075ed
jmp 0x180af6df
push 0x60
push ebx
push eax
mov dword [ebp - 0x30], 0x181a1928
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.181370e0
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.1800a4b4
push ebx
push 0x20008
lea ecx, [ebp - 0x30]
call fcn.1800bad8
push ecx
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.1801024b
lea ecx, [ebp - 0x94]
call fcn.1801773f
mov esi, eax
test esi, esi
jne 0x180af69e
mov eax, ebx
jmp 0x180af6a5
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075ed
mov esi, str._LogonType_InteractiveToken__LogonType__n
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.180075ed
lea ecx, [ebp - 0x94]
call fcn.1800a61b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x181a1928
call fcn.1800bba0
mov dword [ebp - 0x18], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0x18]
call fcn.180076af
cmp byte [ebp + 0x1c], bl
je 0x180af712
mov esi, str._____WnfStateChangeTrigger__n_______StateName_7510bca323028b41__StateName__n_______Data_01__Data__n_______DataOffset_0__DataOffset__n______WnfStateChangeTrigger__n
push esi
call fcn.1813b130
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.180075ed
mov eax, 0x181c13bc
jmp 0x180af717
mov eax, 0x181c13c4
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
call fcn.180074fa
mov dword [ebp - 0x1c], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 0x1c]
call fcn.180076af
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 [0x181dc054]
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.18016b2d
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x1c]
add esp, 0x34
push eax
call fcn.18009e8a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [esi - 0x10]
call fcn.18006f72
lea ecx, [edi - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122438
leave
ret