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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x70]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003bfe
lea r8, str.Privilege_escalation_failed_
lea edx, [rax + 0x4d]
call fcn.140004980
xor al, al
jmp 0x140003fde
lea rcx, [rbp + 0x40]
call fcn.140009c20
nop
lea r8, str.GenshinCommandLine
call fcn.1400046a0
mov rdi, rax
cmp byte [rbp + 0x60], 0
je 0x140003cb9
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], r15b
lea r8d, [r15 + 0xc]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x60]
call fcn.140003400
nop
lea rcx, [rsp + 0x60]
call fcn.140008f80
mov ebx, eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003c9b
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003fb4
call fcn.14000c184
test ebx, ebx
jne 0x140003d0b
lea r9, str.Cant_find_explorer_pid_
lea r8d, [rbx + 0x5b]
lea rdx, str.J:Github_libYuanShenYuanShenFZ_GCAkebi_GC_1.2.2Akebi_GCinjector_srcmain.cpp
lea ecx, [rbx + 2]
call fcn.14000a2f0
xor dil, dil
cmp byte [rbp + 0x60], 0
je 0x140003fda
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140003fda
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp byte [rbp + 0x60], 0
je 0x140004001
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140004190
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
setae r11b
mov r10, qword [rbp + 0x20]
cmovae rdx, r10
mov r9, qword [rbp + 0x30]
cmp r9, 1
jb 0x140003d6e
lea rax, [r9 - 1]
mov rcx, r9
cmp rax, r9
cmovb rcx, rax
add rcx, rdx
cmp byte [rcx], 0x5c
jne 0x140003d5f
mov eax, r15d
test eax, eax
je 0x140003d69
cmp rcx, rdx
je 0x140003d6e
dec rcx
jmp 0x140003d53
sub rcx, rdx
jmp 0x140003d75
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0xf
movsxd r8, ecx
cmp r9, r8
cmovb r8, r9
lea rdx, [rbp + 0x20]
test r11b, r11b
cmovne rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140003400
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140003de5
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003de0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003de0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c184
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x30], xmm1
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r15
lea r9, [rbp - 0x80]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rbp - 0x80]
call fcn.14000c420
mov rbx, rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 8
lea r9, [rbp - 0x78]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140003e95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.UpdateProcThreadAttribute_failed_____d_._n
mov r8d, 0x6e
lea rdx, str.J:Github_libYuanShenYuanShenFZ_GCAkebi_GC_1.2.2Akebi_GCinjector_srcmain.cpp
lea ecx, [r8 - 0x6b]
call fcn.14000a2f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x50], 0x70
mov qword [rbp + 0x18], rbx
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rax, qword [rbp + 0x20]
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x80004
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rdi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
setne dil
test eax, eax
je 0x140003f41
call fcn.140004600
mov rax, qword [rbp - 0x60]
mov qword [r14], rax
mov rax, qword [rbp - 0x68]
mov qword [rsi], rax
jmp 0x140003f70
lea r8, str.Failed_to_create_game_process.
mov edx, 0x83
call fcn.140004980
lea r9, str.If_you_have_problem_with_GenshinImpact.exe_path._You_can_change_it_manually_in_cfg.ini.
mov r8d, 0x84
lea rdx, str.J:Github_libYuanShenYuanShenFZ_GCAkebi_GC_1.2.2Akebi_GCinjector_srcmain.cpp
mov ecx, 2
call fcn.14000a2f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.14000c184
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140003fc0
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c184
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
jmp 0x140003cbc
call fcn.14000c184
movzx eax, dil
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14000bed0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400021e0
nop
int3