Function at 0x18085423
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x9c], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x80], ebx
call fcn.18009d8f
cmp byte [ebp + 0x14], bl
je 0x180855d8
lea ecx, [ebp - 0x6c]
call fcn.18009d8f
cmp byte [ebp + 0x10], bl
jne 0x1808550d
mov eax, dword [ebp - 0x6c]
mov esi, 0x101
xor edx, edx
mov dword [ebp - 0x70], esi
inc edx
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x180854a9
push esi
lea ecx, [ebp - 0x6c]
call fcn.1800706e
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.18009db6
test esi, esi
jne 0x180854d3
call fcn.18018dce
mov ecx, dword [ebp - 0x6c]
mov ebx, eax
jmp 0x1808577d
push str.__UserId__n
lea eax, [ebp - 0x6c]
push eax
push str._____UserId_
lea ecx, [ebp - 0x90]
call fcn.18006e68
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.18023386
pop ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.18009b52
pop ecx
push 0xe
pop ebx
jmp 0x1808551d
push 0x181ca2ec
lea ecx, [ebp - 0x80]
call fcn.18006e68
xor ebx, ebx
inc ebx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18009f92
push str.____LogonTrigger__n
mov edx, str.___LogonTrigger__n_____Enabled_true__Enabled__n
lea ecx, [ebp - 0x84]
lea esi, [eax + 0x10]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
push eax
call fcn.18009af3
pop ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.18009b52
pop ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.18009d41
mov ecx, dword [ebp - 0x74]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0x84]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
test bl, 8
je 0x18085592
mov ecx, dword [ebp - 0x88]
and ebx, 0xfffffff7
lea ecx, [ecx - 0x10]
call fcn.1800694d
test bl, 4
je 0x180855a8
mov ecx, dword [ebp - 0x8c]
and ebx, 0xfffffffb
lea ecx, [ecx - 0x10]
call fcn.1800694d
test bl, 2
je 0x180855bb
mov ecx, dword [ebp - 0x90]
lea ecx, [ecx - 0x10]
call fcn.1800694d
test bl, 1
je 0x180855cb
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
xor ebx, ebx
lea ecx, [ebp - 0x70]
call fcn.18009d8f
cmp byte [ebp + 0x18], 0
je 0x180855fc
mov esi, str._____Repetition__n_______Interval_PT1H__Interval__n_______Duration_P1D__Duration__n______Repetition__n
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.18006f63
lea ecx, [ebp - 0x74]
call fcn.18009d8f
lea ecx, [ebp - 0x6c]
call fcn.18009d8f
cmp byte [ebp + 0x10], 0
je 0x1808566d
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x181f3770
push eax
call fcn.1800749c
add esp, 0x10
lea ecx, [ebp - 0x68]
call fcn.1801524f
mov esi, eax
test esi, esi
jne 0x18085639
mov eax, ebx
jmp 0x18085640
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.18006f63
lea ecx, [ebp - 0x68]
call fcn.1800756d
mov esi, str._RunLevel_HighestAvailable__RunLevel__n
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.18006f63
jmp 0x18085709
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xb0], 0x181f49cc
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call fcn.1800a40c
push ebx
push 0x20008
lea ecx, [ebp - 0xb0]
call fcn.1800ae6a
push ecx
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1800ed69
lea ecx, [ebp - 0x68]
call fcn.1801524f
mov esi, eax
test esi, esi
jne 0x180856c5
mov eax, ebx
jmp 0x180856cc
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.18006f63
mov esi, str._LogonType_InteractiveToken__LogonType__n
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.18006f63
lea ecx, [ebp - 0x68]
call fcn.1800756d
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x181f49cc
call fcn.1800aea7
lea ecx, [ebp - 0x78]
call fcn.18009d8f
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x6c]
push dword [eax]
mov eax, dword [ebp - 0x98]
push dword [edi]
mov edi, dword [ebp - 0x74]
push esi
push edi
push dword [ebp - 0x70]
push dword [eax]
mov eax, dword [ebp - 0x9c]
push dword [ebp - 0x7c]
push dword [eax]
lea eax, [ebp - 0x78]
push dword [0x18233fec]
push str.__xml_version_1.0__encoding_UTF_16____n_Task_version_1.2__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_n_____CalendarTrigger__n_______StartBoundary__s__StartBoundary__n_______s_n_______ScheduleByDay__n_________DaysInterval_1__DaysInterval__n________ScheduleByDay__n______CalendarTrigger__n____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____Settings__n___Actions__n_____Exec__n_______Command__s__Command__n_______Arguments__s__Arguments__n______Exec__n____Actions__n__Task__n
push eax
call fcn.1801487e
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x78]
add esp, 0x2c
push eax
call fcn.18009d41
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
lea ecx, [edi - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret