Function at 0x100ee3b
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x1011202
call fcn.0100c948
sub esp, 0x348
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x101d83c]
mov dword [ebp - 0x33c], ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x34c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x328], ecx
xor ecx, ecx
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x344], edi
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x340], ecx
push eax
mov dword [ebp - 4], ecx
call fcn.01003bdb
lea eax, [eax + eax + 2]
push eax
call fcn.0100ce09
push dword [ebp - 0x334]
mov esi, eax
push esi
mov dword [ebp - 0x340], esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push esi
call fcn.01003bdb
mov ecx, esi
lea eax, [ecx + eax*2]
mov dword [ebp - 0x348], eax
xor eax, eax
mov ax, word [ecx]
jmp 0x100eedd
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x100eed6
mov ax, word [esi]
mov word [ebp - 0x32c], ax
add esi, 4
jmp 0x100eefa
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x100eef8
mov ax, word [esi]
cmp ax, 0x22
jne 0x100ef18
push 0x22
jmp 0x100ef20
cmp ax, 0x27
jne 0x100ef2b
push 0x27
inc esi
inc esi
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
jmp 0x100ef3a
push 0x1002bd0
push esi
call dword [sym.imp.msvcrt.dll_wcscspn]
lea eax, [esi + eax*2]
and word [eax], 0
cmp word [esi], 0
pop ecx
pop ecx
mov dword [ebp - 0x324], eax
je 0x100f09d
push 0x1002378
push esi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100f09d
push 0x1002bcc
push esi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100f00e
and dword [ebp - 0x314], eax
mov byte [ebp - 0x31a], al
mov byte [ebp - 0x319], al
mov byte [ebp - 0x318], al
mov byte [ebp - 0x317], al
mov byte [ebp - 0x316], al
lea eax, [ebp - 0x31c]
push eax
mov byte [ebp - 0x31c], 1
mov byte [ebp - 0x31b], 1
mov byte [ebp - 0x315], 1
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x100f090
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, dword [ebp - 0x328]
cmp eax, dword [esi]
mov dword [ebp - 0x320], eax
jbe 0x100f003
push dword [edi]
call fcn.0100ce44
push dword [ebp - 0x320]
call fcn.0100ce09
mov dword [edi], eax
mov eax, dword [ebp - 0x320]
mov dword [esi], eax
lea esi, [ebp - 0x31c]
jmp 0x100f139
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x350], 0x100
jmp 0x100f04d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100f096
push dword [edi]
call fcn.0100ce44
push dword [ebp - 0x320]
call fcn.0100ce09
mov ecx, dword [ebp - 0x320]
mov dword [edi], eax
mov eax, dword [ebp - 0x328]
mov dword [eax], ecx
mov eax, dword [eax]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x320]
push eax
push dword [edi]
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100f020
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x100f14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100f3c0
lea eax, [ebp - 0x334]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100f090
lea eax, [ebp - 0x320]
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push 1
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100f090
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x100f090
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, dword [ebp - 0x328]
cmp eax, dword [esi]
mov dword [ebp - 0x320], eax
jbe 0x100f133
push dword [edi]
call fcn.0100ce44
push dword [ebp - 0x320]
call fcn.0100ce09
mov dword [edi], eax
mov eax, dword [ebp - 0x320]
mov dword [esi], eax
mov esi, dword [ebp - 0x110]
mov edi, dword [edi]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x344]
mov esi, dword [ebp - 0x324]
cmp esi, dword [ebp - 0x348]
jae 0x100f160
add esi, 2
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x100f217
jmp 0x100f177
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x100f170
cmp word [esi], ax
mov dword [ebp - 0x324], eax
je 0x100f206
jmp 0x100f196
mov eax, dword [ebp - 0x324]
cmp eax, dword [0x101d8e0]
jge 0x100f206
shl eax, 3
mov dword [ebp - 0x328], eax
mov eax, dword [eax + 0x101d878]
push eax
mov dword [ebp - 0x348], eax
call fcn.01003bdb
push eax
push dword [ebp - 0x348]
mov dword [ebp - 0x330], eax
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100f1f6
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 0x101d87c]
or dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x330]
and dword [ebp - 0x324], 0
lea esi, [esi + eax*2]
inc dword [ebp - 0x324]
cmp word [esi], 0
jne 0x100f190
jmp 0x100f206
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x100f204
push dword [ebp - 0x32c]
call dword [sym.imp.msvcrt.dll_towupper]
movzx eax, ax
sub eax, 0x2b
pop ecx
je 0x100f328
dec eax
dec eax
je 0x100f29e
sub eax, 0x1a
je 0x100f270
sub eax, 8
jne 0x100f3be
push 0
push dword [edi]
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x100f090
mov eax, dword [ebp - 0x33c]
test eax, eax
je 0x100f3be
or dword [eax], 1
jmp 0x100f3be
push 0
push dword [edi]
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x100f090
mov eax, dword [ebp - 0x33c]
test eax, eax
je 0x100f3be
or dword [eax], 2
jmp 0x100f3be
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x100f090
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebx]
add eax, 0xc
mov dword [ebp - 0x320], eax
movzx ecx, word [ecx + 2]
lea eax, [ecx + eax - 4]
push eax
mov dword [ebp - 0x330], eax
call fcn.0100ce09
mov esi, dword [ebx]
movzx ecx, word [esi + 2]
mov edi, eax
mov eax, ecx
shr ecx, 2
mov dword [ebp - 0x32c], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx]
call fcn.0100ce44
mov eax, dword [ebp - 0x32c]
mov cx, word [ebp - 0x330]
mov dword [ebx], eax
mov word [eax + 2], cx
mov eax, dword [ebp - 0x344]
push dword [eax]
push dword [ebp - 0x338]
push 2
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_AddAccessDeniedAce]
jmp 0x100f3ad
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x100f090
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebx]
add eax, 0xc
mov dword [ebp - 0x320], eax
movzx ecx, word [ecx + 2]
lea eax, [ecx + eax - 4]
push eax
mov dword [ebp - 0x330], eax
call fcn.0100ce09
mov esi, dword [ebx]
movzx ecx, word [esi + 2]
mov edi, eax
mov eax, ecx
shr ecx, 2
mov dword [ebp - 0x32c], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx]
call fcn.0100ce44
mov eax, dword [ebp - 0x32c]
mov cx, word [ebp - 0x330]
mov dword [ebx], eax
mov word [eax + 2], cx
mov eax, dword [ebp - 0x344]
push dword [eax]
push dword [ebp - 0x338]
push 2
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x100f3be
mov eax, dword [ebp - 0x33c]
test eax, eax
je 0x100f3be
or dword [eax], 4
xor esi, esi
push dword [ebp - 0x340]
call fcn.0100ce44
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0100c694
leave
ret 0x18