Function at 0x10083c70
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x434], ecx
push eax
lea eax, [ebp - 0x308]
mov dword [ebp - 0x424], 0xff
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0xff
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0xff
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
sub esp, 0x18
mov edi, eax
mov ecx, esp
push 0x100fe2f8
call fcn.100ae9d0
lea ecx, [ebp - 0x420]
call fcn.10083b80
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10083d24
mov eax, dword [eax]
push 1
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10082ab0
mov edx, dword [ebp - 0x40c]
add esp, 0xc
mov dword [ebp - 0x430], eax
cmp edx, 0x10
jb 0x10083d76
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10083d6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10083f8b
push edx
push ecx
call fcn.100baf94
add esp, 8
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10083d80
sub esp, 0x18
sub esi, ecx
mov ecx, esp
push 0x100fdfe0
call fcn.100ae9d0
lea ecx, [ebp - 0x420]
call fcn.10083b80
mov ecx, eax
add esp, 0x18
cmp dword [ecx + 0x14], 0x10
jb 0x10083db0
mov ecx, dword [ecx]
movzx eax, byte [edi + 5]
push eax
lea eax, [ebp - 0x108]
push ecx
add eax, esi
push eax
call fcn.10082ab0
add dword [ebp - 0x430], eax
add esp, 0xc
mov edx, dword [ebp - 0x40c]
cmp edx, 0x10
jb 0x10083e07
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10083dfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10083f90
push edx
push ecx
call fcn.100baf94
add esp, 8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx ebx, byte [eax]
test ebx, ebx
je 0x10083eb9
sub esp, 0x18
mov ecx, esp
push 0x100fd908
call fcn.100ae9d0
lea ecx, [ebp - 0x420]
call fcn.10083b80
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x10083e48
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
lea ecx, [ebp - 0x108]
push dword [eax]
mov eax, dword [ebp - 0x430]
add eax, ecx
push esi
push eax
call fcn.10082ab0
add dword [ebp - 0x430], eax
add esp, 0xc
mov edx, dword [ebp - 0x40c]
cmp edx, 0x10
jb 0x10083eb0
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10083ea6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10083f8b
push edx
push ecx
call fcn.100baf94
add esp, 8
inc edi
cmp edi, ebx
jl 0x10083e21
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x420], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10083ee0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.100af160
mov ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x420]
mov ecx, 0x28
cmp dword [ebp - 0x410], ecx
cmovb ecx, dword [ebp - 0x410]
cmp dword [ebp - 0x40c], 0x10
push ecx
cmovae eax, dword [ebp - 0x420]
mov ecx, ebx
push eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.100af160
mov edx, dword [ebp - 0x40c]
cmp edx, 0x10
jb 0x10083f78
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10083f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10083f95
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100c79a0
call fcn.100c79a0
call fcn.100c79a0
int3