Function at 0x10009d23
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push 0x248
mov eax, 0x100c202f
call fcn.1008268f
mov dword [ebp - 0x224], ecx
mov edi, dword [ebp + 8]
mov esi, 0x1000
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x220], esi
call fcn.100055e8
push eax
lea ecx, [ebp - 0x21c]
call fcn.100040ca
and dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x24c], VariantClear
mov dword [ebp - 0x248], reloc.OLEAUT32.dll_SysReAllocString
and dword [ebp - 0x234], 0
and dword [ebp - 0x230], 0
and dword [ebp - 0x22c], 0
push 0x20119
push dword [ebp - 0x240]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
push dword [ebp + ebx*4 - 0x24c]
call fcn.1000a410
test eax, eax
jne 0x10009e0c
push esi
lea ecx, [ebp - 0x21c]
call fcn.100064dd
lea ecx, [ebp - 0x220]
push ecx
push eax
push str.UserSID
lea ecx, [ebp - 0x234]
call fcn.1000a4cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.1000a5f8
test esi, esi
jne 0x10009e06
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], esi
jne 0x10009fb0
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
call fcn.10005422
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.1000982c
inc ebx
cmp ebx, 2
jne 0x10009d86
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x23c]
push str.explorer.exe
xor ebx, ebx
push eax
mov dword [ebp - 0x23c], ebx
call fcn.10009b83
test eax, eax
je 0x10009f97
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x10009f97
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10009f97
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x10009f97
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x238], ebx
call fcn.100055e8
push eax
lea ecx, [ebp - 0x228]
call fcn.100040ca
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
lea eax, [ebp - 0x224]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call esi
push dword [ebp - 0x224]
call fcn.1009a58e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10009f84
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x228]
add eax, eax
push eax
call fcn.100064dd
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push 0
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
mov esi, eax
call fcn.1000a5f8
test esi, esi
je 0x10009f7d
lea eax, [ebp - 0x220]
push eax
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x220]
call fcn.1000482d
pop ecx
push eax
push dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
call fcn.10006d7f
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.100982f3
pop ecx
mov ecx, dword [ebp - 0x228]
xor ebx, ebx
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.10006ad0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], ebx
jne 0x10009fcf
add esi, 0xfffffff0
push esi
call fcn.100097d1
jmp 0x1000a05a
lea esi, [eax - 0x10]
push esi
call fcn.100097d1
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x234]
mov dword [edi], eax
call fcn.1000982c
jmp 0x1000a060
mov edi, dword [ebp - 0x240]
push 0xf013f
xor eax, eax
lea ecx, [ebp - 0x234]
push edi
push dword [ebp + ebx*4 - 0x24c]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
call fcn.1000a410
test eax, eax
je 0x1000a027
xor eax, eax
lea ecx, [ebp - 0x234]
push eax
push eax
push 0xf013f
push eax
push eax
push edi
push dword [ebp + ebx*4 - 0x24c]
call fcn.1000988d
test eax, eax
jne 0x1000a03a
push 1
push esi
push str.UserSID
lea ecx, [ebp - 0x234]
call fcn.1000a67c
lea ecx, [ebp - 0x234]
call fcn.1000982c
inc ebx
cmp ebx, 2
jne 0x10009fd5
add esi, 0xfffffff0
push esi
call fcn.100097d1
mov edi, dword [ebp - 0x254]
add eax, 0x10
mov dword [edi], eax
pop ecx
mov ecx, esi
call fcn.10006ad0
mov eax, edi
call fcn.10082639
ret 8