Function at 0x140061070
Capabilities:
Compare security identifiers

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0xa0]
call fcn.14005f460
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400610cf
lea rcx, [0x1400e2f90]
call fcn.140002df0
jmp 0x1400613ea
mov rax, qword [rsp + 0x68]
lea rcx, [0x1400e2fa0]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1400610f4
add rax, 2
test dx, dx
jne 0x1400610de
xor eax, eax
jmp 0x1400610f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140061147
call fcn.14005bc70
test eax, eax
jne 0x14006111d
call fcn.140060900
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14006111d
jmp 0x1400613ea
call fcn.140060930
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140061142
lea rdx, [0x1400e2fb0]
lea rcx, str._s___unable_to_generate_sshd_virtual_token__ensure_sshd_service_has_TCB_privileges
call fcn.140002d00
jmp 0x1400613ea
call fcn.14005bc70
test eax, eax
jne 0x14006129c
xor ecx, ecx
call fcn.14005d490
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14005d490
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400611a1
call fcn.140060e80
test rax, rax
je 0x1400611a1
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e3018]
lea rcx, str._s___i_am_running_as__s__returning_process_token_since_custom_lsa_is_configured
call fcn.140002e50
jmp 0x1400611f2
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
je 0x1400611d2
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e30a0]
lea rcx, str._s___i_am_running_as__s__returning_process_token
call fcn.140002e50
jmp 0x1400611f2
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e30b0]
lea rcx, str._s___unable_to_generate_user_token_for__s_as_i_am_not_running_as_system
call fcn.140002df0
jmp 0x1400613ea
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov edx, 0xf00ff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x140061233
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400e3108]
lea rcx, str._s___OpenProcessToken_failed_with__d
call fcn.140002d00
jmp 0x1400613ea
cmp dword [rsp + 0xa8], 0
je 0x140061251
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
jmp 0x1400613ea
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateToken]
test eax, eax
jne 0x140061289
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400e3118]
lea rcx, str._s___DuplicateToken_failed_with__d
call fcn.140002d00
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400613ea
mov rcx, qword [rsp + 0xa0]
call fcn.14005d490
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14006131b
call fcn.140060e80
test rax, rax
je 0x14006131b
cmp dword [rsp + 0xa8], 0
jne 0x14006131b
call fcn.140060e80
mov r8, rax
lea rdx, [0x1400e7d00]
mov rcx, qword [rsp + 0xa0]
call fcn.140061840
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140061316
call fcn.140060e80
mov r9, rax
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e3150]
lea rcx, str._s___unable_to_generate_identity_token_for__s_from_custom_lsa_provider:__s
call fcn.140002d00
jmp 0x1400613ea
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call fcn.140060210
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400613ea
mov r8, qword [rsp + 0x68]
lea rdx, [0x1400e31b0]
lea rcx, str._s___unable_to_generate_token_for_user__ls
call fcn.140002e50
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 8
lea r8, str.FakePasswd
lea rdx, str.FakeDomain
lea rcx, str.FakeUser
call fcn.14005f6f0
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call fcn.140060210
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400613ea
mov r8, qword [rsp + 0x68]
lea rdx, str.get_user_token
lea rcx, str._s___unable_to_generate_token_on_2nd_attempt_for_user__ls
call fcn.140002d00
cmp qword [rsp + 0x68], 0
je 0x1400613fc
mov rcx, qword [rsp + 0x68]
call fcn.140077f70
cmp qword [rsp + 0x70], 0
je 0x14006140e
mov rcx, qword [rsp + 0x70]
call fcn.140077f70
cmp qword [rsp + 0x78], 0
je 0x140061420
mov rcx, qword [rsp + 0x78]
call fcn.140077f70
mov rax, qword [rsp + 0x60]
add rsp, 0x98
ret