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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400bf300]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov r14, rcx
xor r12d, r12d
lea rax, str.Executable
mov qword [rsp + 0x28], rax
lea rax, str.genshin_path
mov qword [rsp + 0x20], rax
lea r9, str.GenshinPath
lea r8, str.Inject
lea rdx, [0x1400bfd30]
lea rcx, [rbp - 0x80]
call fcn.14001f370
nop
mov rax, qword [0x1400bfd50]
mov rbx, qword [rax + 8]
mov rsi, rax
cmp byte [rbx + 0x19], r12b
jne 0x14001f79e
lea rdx, str.Inject
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jns 0x14001f78b
mov rbx, qword [rbx + 0x10]
jmp 0x14001f791
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x14001f770
mov rax, qword [0x1400bfd50]
cmp byte [rsi + 0x19], 0
jne 0x14001f7c0
mov rdx, qword [rsi + 0x20]
lea rcx, str.Inject
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
mov rax, qword [0x1400bfd50]
jns 0x14001f7c3
mov rsi, rax
cmp rsi, rax
je 0x14001f82e
mov rdi, qword [rsi + 0x38]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x14001f807
nop word [rax + rax]
lea rdx, str.GenshinCommandLine
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jns 0x14001f7fb
mov rbx, qword [rbx + 0x10]
jmp 0x14001f801
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x14001f7e0
cmp byte [rdi + 0x19], 0
jne 0x14001f82e
mov rdx, qword [rdi + 0x20]
lea rcx, str.GenshinCommandLine
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
js 0x14001f82e
cmp rdi, qword [rsi + 0x38]
je 0x14001f82e
mov rbx, qword [rdi + 0x38]
jmp 0x14001f831
mov rbx, r12
cmp byte [rbp - 0x60], 0
je 0x14001f8cd
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movdqa xmm1, xmmword [0x140038e10]
movdqu xmmword [rbp + 0x60], xmm1
movsd xmm0, qword [str.explorer.exe]
movsd qword [rbp + 0x50], xmm0
mov eax, dword [0x140038c40]
mov dword [rbp + 0x58], eax
mov byte [rbp + 0x5c], 0
lea rcx, [rbp + 0x50]
call fcn.14001eff0
mov edi, eax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14001f8af
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f8aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fc7c
call fcn.14002e734
test edi, edi
jne 0x14001f91e
lea r8, str.Cant_find_explorer_pid__n
lea rdx, [0x140038c64]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
xor bl, bl
cmp byte [rbp - 0x60], 0
je 0x14001fca2
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14001fca2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fc9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fc9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp byte [rbp - 0x60], 0
je 0x14001fccd
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x30]
call fcn.14000d7c0
nop
mov r9, qword [rbp + 0x40]
lea rdx, [rbp + 0x30]
mov r10, qword [rbp + 0x30]
mov r11, qword [rbp + 0x48]
cmp r11, 0xf
cmova rdx, r10
cmp r9, 1
jb 0x14001f979
lea rax, [r9 - 1]
mov rcx, r9
cmp rax, r9
cmovb rcx, rax
add rcx, rdx
cmp byte [rcx], 0x5c
je 0x14001f974
cmp rcx, rdx
je 0x14001f979
dec rcx
jmp 0x14001f965
sub rcx, rdx
jmp 0x14001f980
mov rcx, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movsxd r8, ecx
cmp r9, r8
cmovb r8, r9
lea rdx, [rbp + 0x30]
cmp r11, 0xf
cmova rdx, r10
lea rcx, [rbp + 0x50]
call fcn.1400012f0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x14001f9ec
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f9e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f9e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x60]
movups xmmword [rbp + 0x40], xmm1
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001fa4f
lea r8, str.Privilege_escalation_failed__n
lea rdx, [0x140038c88]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
xor bl, bl
jmp 0x14001fc4a
mov qword [rsp + 0x60], r12
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0x60]
call fcn.14002eb3c
mov rdi, rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x70]
xor edx, edx
mov r8d, 0x20000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x14001fadc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.UpdateProcThreadAttribute_failed_____d_._n_n
lea rdx, [0x140038cbc]
lea rcx, [0x1400bfc50]
call fcn.14001d680
cmp qword [rsp + 0x70], 0
jne 0x14001fafe
lea r8, str.Couldnt_get_explorer_handle
lea rdx, [0x140038ce0]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
xorps xmm0, xmm0
xor eax, eax
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
movups xmmword [rbp + 0x14], xmm0
mov dword [rbp + 0x24], eax
mov dword [rbp - 0x40], 0x70
mov qword [rbp + 0x28], rdi
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rax, qword [rbp + 0x30]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
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], r12
mov dword [rsp + 0x30], 0x80004
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
setne bl
test eax, eax
je 0x14001fbfb
mov qword [rsp + 0x68], r12
lea r8, [0x140037fd8]
lea rdx, str.cfg.ini
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14001fbeb
lea rdx, vtable.CSimpleIniTempl_char__struct_SI_NoCase_char___class_SI_ConvertA_char__::FileWriter.0
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rax
mov r8b, 1
lea rdx, [rbp + 0x50]
lea rcx, [0x1400bfd30]
call fcn.140011d00
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rbp - 0x50]
mov qword [r15], rax
mov rax, qword [rbp - 0x58]
mov qword [r14], rax
jmp 0x14001fc38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_create_game_process.__d_n
lea rdx, [0x140038d0c]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
lea r8, str.If_you_have_problem_with_GenshinImpact.exe_path._You_can_change_it_manually_in_cfg.ini._n
lea rdx, [0x140038d6c]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rdi
call fcn.14002e734
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x14001fc88
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fc83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fc83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
jmp 0x14001f8cf
call fcn.14002e734
movzx eax, bl
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002eaf0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14001fed0
nop
int3