Function at 0x140004350
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r13, rdx
mov r12, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x68]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400043ba
lea r8, str.Privilege_escalation_failed_
lea edx, [rdi + 0x5b]
call fcn.140005440
xor al, al
jmp 0x140004a7f
lea rcx, [rbp + 0x58]
call fcn.14000a800
nop
lea rsi, str.Inject
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
lea rcx, [0x140047d60]
call fcn.140007bb0
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x78]
call fcn.140007c80
mov rdx, qword [0x140047d60]
test al, al
cmovne rdx, qword [rbp - 0x78]
cmp rdx, qword [0x140047d60]
jne 0x140004419
mov r14, rdi
jmp 0x140004457
mov qword [rbp + 0x30], rdi
lea rbx, [rdx + 0x38]
lea rax, str.SrCommandLine
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140006390
mov rax, qword [rbp + 0x30]
cmp rax, qword [rbx]
mov r14, rdi
je 0x140004457
mov r14, qword [rax + 0x38]
lea r8, str.RunAsIs
lea rdx, str.System
call fcn.140005170
movzx r15d, al
lea r8, str.ADll
mov rdx, rsi
call fcn.140005170
test al, al
je 0x140004496
lea r8, str.ADll
mov rdx, rsi
call fcn.140005170
mov byte [0x140047d30], al
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
lea rcx, [0x140047d60]
call fcn.140007bb0
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x78]
call fcn.140007c80
mov rdx, qword [0x140047d60]
test al, al
cmovne rdx, qword [rbp - 0x78]
cmp rdx, qword [0x140047d60]
je 0x140004644
mov qword [rbp + 0x30], rdi
lea rbx, [rdx + 0x38]
lea rax, str.DllPath
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140006390
mov rax, qword [rbp + 0x30]
cmp rax, qword [rbx]
je 0x140004644
cmp qword [rax + 0x38], 0
je 0x140004644
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
lea rcx, [0x140047d60]
call fcn.140007bb0
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x78]
call fcn.140007c80
mov rdx, qword [0x140047d60]
test al, al
cmovne rdx, qword [rbp - 0x78]
cmp rdx, qword [0x140047d60]
jne 0x140004577
mov r9, rdi
jmp 0x1400045b5
mov qword [rbp + 0x30], rdi
lea rbx, [rdx + 0x38]
lea rax, str.DllPath
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140006390
mov rax, qword [rbp + 0x30]
cmp rax, qword [rbx]
mov r9, rdi
je 0x1400045b5
mov r9, qword [rax + 0x38]
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [r9 + rsi], 0
jne 0x1400045c0
mov rax, qword [0x1400470f0]
lea rdi, [0x1400470d8]
cmp rsi, rax
ja 0x140004607
mov rbx, rdi
cmp rax, 0x10
cmovae rbx, qword [0x1400470d8]
mov qword [0x1400470e8], rsi
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140004612
mov rdx, rsi
mov rcx, rdi
call fcn.140003590
mov rax, qword [0x1400470e8]
cmp qword [0x1400470f0], 0x10
jb 0x14000462a
mov rdi, qword [0x1400470d8]
add rax, rdi
cmp rdi, rax
je 0x140004642
cmp byte [rdi], 0x5c
jne 0x14000463a
mov byte [rdi], 0x2f
inc rdi
cmp rdi, rax
jne 0x140004632
xor edi, edi
movzx eax, byte [rbp + 0x78]
test al, al
jne 0x140004653
xor bl, bl
jmp 0x140004a3a
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x38]
call fcn.140004c30
nop
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
setae r10b
mov r8, qword [rbp + 0x38]
cmovae rcx, r8
mov rdx, qword [rbp + 0x48]
cmp rdx, 1
jb 0x1400046ab
lea rax, [rdx - 1]
mov rbx, rdx
cmp rax, rdx
cmovb rbx, rax
add rbx, rcx
cmp byte [rbx], 0x5c
jne 0x14000469c
mov eax, edi
test eax, eax
je 0x1400046a6
cmp rbx, rcx
je 0x1400046ab
dec rbx
jmp 0x140004691
sub rbx, rcx
jmp 0x1400046b2
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
cmp rdx, rbx
cmovb rbx, rdx
lea r9, [rbp + 0x38]
test r10b, r10b
cmovne r9, r8
lea rcx, [rsp + 0x78]
cmp rbx, 0xf
ja 0x1400046f6
mov qword [rbp - 0x78], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x78], 0
jmp 0x1400046fe
mov rdx, rbx
call fcn.140003590
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x14000473c
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004737
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004737
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ce84
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rbp + 0x48], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
movups xmmword [rbp - 0xc], xmm1
movups xmmword [rbp + 4], xmm1
movups xmmword [rbp + 0x14], xmm1
mov qword [rbp + 0x24], rax
mov dword [rbp + 0x2c], eax
mov dword [rbp - 0x40], 0x70
test r15b, r15b
je 0x1400047e8
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rax, qword [rbp + 0x38]
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
cmovae rdx, qword [rbp + 0x58]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x80004
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, r14
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
jmp 0x140004997
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov qword [rbp - 0x78], 0xc
movsd xmm0, qword [str.explorer.exe]
movsd qword [rsp + 0x78], xmm0
mov eax, dword [0x14000fb68]
mov dword [rbp - 0x80], eax
mov byte [rbp - 0x7c], 0
lea rcx, [rsp + 0x78]
call fcn.140009bb0
mov ebx, eax
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140004863
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000485e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000485e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ce84
test ebx, ebx
jne 0x140004888
lea r9, str.Cant_find_explorer_pid_
mov r8d, 0x83
lea rdx, str.D:ProjectV2StarRail_Cheatinjector_srcmain.cpp
lea ecx, [rbx + 2]
call fcn.14000afa0
jmp 0x1400049e8
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x30], rdi
lea r9, [rbp + 0x30]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rbp + 0x30]
call fcn.14000d120
mov rbx, rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 8
lea r9, [rbp - 0x60]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140004927
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.UpdateProcThreadAttribute_failed_____d_._n
mov r8d, 0x92
lea rdx, str.D:ProjectV2StarRail_Cheatinjector_srcmain.cpp
mov ecx, 3
call fcn.14000afa0
mov qword [rbp + 0x28], rbx
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rax, qword [rbp + 0x38]
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
cmovae rdx, qword [rbp + 0x58]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x80004
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, r14
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.14000ce84
test edi, edi
setne bl
test edi, edi
je 0x1400049b7
call fcn.140004ff0
mov rax, qword [rbp - 0x50]
mov qword [r13], rax
mov rax, qword [rbp - 0x58]
mov qword [r12], rax
jmp 0x1400049e6
lea r8, str.Failed_to_create_game_process.
mov edx, 0xa7
call fcn.140005440
lea r9, str.If_you_have_problem_with_GenshinImpact.exe_path._You_can_change_it_manually_in_cfg.ini.
mov r8d, 0xa8
lea rdx, str.D:ProjectV2StarRail_Cheatinjector_srcmain.cpp
mov ecx, 2
call fcn.14000afa0
xor edi, edi
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140004a26
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ce84
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
movzx eax, byte [rbp + 0x78]
test al, al
je 0x140004a7c
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x140004a7c
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ce84
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000cbd0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret