Function at 0x542e70
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd60f
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x1c4], esi
mov dword [ebx + 0x10], 0
jb 0x542ee3
mov eax, dword [ebx]
jmp 0x542ee5
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
push 0x98
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x1d4], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x608d28
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x1d4], 3
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb4], eax
lea eax, [ebp - 0xac]
mov ecx, eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 5
push eax
push 0
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x18], 1
push eax
push 0
push esi
push 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0x1bc]
test eax, eax
jne 0x5430a3
lea eax, [ebp - 0xb0]
push str.LookupAccountName_did_not_return_the_SID_size__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x54304f
mov eax, dword [eax]
mov dword [ebp - 0x1d0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1e0]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1d0]
movq qword [ebp - 0x1e0], xmm0
push eax
mov byte [ebp - 0x1cc], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x1e4]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
call fcn.00544079
mov esi, eax
add esp, 4
mov dword [ebp - 0x200], esi
mov eax, dword [ebp - 0x1b8]
xor ecx, ecx
mov edx, 2
mov byte [ebp - 4], 7
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00544079
mov edi, eax
add esp, 4
mov dword [ebp - 0x1cc], edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1b8]
push eax
push edi
lea eax, [ebp - 0x1bc]
push eax
push esi
push dword [ebp - 0x1c4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x5431bf
lea eax, [ebp - 0xb0]
push str.LookupAccountName_failed__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x54316b
mov eax, dword [eax]
mov dword [ebp - 0x1c8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1ec]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1c8]
movq qword [ebp - 0x1ec], xmm0
push eax
mov byte [ebp - 0x1c4], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x1f0]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0
push eax
push esi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x543290
lea eax, [ebp - 0xb0]
push str.ConvertSidToStringSid_failed__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x54323c
mov eax, dword [eax]
mov dword [ebp - 0x1c8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1f8]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1c8]
movq qword [ebp - 0x1f8], xmm0
push eax
mov byte [ebp - 0x1c4], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x1fc]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [ebp - 0x1c0]
test eax, eax
je 0x5432d9
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0053f960
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00414b50
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1b0]
cmp eax, ecx
je 0x5432cd
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 2
push edi
call fcn.0054406b
push 1
push esi
call fcn.0054406b
add esp, 0x10
jmp 0x5433ba
lea ecx, [ebp - 0xb0]
call fcn.00415390
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret