Function at 0x41c110
Capabilities:
Get user security identifier

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d21e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x64c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x60
lea eax, [ebp - 0x78]
mov dword [ebp - 0xc8], 0
push 0
push eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xd0], 0
call fcn.005a52f0
xor edi, edi
mov dword [ebp - 0xc0], 0
mov ecx, esi
mov dword [ebp - 0x90], edi
add esp, 0xc
mov dword [ebp - 0xc4], edi
xor eax, eax
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x90], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c1c1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x90]
call fcn.0040c050
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 0
nop
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0xd0]
push ecx
push 0
lea ecx, [ebp - 0xb4]
push ecx
push 0
lea ecx, [ebp - 0xc4]
push ecx
push 5
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 2
jne 0x41c313
cmp dword [ebp - 0x7c], 8
lea edx, [ebp - 0x90]
mov esi, dword [ebp - 0x80]
cmovae edx, dword [ebp - 0x90]
test esi, esi
je 0x41c273
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x41c26d
nop dword [eax + eax]
cmp eax, edx
je 0x41c273
sub eax, 2
cmp word [eax], 0x5c
jne 0x41c260
sub eax, edx
sar eax, 1
jmp 0x41c276
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x41c313
cmp esi, eax
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], 0
cmovb eax, esi
mov dword [ebp - 0x94], 7
cmp dword [ebp - 0x7c], 8
push eax
cmovae ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0040c050
lea ecx, [ebp - 0x90]
call fcn.00408a60
movups xmm0, xmmword [ebp - 0xa8]
xor eax, eax
lea ecx, [ebp - 0xa8]
mov word [ebp - 0xa8], ax
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x98]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
call fcn.00408a60
jmp 0x41c1f0
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x41c3d9
lea ecx, [ebp - 0xc0]
xor esi, esi
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x41c3d9
xor edi, edi
nop dword [eax]
mov ecx, dword [ebp - 0xc0]
mov edx, edi
mov al, byte [ecx]
mov byte [ebp - 0xad], al
test al, al
mov eax, dword [ebp - 0xac]
jne 0x41c392
test edi, edi
jne 0x41c3ba
lea eax, [ecx + 8]
test eax, eax
je 0x41c3ba
cmp byte [eax], 1
jne 0x41c3ba
cmp byte [eax + 1], 2
jne 0x41c3ba
cmp byte [eax + 7], 5
jne 0x41c3ba
cmp dword [eax + 8], 0x20
jne 0x41c3ba
cmp dword [eax + 0xc], 0x221
jne 0x41c3ba
mov edi, ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xac], ecx
jmp 0x41c3ba
cmp byte [ebp - 0xad], 1
mov edi, edx
mov dword [ebp - 0xac], eax
jne 0x41c3ba
push esi
push dword [ebp - 0xb4]
mov dword [ebp - 0xac], eax
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x41c3bb
inc esi
lea eax, [ebp - 0xc0]
push eax
push esi
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x41c340
xor edi, edi
or dword [ebp - 0xac], 0x20019
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
push 3
push 2
push 0xf003f
push str.Administrators
push eax
call esi
push 3
push 2
push 0xf003f
push str.System
lea eax, [ebp - 0x58]
push eax
call esi
push 3
push 2
push dword [ebp - 0xac]
lea eax, [ebp - 0x38]
push str.Users
push eax
call esi
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0x78]
push eax
push 3
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41c628
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x41c499
mov eax, dword [ecx]
cmp eax, dword [0x633960]
jne 0x41c475
mov eax, dword [ecx + 4]
cmp eax, dword [0x633964]
jne 0x41c475
mov eax, dword [ecx + 8]
cmp eax, dword [0x633968]
je 0x41c5a6
cmp byte [ecx], 1
jne 0x41c499
cmp byte [ecx + 1], 2
jne 0x41c499
cmp byte [ecx + 7], 5
jne 0x41c499
cmp dword [ecx + 8], 0x20
jne 0x41c499
cmp dword [ecx + 0xc], 0x220
je 0x41c5a6
lea eax, [ebp - 0xd4]
xor esi, esi
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb8], esi
push eax
push esi
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xac], esi
push eax
push esi
push str.Administrators
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x41c54d
test edi, edi
je 0x41c4e5
push edi
call fcn.005a8164
add esp, 4
xor edi, edi
test esi, esi
je 0x41c4f4
push esi
call fcn.005a8164
add esp, 4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41c54d
push dword [ebp - 0xb8]
call fcn.005a817f
mov edi, eax
mov eax, dword [ebp - 0xac]
add eax, eax
push eax
call fcn.005a817f
add esp, 8
mov esi, eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xac]
push eax
push esi
lea eax, [ebp - 0xb8]
push eax
push edi
push str.Administrators
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x41c4d6
push esi
call fcn.005a8164
xor eax, eax
cmp dword [ebp - 0xbc], eax
cmove edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0041c050
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
add esp, 4
test edi, edi
je 0x41c5ac
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0
cmovae eax, dword [ebp - 0x90]
push 0
push 0
push edi
push 0x30000001
push 4
push eax
call esi
mov dword [ebp - 0xcc], 1
jmp 0x41c5ac
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0
push dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0x90]
push 0
push 0
push reloc.WS2_32.dll_connect
push 4
push eax
call esi
cmp dword [ebp - 0xcc], 0
mov esi, eax
je 0x41c609
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0
cmovae eax, dword [ebp - 0x90]
push 0
push 0
push dword [ebp - 0xc4]
push 0x30000001
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
xor eax, eax
mov ecx, 1
test esi, esi
cmove eax, ecx
mov dword [ebp - 0xbc], eax
test edi, edi
je 0x41c628
push edi
call fcn.005a8164
add esp, 4
mov eax, dword [ebp - 0xc8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x41c63b
push eax
call esi
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x41c648
push ecx
call esi
lea ecx, [ebp - 0x90]
call fcn.00408a60
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483ab6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret