Function at 0x1083fce
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 0x1084079
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1084046
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 0x108405f
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 0x10840d6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10840ba
test byte [eax + 0x1c], 1
je 0x10840ba
cmp byte [eax + 0x19], 2
jb 0x10840ba
push esi
push 0x10080cc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
cmp eax, ebx
jle 0x10840ce
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1084306
lea eax, [ebp - 8]
push eax
push 5
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
mov esi, eax
cmp esi, ebx
jge 0x108410c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10840ba
test byte [eax + 0x1c], 1
je 0x10840ba
cmp byte [eax + 0x19], 2
jb 0x10840ba
push esi
push 0x10080cc
push 0x13
jmp 0x10840af
mov eax, dword [ebp - 8]
cmp dword [eax + 8], ebx
je 0x10842d5
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10842d5
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 0x108419d
call ebx
cmp eax, 0x7a
je 0x108419d
call ebx
test eax, eax
jle 0x1084164
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084306
test byte [eax + 0x1c], 1
je 0x1084306
cmp byte [eax + 0x19], 2
jb 0x1084306
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10080cc
push 0x15
jmp 0x108424b
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10841ce
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 0x10841da
mov dword [ebp - 4], 0x8007000e
jmp 0x1084306
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 0x108425b
call ebx
test eax, eax
jle 0x1084217
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084306
test byte [eax + 0x1c], 1
je 0x1084306
cmp byte [eax + 0x19], 2
jb 0x1084306
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10080cc
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1084306
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 0x10842b5
call ebx
test eax, eax
jle 0x1084283
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084306
test byte [eax + 0x1c], 1
je 0x1084306
cmp byte [eax + 0x19], 2
jb 0x1084306
push dword [ebp - 4]
push 0x10080cc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1084306
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 0x1084306
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10842ff
test byte [eax + 0x1c], 1
je 0x10842ff
cmp byte [eax + 0x19], 2
jb 0x10842ff
push 0x10080cc
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov dword [ebp - 4], 0x8000ffff
cmp dword [ebp - 8], 0
je 0x1084314
push dword [ebp - 8]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x10], 0
je 0x1084322
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