Function at 0x100c7d00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024eb52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x10000
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x20000
cmp ecx, eax
je 0x100c7d78
mov dword [eax], 0x20000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7d8b
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x80000
cmp ecx, eax
je 0x100c7da4
mov dword [eax], 0x80000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7db7
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x100000
cmp ecx, eax
je 0x100c7dd0
mov dword [eax], 0x100000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7de3
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xf0000
cmp ecx, eax
je 0x100c7dfc
mov dword [eax], 0xf0000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7e0f
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x20000
cmp ecx, eax
je 0x100c7e28
mov dword [eax], 0x20000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7e3b
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x1f0000
cmp ecx, eax
je 0x100c7e54
mov dword [eax], 0x1f0000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7e67
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x20000
cmp ecx, eax
je 0x100c7e80
mov dword [eax], 0x20000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7e93
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x20000
cmp ecx, eax
je 0x100c7eac
mov dword [eax], 0x20000
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7ebf
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xffff
cmp ecx, eax
je 0x100c7ed8
mov dword [eax], 0xffff
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7eeb
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xffff
cmp ecx, eax
je 0x100c7f04
mov dword [eax], 0xffff
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x100c7f11
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003f700
push 0x208
lea eax, [ebp - 0x268]
mov byte [ebp - 0xd], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0x208
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c7f60
sub ecx, edx
lea eax, [ebp - 0x268]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1001a600
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMShellUtils::GetAccountNameSID_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___struct__SID___
add esp, 8
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.1001a5a0
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test bl, bl
mov ebx, dword [ebp - 0x28]
je 0x100c8157
test ebx, ebx
je 0x100c817a
xor eax, eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c7fd0
sub ecx, edx
lea eax, [ebp - 0x268]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1001a600
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x60]
push eax
call sym.WMCommon.dll_private:_static_void___cdecl_WM::GMShellUtils::GetUserGroupSIDList_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::vector_struct__SID___class_std::allocator_struct__SID_____
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.1001a5a0
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x24], 0
cmp dword [esi + 0x14], 8
jb 0x100c801f
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 4
push eax
call edi
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100c814c
cmp dword [esi + 0x14], 8
jb 0x100c8051
mov esi, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x24]
push eax
push 4
push esi
call edi
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x100c814f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x100c814f
mov ecx, dword [ebp - 0x30]
xor eax, eax
xor bl, bl
mov dword [ebp - 0x14], 0
xor esi, esi
mov byte [ebp - 0xd], 0
cmp ax, word [ecx + 4]
jae 0x100c8145
mov edi, dword [ebp - 0x28]
nop word [eax + eax]
lea eax, [ebp - 0x14]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x100c812a
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
cmp cl, 1
jne 0x100c80ff
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [eax + 4]
add eax, 8
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMShellUtils::CheckFlag_struct__SID_const___class_std::vector_struct__SID___class_std::allocator_struct__SID____const___struct__SID_const___unsigned_int__unsigned_int__class_std::vector_unsigned_int__class_std::allocator_unsigned_int___const__
add esp, 0x18
test al, al
je 0x100c812a
mov dl, 1
mov byte [ebp - 0xd], dl
jmp 0x100c812d
test cl, cl
jne 0x100c812a
lea ecx, [ebp - 0x20]
push ecx
push 1
push dword [eax + 4]
add eax, 8
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMShellUtils::CheckFlag_struct__SID_const___class_std::vector_struct__SID___class_std::allocator_struct__SID____const___struct__SID_const___unsigned_int__unsigned_int__class_std::vector_unsigned_int__class_std::allocator_unsigned_int___const__
add esp, 0x18
movzx ebx, bl
test al, al
mov eax, 1
cmovne ebx, eax
mov dl, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x30]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jl 0x100c80c0
test dl, dl
jne 0x100c8145
mov byte [ebp - 0xd], 1
test bl, bl
jne 0x100c8149
mov byte [ebp - 0xd], 0
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [ebp - 0x3c]
test ebx, ebx
je 0x100c8167
call eax
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x100c8175
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [ebp - 0x38]
mov esi, edi
cmp esi, ebx
je 0x100c819c
push dword [esi]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esi, 4
cmp esi, ebx
jne 0x100c8183
lea ecx, [ebp - 0x20]
call fcn.100202c0
test edi, edi
je 0x100c81da
mov ecx, dword [ebp - 0x34]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100c81d0
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c81d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.1006e6d7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret