Function at 0x140020120
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140053408]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r14, rdx
mov rsi, rcx
movzx edx, r8b
lea rcx, [rbp]
call fcn.140020464
test eax, eax
js 0x140020397
mov edx, 0x105
lea rax, [rbp]
mov ecx, edx
nop dword [rax + rax]
cmp word [rax], 0
je 0x140020185
add rax, 2
sub rcx, 1
jne 0x140020170
jmp 0x140026555
test rcx, rcx
je 0x140026555
sub rdx, rcx
mov qword [rsp + 0x530], r15
xor r15d, r15d
lea rax, [rbp]
mov r10d, r15d
lea rax, [rax + rdx*2]
test rcx, rcx
je 0x1400264f6
lea r9, str.Microsoft_SharedInkTabTip32.exe
mov edx, 0x7ffffffe
sub r9, rax
nop
test rdx, rdx
je 0x1400201e6
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x1400201e6
mov word [rax], r8w
dec rdx
add rax, 2
sub rcx, 1
jne 0x1400201c0
jmp 0x1400264f6
test rcx, rcx
je 0x1400264f6
mov word [rax], r15w
test r10d, r10d
js 0x1400203b2
xor eax, eax
mov qword [rsp + 0x578], rbx
xor edx, edx
mov qword [rsp + 0x538], rdi
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea r8d, [rax + 0x68]
mov qword [rbp - 0x80], rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 0x80
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
lea r9, str.loadhooks
mov edx, 0x104
lea r8, [0x140044190]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x210]
call fcn.1400203b8
mov edi, eax
call fcn.140002a00
mov rcx, r15
mov rbx, rax
mov qword [rsp + 0x60], rcx
test rax, rax
je 0x14002654b
mov r9d, 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x20], 1
lea edx, [r9 + 9]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002654b
test edi, edi
js 0x14002035f
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x210]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rbp]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
test eax, eax
je 0x14002035a
mov rcx, qword [rsp + 0x70]
mov edx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
cmp eax, 0x102
jne 0x14002653b
mov edx, 0x64
call qword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
je 0x140026516
test r14, r14
je 0x14002033e
mov eax, dword [rbp - 0x7c]
mov dword [r14], eax
test rsi, rsi
je 0x140026505
mov rax, qword [rsp + 0x70]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rbx, rbx
je 0x140020372
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x578]
test rcx, rcx
je 0x140020385
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x538]
mov r15, qword [rsp + 0x530]
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140020ba0
add rsp, 0x540
pop r14
pop rsi
pop rbp
ret
mov eax, r10d
jmp 0x14002038f
sub rax, 2
mov r10d, 0x8007007a
jmp 0x1400201ef
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x14002034f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], r15d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov edi, 0x80004005
jmp 0x14002034f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edi, 1
jmp 0x14002034f
mov edi, 0x80004005
jmp 0x14002035f
mov eax, 0x80070057
jmp 0x140020397