Function at 0x140013de0
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r9
mov rsi, rdx
lea r15, vtable.ATL::CAccessToken.0
mov qword [rbp - 0x51], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
xor r14d, r14d
mov qword [rbp - 0x39], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp - 0x21]
lea edx, [r14 + 0x28]
lea r8d, [r14 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x140013e59
lea rcx, [rbp - 0x51]
mov rax, qword [rbp - 0x51]
call qword [rax + 8]
mov rax, qword [rbp - 0x21]
jmp 0x140013e91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140013e9e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x31]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140013e9e
lea rcx, [rbp - 0x51]
mov rax, qword [rbp - 0x51]
call qword [rax + 8]
mov rax, qword [rbp - 0x31]
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x51]
call fcn.140013b10
lea rdx, str.DigitalPersona_Pro5.x_Agent_Window
lea rcx, str.DigitalPersona_Pro5.x_Agent_Window_Class
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140013ec3
call fcn.140013320
mov ebx, eax
jmp 0x140014021
mov dword [rbp + 0x6f], r14d
lea rdx, [rbp + 0x6f]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp + 0x6f]
test r8d, r8d
jne 0x140013ee9
call fcn.140013320
mov ebx, eax
jmp 0x140014021
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rbp - 0x31], rax
test rax, rax
jne 0x140013f0e
call fcn.140013320
mov ebx, eax
jmp 0x14001400f
mov qword [rbp + 0x5f], r14
lea r8, [rbp + 0x5f]
mov edx, 0xa
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140013f34
call fcn.140013320
mov ebx, eax
jmp 0x14001400f
mov rax, qword [rbp + 0x5f]
mov qword [rbp - 0x19], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
lea rcx, vtable.CVistaToken.0
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x19]
call fcn.140012400
test al, al
je 0x140013f6e
mov ebx, 0x800700b7
jmp 0x140014005
mov qword [rbp - 0x29], r14
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140013fa8
call fcn.140013320
mov ebx, eax
jmp 0x140014005
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r14
mov rcx, qword [rbp - 0x29]
mov qword [rbp + 0xf], rcx
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x140013ff8
call fcn.140013320
mov ebx, eax
jmp 0x140013ffb
mov ebx, r14d
lea rcx, [rbp + 7]
call fcn.140012250
nop
lea rcx, [rbp - 0x19]
call fcn.140012530
nop
test rdi, rdi
je 0x140014021
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x51], r15
mov rdx, qword [rbp - 0x41]
mov rcx, qword [rbp - 0x49]
test rdx, rdx
je 0x140014045
test rcx, rcx
je 0x140014041
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp - 0x49]
mov qword [rbp - 0x41], r14
test rcx, rcx
je 0x140014054
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x49], r14
mov edx, 8
mov rcx, qword [rbp - 0x39]
call fcn.140019f4c
mov qword [rbp - 0x39], r14
mov eax, ebx
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret