Function at 0x7cdc05c6
Capabilities:
Compare security identifiers
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x50
pop eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.7cdbf4ea
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 8
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7cdc07be
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push 0x34
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x7cdc07a5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x1c], eax
add eax, eax
push eax
push ebx
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [esi], edi
add eax, 3
and al, 0xfc
call fcn.7ce2956c
cmp edi, ebx
mov dword [ebp - 8], esp
je 0x7cdc082b
cmp esp, ebx
je 0x7cdc082b
cmp word [ebp + 8], 0xa
je 0x7cdc0719
push dword [ebp - 0x70]
push 0x7cd73448
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x7cdc0719
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x7cdc07a5
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x3c], 0x18
push eax
push 1
pop edi
lea eax, [ebp - 0x3c]
push edi
push eax
push ebx
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x7cdc0705
lea eax, [ebp + 8]
push eax
push 3
push dword [ebp + 0xc]
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x7cdc06fd
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp + 0xc]
call sub.ADVAPI32.dll_LsaClose
cmp dword [ebp - 4], ebx
je 0x7cdc07b3
or word [ebp - 2], 0x8007
jmp 0x7cdc07b3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp eax, ebx
jne 0x7cdc07b3
push dword [esi]
push ebx
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
push ebx
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [esi], edi
add eax, 3
and al, 0xfc
call fcn.7ce2956c
cmp edi, ebx
mov dword [ebp - 8], esp
je 0x7cdc082b
cmp esp, ebx
je 0x7cdc082b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x7cdc07b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7cdc07cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x7cdc07e2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x7cdc07fa
push dword [esi]
push ebx
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
mov dword [esi], ebx
jmp 0x7cdc081e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x7cd73704
push dword [esi]
call edi
push dword [ebp - 8]
push dword [esi]
call edi
cmp dword [ebp - 0x18], ebx
je 0x7cdc081e
push 0x7cd73700
push dword [esi]
call edi
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x7c]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp - 4], 0x8007000e
jmp 0x7cdc07b3