Function at 0x55a540
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590635
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x8f9064]
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
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x55a5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_open_current_process_token._Assuming_its_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x4f
call fcn.004671b0
add esp, 0xc
xor al, al
jmp 0x55a745
push dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.00568340
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0x7a
je 0x55a60a
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_the_required_buffer_length_for_token_information._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x77
call fcn.004f46d0
add esp, 0xc
xor bl, bl
jmp 0x55a73b
mov esi, dword [ebp - 0x20]
push esi
call fcn.0056d681
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x20]
push ebx
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x55a66c
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_token_information._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x58
call fcn.004671b0
add esp, 0xc
xor bl, bl
jmp 0x55a730
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x55a6cb
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_allocate_and_initialize_SYSTEM_SID._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x65
call fcn.004671b0
add esp, 0xc
xor bl, bl
jmp 0x55a730
push dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.00568340
push dword [ebp - 0x28]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x55a70c
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x2e
call fcn.0055c050
add esp, 0xc
xor bl, bl
jmp 0x55a728
sub esp, 8
mov eax, esp
mov dword [eax], str.Current_process_is_run_by_SYSTEM.
mov dword [eax + 4], 0x21
call fcn.0042d780
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x34]
call fcn.005684b0
push dword [ebp - 0x2c]
call fcn.0056d0c3
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00568410
mov al, bl
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.0056d0b2
mov esp, ebp
pop ebp
ret