Function at 0x48bf60
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae9e
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], 0
mov byte [ebp - 0x144], 0
push 0x104
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0x105
lea ecx, [ebp - 0x24]
push ecx
call fcn.0048bcd0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004090f0
push eax
lea edx, [ebp - 0x144]
push edx
call fcn.0048c870
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x258], 0xff
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x35c]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x144]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0x7a
jne 0x48c0db
mov eax, dword [ebp - 0x28]
push eax
call fcn.00570dc0
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x144]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x48c0d9
cmp dword [ebp - 0x18], 0
je 0x48c0a6
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.0055034f
add esp, 4
mov dword [ebp - 0x18], 0
push 0x5affd8
mov ecx, dword [ebp + 8]
call fcn.00408ff0
mov eax, dword [ebp - 0x378]
or eax, 1
mov dword [ebp - 0x378], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408330
mov eax, dword [ebp + 8]
jmp 0x48c434
jmp 0x48c133
cmp dword [ebp - 0x18], 0
je 0x48c100
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x368]
push edx
call fcn.0055034f
add esp, 4
mov dword [ebp - 0x18], 0
push 0x5affd9
mov ecx, dword [ebp + 8]
call fcn.00408ff0
mov eax, dword [ebp - 0x378]
or eax, 1
mov dword [ebp - 0x378], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408330
mov eax, dword [ebp + 8]
jmp 0x48c434
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x48c199
cmp dword [ebp - 0x18], 0
je 0x48c166
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x36c], edx
mov eax, dword [ebp - 0x36c]
push eax
call fcn.0055034f
add esp, 4
mov dword [ebp - 0x18], 0
push 0x5affda
mov ecx, dword [ebp + 8]
call fcn.00408ff0
mov ecx, dword [ebp - 0x378]
or ecx, 1
mov dword [ebp - 0x378], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408330
mov eax, dword [ebp + 8]
jmp 0x48c434
mov byte [ebp - 0x254], 0
push 0x103
push 0
lea edx, [ebp - 0x253]
push edx
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx edx, byte [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
add eax, 0x1c
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x360]
jae 0x48c264
mov edx, dword [ebp - 0x360]
mov dword [ebp - 0x34], edx
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
je 0x48c231
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
push ecx
call fcn.0055034f
add esp, 4
mov dword [ebp - 0x18], 0
push 0x5affdb
mov ecx, dword [ebp + 8]
call fcn.00408ff0
mov edx, dword [ebp - 0x378]
or edx, 1
mov dword [ebp - 0x378], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408330
mov eax, dword [ebp + 8]
jmp 0x48c434
mov eax, dword [ebp - 0x20]
push eax
push str.S__lu_
push 0x104
lea ecx, [ebp - 0x254]
push ecx
call fcn.005715f5
add esp, 0x10
mov dword [ebp - 0x360], eax
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx]
test eax, eax
jne 0x48c29c
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 1]
test edx, edx
je 0x48c2fd
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 5]
push ecx
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 4]
push eax
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 2]
push ecx
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 1]
push eax
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx]
push edx
push str.0x_02hx_02hx_02hx_02hx_02hx_02hx
push 0x40
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x254]
push ecx
call fcn.005715f5
add esp, 0x24
add eax, dword [ebp - 0x360]
mov dword [ebp - 0x360], eax
jmp 0x48c359
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 5]
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 4]
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 3]
shl edx, 0x10
add eax, edx
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 2]
shl edx, 0x18
add eax, edx
push eax
push 0x5b0008
push 0x40
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x254]
push ecx
call fcn.005715f5
add esp, 0x10
add eax, dword [ebp - 0x360]
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x10], 0
jmp 0x48c36b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x48c3af
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
push eax
push str.__lu
push 0x40
mov ecx, dword [ebp - 0x360]
lea edx, [ebp + ecx - 0x254]
push edx
call fcn.005715f5
add esp, 0x10
add eax, dword [ebp - 0x360]
mov dword [ebp - 0x360], eax
jmp 0x48c362
cmp dword [ebp - 0x18], 0
je 0x48c3d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
push ecx
call fcn.0055034f
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x148]
call fcn.004a2910
mov byte [ebp - 4], 1
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x148]
call fcn.00409090
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408fd0
mov ecx, dword [ebp - 0x378]
or ecx, 1
mov dword [ebp - 0x378], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret