Function at 0x40ec70
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a8b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd4], 0
call fcn.0040f400
mov esi, eax
cmp esi, 0xffffffff
je 0x40f0cb
mov ecx, dword [0x444f30]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x40ecfe
push str.WTSQuerySessionInformationW
push str.Wtsapi32.dll
call fcn.0040f240
add esp, 8
mov ecx, 0x444f30
xchg dword [ecx], eax
mov ecx, dword [0x444f30]
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd4]
push eax
push 5
push esi
push 0
call ecx
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40f0cb
mov edi, dword [ebp - 0xd4]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x40f820
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], eax
mov byte [ebp - 0xec], 1
push 0x14
mov dword [ebp - 4], 1
call fcn.00411f5e
mov esi, eax
add esp, 4
mov dword [ebp - 0xe4], esi
test esi, esi
je 0x40ed8a
mov eax, dword [ebp - 0xe8]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_resource_wchar_t___void____stdcall___void___.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
jmp 0x40ed8c
xor esi, esi
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], 0
push eax
push 0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd8], 0
push eax
push 0
push dword [ebp - 0xd4]
mov dword [ebp - 0xe4], 1
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40edea
xor edi, edi
jmp 0x40f0a2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xdc]
mov dword [ebp - 0x34], ecx
mov cl, byte [ebp - 0xc9]
push 8
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__void__.0
mov byte [ebp - 0x30], cl
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00401350
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40ee51
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xd8]
add eax, eax
mov dword [ebp - 0x34], ecx
mov cl, byte [ebp - 0xc9]
push eax
push 8
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov byte [ebp - 0x30], cl
mov dword [ebp - 0x2c], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x98]
call fcn.00401350
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40eeb5
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40effa
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x40effa
lea edx, [ebp - 0xe4]
push edx
lea edx, [ebp - 0xd8]
push edx
push ecx
lea ecx, [ebp - 0xdc]
push ecx
push eax
push dword [ebp - 0xd4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40effa
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x34], ecx
mov cl, byte [ebp - 0xc9]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x30], cl
lea ecx, [ebp - 0x68]
push 0
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], eax
call fcn.00401350
lea ecx, [ebp - 0x38]
call fcn.004024f0
cmp dword [ebp - 0xd0], 0
je 0x40ef8e
push dword [ebp - 0xe0]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x68]
call fcn.00407b20
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x40ef67
xor edi, edi
jmp 0x40efb1
push dword [ebp - 0xe0]
push dword [ebp - 0xd4]
push ecx
call fcn.004134a0
mov edx, dword [ebp - 0xd0]
add esp, 0xc
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [edx], eax
jmp 0x40ef91
mov ecx, dword [ebp - 0x40]
test ebx, ebx
je 0x40efa1
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x70], 0
mov dword [ebx], eax
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 4
test ecx, ecx
je 0x40efd9
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40f0e9
mov eax, dword [ecx]
lea edx, [ebp - 0xd0]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40effc
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
jmp 0x40effc
xor edi, edi
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x40f027
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x40f0ee
mov eax, dword [ecx]
lea edx, [ebp - 0xd0]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x40f049
mov edx, dword [ecx]
lea eax, [ebp - 0x98]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 4], 6
test eax, eax
je 0x40f07a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xd0], eax
test ecx, ecx
je 0x40f0f3
mov eax, dword [ecx]
lea edx, [ebp - 0xd0]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x40f0a2
mov edx, dword [ecx]
lea eax, [ebp - 0xc8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xa4], 0
test esi, esi
je 0x40f0c7
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40f0c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40f0c7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
jmp 0x40f0cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
call fcn.00411cb0
call fcn.00411cb0
call fcn.00411cb0
int3