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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x10076610]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x648], ax
push 0x206
push 0
lea ecx, [ebp - 0x646]
push ecx
call fcn.1004e4c0
add esp, 0xc
mov dword [ebp - 0x438], 0x104
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1000e070
jmp 0x1000e310
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.1004e4c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x430], ax
push 0x206
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.1004e4c0
add esp, 0xc
mov dword [ebp - 8], 0x208
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x440], 7
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x648]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1000e101
jmp 0x1000e310
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1000e117
jmp 0x1000e310
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x1000e138
jmp 0x1000e310
mov dword [ebp - 8], 0
push 1
push str.S__lu_
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.100515c0
add esp, 0x10
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x1000e16b
jmp 0x1000e310
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x228]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x650]
add ecx, 2
mov dword [ebp - 0x654], ecx
mov edx, dword [ebp - 0x650]
mov ax, word [edx]
mov word [ebp - 0x656], ax
add dword [ebp - 0x650], 2
cmp word [ebp - 0x656], 0
jne 0x1000e18f
mov ecx, dword [ebp - 0x650]
sub ecx, dword [ebp - 0x654]
sar ecx, 1
mov dword [ebp - 0x65c], ecx
mov edx, dword [ebp - 0x434]
movzx eax, byte [edx + 5]
push eax
push 0x10071f34
mov ecx, 0x104
sub ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x65c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.100515c0
add esp, 0x10
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x1000e206
jmp 0x1000e310
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x228]
mov dword [ebp - 8], edx
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x1000e23d
jmp 0x1000e310
mov ecx, dword [ebp - 0x43c]
movzx edx, byte [ecx]
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 0xf
jbe 0x1000e25a
jmp 0x1000e310
mov dword [ebp - 4], 1
mov dword [ebp - 0x224], 0
jmp 0x1000e27c
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [ebp - 0x21c]
jae 0x1000e308
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x1000e2b6
mov dword [ebp - 4], 0
jmp 0x1000e308
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ecx]
push edx
push str.__lu
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
call fcn.100515c0
add esp, 0x10
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x1000e2f7
mov dword [ebp - 4], 0
jmp 0x1000e308
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x228]
mov dword [ebp - 8], ecx
jmp 0x1000e26d
xor edx, edx
jne 0x1000e02a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1004b0b2
mov esp, ebp
pop ebp
ret