Function at 0x1007fc3
Capabilities:
Compare security identifiers
Get hostname
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call fcn.010079c3
mov ebx, eax
cmp ebx, esi
jne 0x10081f2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x10209f8]
call sub.SAMLIB.dll_SamLookupNamesInDomain
test eax, eax
jl 0x100803a
mov eax, dword [ebp - 4]
cmp dword [eax], 4
je 0x1008167
push dword [ebp - 0xc]
call sub.SAMLIB.dll_SamFreeMemory
push dword [ebp - 4]
call sub.SAMLIB.dll_SamFreeMemory
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x10209f4]
call sub.SAMLIB.dll_SamLookupNamesInDomain
test eax, eax
jl 0x1008073
mov eax, dword [ebp - 4]
cmp dword [eax], 4
je 0x1008167
push dword [ebp - 0xc]
call sub.SAMLIB.dll_SamFreeMemory
push dword [ebp - 4]
call sub.SAMLIB.dll_SamFreeMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax + 2]
push eax
call fcn.01012976
mov ebx, eax
cmp ebx, esi
jne 0x10081f2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push 2
call edi
test eax, eax
jne 0x10080ec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x10080e2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.01012986
mov ebx, eax
test ebx, ebx
jne 0x10081ef
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push 2
call edi
test eax, eax
jne 0x10080ea
call esi
mov ebx, eax
test ebx, ebx
jne 0x10081ef
xor esi, esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.010079c3
mov ebx, eax
cmp ebx, esi
jne 0x10081f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [0x1020a00]
call sub.ADVAPI32.dll_LsaLookupNames
test eax, eax
jl 0x10081f1
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1008186
cmp dword [eax], 3
jne 0x1008186
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x1020a00]
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, esi
jge 0x100818d
cmp eax, 0xc0000073
je 0x1008186
cmp eax, 0xc000018c
je 0x1008186
push eax
call fcn.01014d75
mov ebx, eax
jmp 0x10081f1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
push eax
mov dword [edx], ecx
call sub.SAMLIB.dll_SamFreeMemory
push dword [ebp - 4]
call sub.SAMLIB.dll_SamFreeMemory
xor eax, eax
jmp 0x1008235
mov ebx, 0x560
jmp 0x10081f1
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x1008186
mov eax, dword [ecx]
cmp eax, 3
je 0x1008186
cmp eax, 7
je 0x1008186
cmp eax, 8
je 0x1008186
mov edi, dword [ebp - 0x1c]
cmp edi, esi
je 0x1008186
mov edx, dword [ebp - 0x20]
cmp edx, esi
je 0x1008186
mov ecx, dword [ecx + 8]
cmp ecx, dword [edi]
jae 0x1008186
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp eax, dword [edx]
jae 0x1008186
mov edx, dword [edx + 4]
lea eax, [eax + eax*2]
push dword [edx + eax*4 + 8]
lea eax, [ecx + ecx*2]
mov ecx, dword [edi + 4]
push dword [ecx + eax*4 + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1008186
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10081f1
xor esi, esi
pop edi
cmp dword [ebp - 0x10], esi
je 0x10081ff
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x14], esi
je 0x100820c
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x1c], esi
je 0x1008219
push dword [ebp - 0x1c]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x20], esi
je 0x1008226
push dword [ebp - 0x20]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 8], esi
je 0x1008233
push dword [ebp - 8]
call fcn.010129a2
mov eax, ebx
pop esi
pop ebx
leave
ret 8