Function at 0x102333e
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x23c], eax
xor esi, esi
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x220], esi
call fcn.01022e27
mov ebx, eax
cmp ebx, esi
jne 0x1023667
push dword [ebp - 0x228]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x22c]
push 0x100245c
push 0x208
push eax
call fcn.0101d67b
add esp, 0x14
cmp eax, esi
jge 0x10233de
mov ebx, eax
jmp 0x1023667
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x238]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
call edi
mov ebx, eax
cmp dword [ebp - 0x21c], esi
jne 0x102365e
cmp ebx, 0x7a
jne 0x102365e
push dword [ebp - 0x238]
lea eax, [ebp - 0x210]
push eax
call fcn.0101cfa6
mov ebx, eax
cmp ebx, esi
jne 0x1023667
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + ecx]
cmp eax, ecx
ja 0x1023467
mov ebx, 0x216
jmp 0x1023667
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0101cfa6
mov ebx, eax
cmp ebx, esi
jne 0x1023667
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10234c5
call edi
cmp eax, esi
jne 0x10233d7
mov eax, 0x54f
jmp 0x10233d7
lea eax, [ebp - 0x218]
push eax
push esi
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1023518
call edi
cmp eax, esi
jne 0x10234ee
mov eax, 0x54f
mov ebx, eax
cmp eax, 0x3f0
jne 0x1023667
lea eax, [ebp - 0x218]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10234b1
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x21c], eax
call edi
mov ebx, eax
cmp dword [ebp - 0x21c], esi
jne 0x102365e
cmp ebx, 0x7a
jne 0x102365e
mov eax, dword [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
push eax
call fcn.0101cfa6
mov ebx, eax
cmp ebx, esi
jne 0x1023667
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push ebx
push 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10234b1
push dword [ebx]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10235b4
xor ebx, ebx
jmp 0x1023667
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push 4
push 1
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov ebx, eax
cmp ebx, esi
jne 0x1023667
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x240]
lea eax, [ebp - 0x264]
xor edi, edi
inc edi
push eax
push edi
mov dword [ebp - 0x264], 0x1f01ff
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, eax
cmp ebx, esi
jne 0x1023667
push esi
push dword [ebp - 0x220]
push esi
push esi
push 0x30000004
push edi
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ebx, eax
cmp ebx, esi
jne 0x1023667
jmp 0x10235ad
cmp ebx, esi
jne 0x1023667
mov ebx, 0x54f
cmp dword [ebp - 0x218], esi
je 0x102367b
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x224], esi
je 0x1023699
push dword [ebp - 0x224]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
cmp dword [ebp - 0x228], esi
je 0x10236ac
push dword [ebp - 0x228]
call sub.WTSAPI32.dll_WTSFreeMemory
cmp dword [ebp - 0x22c], esi
je 0x10236bf
push dword [ebp - 0x22c]
call sub.WTSAPI32.dll_WTSFreeMemory
cmp dword [ebp - 0x210], esi
je 0x10236d7
push dword [ebp - 0x210]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
cmp dword [ebp - 0x230], esi
je 0x10236ef
push dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x234], esi
je 0x1023705
push dword [ebp - 0x234]
call edi
cmp dword [ebp - 0x220], esi
je 0x1023715
push dword [ebp - 0x220]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 4