Function at 0x1001ab12
Capabilities:
Get session information
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bee7b
mov eax, dword fs:[0]
push eax
mov eax, 0x22b4
call fcn.1008cee0
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2230], esi
mov eax, dword [0x101135c4]
xor edi, edi
mov dword [ebp - 0x2290], edi
push 7
pop ebx
test al, 1
jne 0x1001ab87
or eax, 1
mov dword [0x101135bc], ebx
mov dword [0x101135c4], eax
xor eax, eax
push 0x100c5fc9
mov dword [0x101135b8], edi
mov word [0x101135a8], ax
call fcn.1008bea4
pop ecx
cmp dword [0x101135b8], edi
jne 0x1001ae1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x222c]
mov dword [ebp - 0x222c], edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1001ae1c
xor eax, eax
mov dword [ebp - 0x2288], edi
mov dword [ebp - 0x226c], ebx
mov dword [ebp - 0x2270], edi
mov word [ebp - 0x2280], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2258], edi
mov word [ebp - 0x2268], ax
lea eax, [ebp - 0x2234]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
push eax
lea eax, [ebp - 0x2288]
push eax
push 5
push dword [ebp - 0x222c]
push edi
call ebx
test eax, eax
je 0x1001adfc
mov edi, dword [ebp - 0x2288]
test edi, edi
je 0x1001adfa
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2280]
call fcn.10001ddf
push dword [ebp - 0x2288]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
and dword [ebp - 0x2288], 0
lea eax, [ebp - 0x2234]
push eax
lea eax, [ebp - 0x2288]
push eax
push 7
push dword [ebp - 0x222c]
push 0
call ebx
test eax, eax
je 0x1001ade7
mov edi, dword [ebp - 0x2288]
test edi, edi
je 0x1001ade7
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2268]
call fcn.10001ddf
push dword [ebp - 0x2288]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor ebx, ebx
mov dword [ebp - 0x223c], 7
xor eax, eax
mov dword [ebp - 0x2240], ebx
mov word [ebp - 0x2250], ax
push ecx
lea edx, [ebp - 0x2268]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c0]
call fcn.10016abb
lea ecx, [ebp - 0x2280]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x22a8]
call fcn.10002c69
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2250]
call fcn.1000284a
xor edi, edi
lea ecx, [ebp - 0x22a8]
push ebx
inc edi
push edi
call fcn.10001f53
push ebx
push edi
lea ecx, [ebp - 0x22c0]
mov byte [ebp - 4], 2
call fcn.10001f53
push 0x2004
lea eax, [ebp - 0x2228]
push ebx
push eax
call fcn.1008f060
push 0x20c
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.1008f060
add esp, 0x18
mov dword [ebp - 0x2230], 0x1000
cmp dword [ebp - 0x223c], 8
lea ecx, [ebp - 0x2284]
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x2238], 0x105
cmovae eax, dword [ebp - 0x2250]
push ecx
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x2230]
push ecx
lea ecx, [ebp - 0x2228]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1001adc9
lea eax, [ebp - 0x228c]
push eax
lea eax, [ebp - 0x2228]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
push dword [ebp - 0x228c]
call fcn.10001a48
pop ecx
push eax
push dword [ebp - 0x228c]
mov ecx, 0x101135a8
call fcn.10001ddf
push dword [ebp - 0x228c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push edi
lea ecx, [ebp - 0x2250]
call fcn.10001f53
push ebx
push edi
lea ecx, [ebp - 0x2268]
call fcn.10001f53
push ebx
push edi
jmp 0x1001ae0d
push 0
push 1
lea ecx, [ebp - 0x2268]
call fcn.10001f53
push 0
jmp 0x1001ae0b
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x2268]
call fcn.10001f53
push edi
push 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2280]
call fcn.10001f53
push 0x101135a8
mov ecx, esi
call fcn.100028f1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret