Function at 0x140061110
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.14005f500
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14006116f
lea rcx, [0x1400e2fa0]
call fcn.140002df0
jmp 0x14006148a
mov rax, qword [rsp + 0x68]
lea rcx, [0x1400e2fb0]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140061194
add rax, 2
test dx, dx
jne 0x14006117e
xor eax, eax
jmp 0x140061199
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400611e7
call fcn.14005bc80
test eax, eax
jne 0x1400611bd
call fcn.1400609a0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400611bd
jmp 0x14006148a
call fcn.1400609d0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400611e2
lea rdx, [0x1400e2fc0]
lea rcx, str._s___unable_to_generate_sshd_virtual_token__ensure_sshd_service_has_TCB_privileges
call fcn.140002d00
jmp 0x14006148a
call fcn.14005bc80
test eax, eax
jne 0x14006133c
xor ecx, ecx
call fcn.14005d4a0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14005d4a0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140061241
call fcn.140060f20
test rax, rax
je 0x140061241
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e3028]
lea rcx, str._s___i_am_running_as__s__returning_process_token_since_custom_lsa_is_configured
call fcn.140002e50
jmp 0x140061292
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 0x140061272
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e30b0]
lea rcx, str._s___i_am_running_as__s__returning_process_token
call fcn.140002e50
jmp 0x140061292
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e30c0]
lea rcx, str._s___unable_to_generate_user_token_for__s_as_i_am_not_running_as_system
call fcn.140002df0
jmp 0x14006148a
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 0x1400612d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400e3118]
lea rcx, str._s___OpenProcessToken_failed_with__d
call fcn.140002d00
jmp 0x14006148a
cmp dword [rsp + 0xa8], 0
je 0x1400612f1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
jmp 0x14006148a
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 0x140061329
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400e3128]
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 0x14006148a
mov rcx, qword [rsp + 0xa0]
call fcn.14005d4a0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400613bb
call fcn.140060f20
test rax, rax
je 0x1400613bb
cmp dword [rsp + 0xa8], 0
jne 0x1400613bb
call fcn.140060f20
mov r8, rax
lea rdx, [0x1400e7d00]
mov rcx, qword [rsp + 0xa0]
call fcn.1400618e0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400613b6
call fcn.140060f20
mov r9, rax
mov r8, qword [rsp + 0xa0]
lea rdx, [0x1400e3160]
lea rcx, str._s___unable_to_generate_identity_token_for__s_from_custom_lsa_provider:__s
call fcn.140002d00
jmp 0x14006148a
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call fcn.1400602b0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14006148a
mov r8, qword [rsp + 0x68]
lea rdx, [0x1400e31c0]
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.14005f790
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call fcn.1400602b0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14006148a
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 0x14006149c
mov rcx, qword [rsp + 0x68]
call fcn.140078000
cmp qword [rsp + 0x70], 0
je 0x1400614ae
mov rcx, qword [rsp + 0x70]
call fcn.140078000
cmp qword [rsp + 0x78], 0
je 0x1400614c0
mov rcx, qword [rsp + 0x78]
call fcn.140078000
mov rax, qword [rsp + 0x60]
add rsp, 0x98
ret