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

Disassembly:
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x208
push 0xffffffffffffffff
push 0x100859d5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100c6034]
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.10029330
test eax, eax
je 0x1003fb39
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.1002b120
test al, al
jne 0x1003f7af
push 0xd
push str.WSS_ADMIN_WPG
mov ecx, esi
call fcn.1002b490
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
mov ecx, edi
call fcn.1003f590
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.10029330
test eax, eax
je 0x1003fb39
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.1002b120
test al, al
jne 0x1003f833
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f817
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002b490
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002c320
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
jl 0x1003f8af
push 0x100a5d9c
push ecx
call fcn.1005ddde
mov edx, eax
add esp, 8
test edx, edx
je 0x1003f8ac
mov ecx, dword [ebp - 0x10]
sub edx, ecx
sar edx, 1
js 0x1003f8af
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002c4a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
push eax
call fcn.1002bf90
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f8ac
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 0x1003f950
mov edx, dword [ebp - 0x20]
nop dword [eax]
test ecx, ecx
je 0x1003fb39
mov edi, dword [eax]
mov ebx, ecx
mov esi, edi
nop
mov cx, word [esi]
cmp cx, word [ebx]
mov ecx, dword [ebp - 0x10]
jne 0x1003f903
cmp word [esi], 0
je 0x1003f8ff
mov cx, word [esi + 2]
cmp cx, word [ebx + 2]
mov word [ebp - 0x12], cx
mov ecx, dword [ebp - 0x10]
jne 0x1003f903
add esi, 4
add ebx, 4
cmp word [ebp - 0x12], 0
jne 0x1003f8d0
xor esi, esi
jmp 0x1003f908
sbb esi, esi
or esi, 1
test esi, esi
je 0x1003f962
test edx, edx
je 0x1003fb39
mov esi, edx
mov bx, word [edi]
cmp bx, word [esi]
jne 0x1003f93c
test bx, bx
je 0x1003f938
mov bx, word [edi + 2]
cmp bx, word [esi + 2]
jne 0x1003f93c
add edi, 4
add esi, 4
test bx, bx
jne 0x1003f916
xor esi, esi
jmp 0x1003f941
sbb esi, esi
or esi, 1
test esi, esi
je 0x1003f962
mov eax, dword [eax + 4]
test eax, eax
jne 0x1003f8c0
push str.SYSTEM
push ecx
call fcn.100613f1
add esp, 8
test eax, eax
jne 0x1003f969
mov bl, 1
jmp 0x1003fac1
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 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 0x1003fa52
mov edi, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x1003fa4b
mov esi, dword [edi]
call fcn.10029330
test eax, eax
je 0x1003fb39
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
push esi
call fcn.1002b120
test al, al
jne 0x1003fa09
test esi, esi
jne 0x1003f9e7
xor ecx, ecx
jmp 0x1003f9ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f9f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.1002b490
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.100403c0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fa38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add edi, 4
cmp ebx, dword [ebp - 0x1c]
jb 0x1003f9b2
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test esi, esi
je 0x1003fab3
mov ebx, dword [ebp - 0x34]
nop dword [eax]
mov eax, ebx
test eax, eax
je 0x1003faac
mov ecx, dword [eax]
test ecx, ecx
je 0x1003fb39
mov edx, dword [esi]
mov di, word [edx]
cmp di, word [ecx]
jne 0x1003fa98
test di, di
je 0x1003fa94
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x1003fa98
add edx, 4
add ecx, 4
test di, di
jne 0x1003fa72
xor ecx, ecx
jmp 0x1003fa9d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1003fb32
mov eax, dword [eax + 4]
test eax, eax
jne 0x1003fa66
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003fa60
xor bl, bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.10040480
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fae2
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 0x1003fafe
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.10040480
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.1005c4e7
lea esp, [ebp + 0x208]
pop ebp
ret
mov bl, 1
jmp 0x1003fab5
push 0x80004005
call fcn.100269b0
int3