Function at 0x43aac0
Capabilities:
Get session user name
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x268], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x43aaff
mov ecx, edi
call fcn.0043ba70
push edi
call fcn.0050d60e
add esp, 4
lea edi, [esp + 0x60]
mov dword [edi], 0x101
lea ebx, [esp + 0x66]
push 0x202
push 0xff
push ebx
call fcn.00510ea0
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [esp + 0x5c], eax
xor ecx, ecx
dec ecx
mov dword [esp + 0x58], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x43ab57
mov ecx, dword [esi]
mov dword [esp + 0x10], esi
lea ebx, [esp + 0x5c]
lea edi, [esp + 0x58]
push ebx
push eax
push edi
push eax
push eax
push 4
mov esi, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 5
jne 0x43aba9
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043a610
test al, al
je 0x43ac93
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43ab96
mov eax, dword [esi]
xor ecx, ecx
push ebx
push ecx
push edi
push ecx
push ecx
push 4
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x43ac93
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x60]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x43ac93
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43ac27
mov esi, dword [ebp + 0x10]
not esi
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x28]
cmp dword [ecx + edi + 4], 3
jne 0x43ac1f
cmp dword [ecx + edi + 0x14], 0
jne 0x43ac1f
mov dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x14]
push eax
push dword [ecx + edi + 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x43ac1b
cmp dword [esp + 0x14], 0
je 0x43ac1b
mov eax, dword [esp + 0x28]
and dword [eax + edi], esi
mov eax, dword [esp + 0x2c]
inc ebx
add edi, 0x20
cmp ebx, eax
jb 0x43abde
xor edi, edi
inc edi
lea ebx, [esp + 0x30]
push 3
push edi
push dword [ebp + 0x10]
lea eax, [esp + 0x72]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [ecx], eax
mov dword [esp + 0x20], eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x43ac75
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x43accd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43ac84
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43ac93
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43aca4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x43acb3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov edi, dword [esp + 0x20]
lea ebx, [esp + 0x14]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edx, esi
call fcn.0043a970
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov edi, eax
mov eax, dword [ebx]
test eax, eax
je 0x43ad09
mov dword [esp + 0x18], eax
push eax
call fcn.0050d60e
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, 5
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jne 0x43ad6c
push ebx
push esi
call fcn.0043a610
mov dword [esp + 0xc], 5
test al, al
je 0x43ad6c
mov edi, dword [esp + 0x20]
mov edx, esi
mov esi, ebx
lea ebx, [esp + 0x14]
mov ecx, ebx
call fcn.0043a970
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
test eax, eax
je 0x43ad66
mov dword [esp + 0x18], eax
push eax
call fcn.0050d60e
add esp, 4
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43ad7b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43ad8a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xc], 0
sete bl
jne 0x43ac95
cmp byte [ebp + 0x14], 0
jne 0x43ac95
push 0x18
call fcn.0050d5de
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0043ba50
mov ecx, ebx
mov ebx, dword [edi]
mov dword [edi], ecx
test ebx, ebx
je 0x43add1
mov ecx, ebx
call fcn.0043ba70
push ebx
call fcn.0050d60e
add esp, 4
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
cmp ecx, esi
je 0x43ae00
cmp byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
js 0x43ae25
test al, al
jns 0x43adf2
push dword [esi + 4]
push dword [esi]
call fcn.00451dd0
jmp 0x43ae00
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
mov eax, dword [esp + 0x58]
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x14], edx
mov dword [esp + 0x5c], ecx
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
mov bl, 1
jmp 0x43ac95
test al, al
jns 0x43ae37
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
jmp 0x43ae3a
and eax, 0x7f
push eax
push dword [esp + 0x14]
call fcn.00451d00
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jmp 0x43ae00