Function at 0x10035620
Capabilities:
List user account groups

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], 0
test edi, edi
je 0x1003566c
add esi, 4
jmp 0x10035656
add esi, 0x10
dec edi
je 0x1003566c
mov eax, dword [esi - 4]
test eax, eax
je 0x10035650
push 1
push eax
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x10035650
mov dword [ebp - 0x34], 0
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
call sub.netapi32.dll_NetGroupEnum
test eax, eax
je 0x100356bf
cmp eax, 0xea
jne 0x10035830
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
test edi, edi
je 0x10035816
shl edi, 2
mov dword [ebp - 0x30], eax
jmp 0x100356ec
add esi, 4
add edi, 0xfffffffc
je 0x10035810
mov eax, dword [esi]
test eax, eax
je 0x100356e0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push 3
push eax
push 0
call sub.netapi32.dll_NetGroupGetInfo
test eax, eax
jne 0x100357f0
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
lea eax, [ebp - 0x54]
push eax
call sym.sysinfo::windows::sid::Sid::from_psid::h2de1706ce9504111
add esp, 8
mov eax, dword [ebp - 0x54]
cmp eax, 0x80000000
je 0x100357f0
mov ecx, dword [esi]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
test ecx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], ecx
je 0x1003577e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
call sym.windows_core::strings::pwstr::PWSTR::to_string::h02b7a03b6d9d64fb
add esp, 8
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, 0
cmp ecx, 0x80000000
cmove ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
cmove edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x40]
cmove edx, eax
mov dword [ebp - 0x28], edx
jmp 0x10035793
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebx + 8]
mov ecx, ebx
cmp eax, dword [ecx]
mov ebx, eax
jne 0x100357aa
push ecx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h52b196eafe2b7f22
mov ecx, dword [ebp + 8]
add esp, 4
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
inc ebx
shl eax, 4
mov dword [ecx + eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [ecx + eax + 8], edx
mov dword [ecx + eax + 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 8], ebx
test eax, eax
mov ebx, edx
je 0x100357f0
push 1
push eax
push dword [ebp - 0x24]
call sym.___rust_dealloc
add esp, 0xc
nop dword [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100356e0
push eax
call sub.netapi32.dll_NetApiBufferFree
jmp 0x100356e0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
cmp eax, 0xea
jne 0x10035833
test esi, esi
je 0x10035680
push esi
call sub.netapi32.dll_NetApiBufferFree
jmp 0x10035680
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1003583d
push esi
call sub.netapi32.dll_NetApiBufferFree
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret