Function at 0x1007e4a
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.01007821
mov ebx, eax
cmp ebx, esi
jne 0x10080ca
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x1021ad8]
call sub.SAMLIB.dll_SamLookupNamesInDomain
test eax, eax
jl 0x1007ec1
mov eax, dword [ebp - 4]
cmp dword [eax], 4
je 0x1007ffe
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 [0x1021ad4]
call sub.SAMLIB.dll_SamLookupNamesInDomain
test eax, eax
jl 0x1007efa
mov eax, dword [ebp - 4]
cmp dword [eax], 4
je 0x1007ffe
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.01001e19
mov ebx, eax
cmp ebx, esi
jne 0x1008089
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 0x1007f73
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x1007f69
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.0101252a
mov ebx, eax
test ebx, ebx
jne 0x1008086
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push 2
call edi
test eax, eax
jne 0x1007f71
call esi
mov ebx, eax
test ebx, ebx
jne 0x1008086
xor esi, esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.01007821
mov ebx, eax
cmp ebx, esi
jne 0x1008088
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [0x1021ae0]
call sub.ADVAPI32.dll_LsaLookupNames
test eax, eax
jl 0x1008088
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100807f
cmp dword [eax], 3
jne 0x100807f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x1021ae0]
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, esi
jge 0x100801d
cmp eax, 0xc0000073
je 0x100807f
cmp eax, 0xc000018c
je 0x100807f
push eax
call fcn.01014393
mov ebx, eax
jmp 0x1008088
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 0x10080cc
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x100807f
mov eax, dword [ecx]
cmp eax, 3
je 0x100807f
cmp eax, 7
je 0x100807f
cmp eax, 8
je 0x100807f
mov edi, dword [ebp - 0x1c]
cmp edi, esi
je 0x100807f
mov edx, dword [ebp - 0x20]
cmp edx, esi
je 0x100807f
mov ecx, dword [ecx + 8]
cmp ecx, dword [edi]
jae 0x100807f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp eax, dword [edx]
jae 0x100807f
mov edx, dword [edx + 4]
imul eax, eax, 0xc
imul ecx, ecx, 0xc
push dword [eax + edx + 8]
mov eax, dword [edi + 4]
push dword [ecx + eax + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100807f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1008088
mov ebx, 0x560
jmp 0x1008088
xor esi, esi
pop edi
cmp dword [ebp - 0x10], esi
je 0x1008096
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x14], esi
je 0x10080a3
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x1c], esi
je 0x10080b0
push dword [ebp - 0x1c]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x20], esi
je 0x10080bd
push dword [ebp - 0x20]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 8], esi
je 0x10080ca
push dword [ebp - 8]
call fcn.01001e31
mov eax, ebx
pop esi
pop ebx
leave
ret 8