Function at 0x18066014
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop eax
push eax
xor ebx, ebx
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xa0], ebx
push ebx
push eax
mov dword [ebp - 0xac], ebx
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1806608b
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], ebx
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1806608b
cmp dword [ebp - 0xa8], ebx
jne 0x180660c7
lea ecx, [ebp - 0xac]
call fcn.18019587
test eax, eax
jns 0x180660c7
lea ecx, [ebp - 0x99]
mov byte [ebp - 0x99], bl
call fcn.1800d639
test eax, eax
js 0x180660bf
cmp byte [ebp - 0x99], bl
je 0x180660bf
xor edi, edi
inc edi
jmp 0x180662bd
push 8
pop edi
jmp 0x180662bd
cmp dword [ebp - 0xac], ebx
jne 0x180660da
xor eax, eax
inc eax
mov dword [ebp - 0xa8], eax
jmp 0x18066107
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x180660f2
mov dword [ebp - 0xa8], ebx
jmp 0x18066107
call fcn.18018dce
mov edi, eax
mov dword [ebp - 0xa8], edi
test edi, edi
js 0x180662a8
lea ecx, [ebp - 0xa4]
call fcn.18009d8f
lea edx, [ebp - 0xa4]
mov ecx, 0x401c
call fcn.1800bdad
mov esi, dword [ebp - 0xa4]
test eax, eax
jns 0x18066137
mov dword [ebp - 0xa0], ebx
jmp 0x1806629a
lea ecx, [esi - 0x10]
call fcn.18009f92
add eax, 0x10
push str.MicrosoftEdgeUser_DataFirst_Run
mov dword [ebp - 0xa4], eax
call fcn.18179019
pop ecx
push eax
push str.MicrosoftEdgeUser_DataFirst_Run
lea ecx, [ebp - 0xa4]
call fcn.18009e32
lea ecx, [esi - 0x10]
call fcn.18009f92
add eax, 0x10
mov edi, str.GoogleChromeUser_DataFirst_Run
push edi
mov dword [ebp - 0xa0], eax
call fcn.18179019
pop ecx
push eax
push edi
lea ecx, [ebp - 0xa0]
call fcn.18009e32
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
call ebx
test eax, eax
mov dword [ebp - 0xb0], eax
push 9
pop ecx
setne byte [ebp - 0x99]
lea edi, [ebp - 0x98]
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
xor edi, edi
push eax
push edi
mov edi, dword [ebp - 0xa0]
push edi
call ebx
test eax, eax
setne al
cmp dword [ebp - 0xb0], 0
je 0x180661fb
test al, al
jne 0x180661fb
mov dword [ebp - 0xa0], 4
jmp 0x18066284
cmp byte [ebp - 0x99], 0
jne 0x18066220
test al, al
je 0x18066214
mov dword [ebp - 0xa0], 3
jmp 0x18066284
mov dword [ebp - 0xa0], 2
jmp 0x18066284
mov ecx, dword [ebp - 0x6c]
xor eax, eax
cmp ecx, 0x7fffffff
jbe 0x18066233
mov ebx, eax
mov ecx, eax
jmp 0x18066236
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x90]
cmp edx, 0x7fffffff
jbe 0x18066248
mov edx, eax
jmp 0x1806624e
mov eax, dword [ebp - 0x94]
cmp ecx, edx
jg 0x1806626e
jl 0x18066258
cmp ebx, eax
jae 0x18066264
mov dword [ebp - 0xa0], 6
jmp 0x18066284
cmp ecx, edx
jl 0x1806627a
jg 0x1806626e
cmp ebx, eax
jbe 0x1806627a
mov dword [ebp - 0xa0], 5
jmp 0x18066284
mov dword [ebp - 0xa0], 7
lea ecx, [edi - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
mov edi, dword [ebp - 0xa8]
cmp edi, 0x80004005
je 0x180662b7
push edi
call fcn.18025ae5
pop ecx
mov edi, dword [ebp - 0xa0]
cmp dword [ebp - 0xac], 0
je 0x180662d2
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret