Function at 0x100566a0
Capabilities:
Get session user name
List groups for user account

Disassembly:
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x208
push 0xffffffffffffffff
push 0x100a166d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0x204], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x18], esi
call fcn.1003aaa0
test eax, eax
je 0x10056b19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov ecx, esi
push str.WSS_ADMIN_WPG
call fcn.1003f670
test al, al
jne 0x1005673f
push 0xd
push str.WSS_ADMIN_WPG
mov ecx, esi
call fcn.1003f950
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
mov ecx, edi
call fcn.100564d0
mov esi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
mov dword [ebp - 0x24], 0
push eax
push 2
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push 2
call esi
call fcn.1003aaa0
test eax, eax
je 0x10056b19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f670
test al, al
jne 0x100567c3
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100567a7
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
jl 0x10056894
push 0x100c8670
push ecx
call fcn.10078154
mov edx, eax
add esp, 8
test edx, edx
je 0x10056891
mov ecx, dword [ebp - 0x10]
sub edx, ecx
sar edx, 1
js 0x10056894
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10040a00
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10056872
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x10056866
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10056866
call fcn.10040870
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x1005685e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x10056872
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.1003f950
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10056891
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10056930
mov edx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10056b19
mov edi, dword [eax]
mov ebx, ecx
mov esi, edi
mov cx, word [esi]
cmp cx, word [ebx]
mov ecx, dword [ebp - 0x10]
jne 0x100568e3
cmp word [esi], 0
je 0x100568df
mov cx, word [esi + 2]
cmp cx, word [ebx + 2]
mov word [ebp - 0x12], cx
mov ecx, dword [ebp - 0x10]
jne 0x100568e3
add esi, 4
add ebx, 4
cmp word [ebp - 0x12], 0
jne 0x100568b0
xor esi, esi
jmp 0x100568e8
sbb esi, esi
or esi, 1
test esi, esi
je 0x10056942
test edx, edx
je 0x10056b19
mov esi, edx
mov bx, word [edi]
cmp bx, word [esi]
jne 0x1005691c
test bx, bx
je 0x10056918
mov bx, word [edi + 2]
cmp bx, word [esi + 2]
jne 0x1005691c
add edi, 4
add esi, 4
test bx, bx
jne 0x100568f6
xor esi, esi
jmp 0x10056921
sbb esi, esi
or esi, 1
test esi, esi
je 0x10056942
mov eax, dword [eax + 4]
test eax, eax
jne 0x100568a2
push str.SYSTEM
push ecx
call fcn.1007bee1
add esp, 8
test eax, eax
jne 0x10056949
mov bl, 1
jmp 0x10056aa1
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 1
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
push esi
call dword [sym.imp.NETAPI32.dll_NetUserGetLocalGroups]
test eax, eax
jne 0x10056a32
mov edi, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
jbe 0x10056a2b
mov esi, dword [edi]
call fcn.1003aaa0
test eax, eax
je 0x10056b19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
push esi
call fcn.1003f670
test al, al
jne 0x100569e9
test esi, esi
jne 0x100569c7
xor ecx, ecx
jmp 0x100569df
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100569d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.1003f950
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.10057410
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10056a18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add edi, 4
cmp ebx, dword [ebp - 0x20]
jb 0x10056992
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test esi, esi
je 0x10056a93
mov ebx, dword [ebp - 0x34]
nop dword [eax]
mov eax, ebx
test eax, eax
je 0x10056a8c
mov ecx, dword [eax]
test ecx, ecx
je 0x10056b19
mov edx, dword [esi]
mov di, word [edx]
cmp di, word [ecx]
jne 0x10056a78
test di, di
je 0x10056a74
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x10056a78
add edx, 4
add ecx, 4
test di, di
jne 0x10056a52
xor ecx, ecx
jmp 0x10056a7d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x10056b12
mov eax, dword [eax + 4]
test eax, eax
jne 0x10056a46
mov esi, dword [esi + 4]
test esi, esi
jne 0x10056a40
xor bl, bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.10057510
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10056ac2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10056ade
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10057510
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x204]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0x208]
pop ebp
ret
mov bl, 1
jmp 0x10056a95
push 0x80004005
call fcn.100374f0
int3