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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [eax], bl
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 8
xor esi, esi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x2c], 0x44
cmp edi, ebx
je 0x108403c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1084009
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x28], ax
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1084022
sub eax, ecx
sar eax, 1
add eax, eax
mov word [ebp - 0x26], ax
mov dword [ebp - 0x24], edi
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x44]
push eax
push esi
call sub.ADVAPI32.dll_LsaOpenPolicy
mov esi, eax
cmp esi, ebx
jge 0x1084099
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108407d
test byte [eax + 0x1c], 1
je 0x108407d
cmp byte [eax + 0x19], 2
jb 0x108407d
push esi
push 0x10080dc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
cmp eax, ebx
jle 0x1084091
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10842c9
lea eax, [ebp - 8]
push eax
push 5
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
mov esi, eax
cmp esi, ebx
jge 0x10840cf
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108407d
test byte [eax + 0x1c], 1
je 0x108407d
cmp byte [eax + 0x19], 2
jb 0x108407d
push esi
push 0x10080dc
push 0x13
jmp 0x1084072
mov eax, dword [ebp - 8]
cmp dword [eax + 8], ebx
je 0x1084298
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1084298
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1084160
call ebx
cmp eax, 0x7a
je 0x1084160
call ebx
test eax, eax
jle 0x1084127
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10842c9
test byte [eax + 0x1c], 1
je 0x10842c9
cmp byte [eax + 0x19], 2
jb 0x10842c9
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10080dc
push 0x15
jmp 0x108420e
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1084191
push dword [ebp - 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, eax
push eax
call edi
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x108419d
mov dword [ebp - 4], 0x8007000e
jmp 0x10842c9
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x108421e
call ebx
test eax, eax
jle 0x10841da
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10842c9
test byte [eax + 0x1c], 1
je 0x10842c9
cmp byte [eax + 0x19], 2
jb 0x10842c9
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10080dc
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10842c9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetWindowsAccountDomainSid]
test eax, eax
jne 0x1084278
call ebx
test eax, eax
jle 0x1084246
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10842c9
test byte [eax + 0x1c], 1
je 0x10842c9
cmp byte [eax + 0x19], 2
jb 0x10842c9
push dword [ebp - 4]
push 0x10080dc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10842c9
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp + 0x10]
neg eax
sbb al, al
inc al
mov byte [ecx], al
jmp 0x10842c9
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10842c2
test byte [eax + 0x1c], 1
je 0x10842c2
cmp byte [eax + 0x19], 2
jb 0x10842c2
push 0x10080dc
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov dword [ebp - 4], 0x8000ffff
cmp dword [ebp - 8], 0
je 0x10842d7
push dword [ebp - 8]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x10], 0
je 0x10842e5
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_LsaClose
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc