Function at 0x14001ff70
Capabilities:
Execute command
Read file on windows
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400bf300]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov qword [rsp + 0x60], r8
mov r14, rdx
mov r15d, ecx
xor r12d, r12d
mov dword [rsp + 0x44], r12d
cmp qword [0x1400bfd30], r12
jne 0x14001ffc3
mov byte [0x1400bfd70], 1
mov qword [rbp - 0x70], r12
lea r8, [0x140037fd4]
lea rdx, str.cfg.ini
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x140020079
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002006f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cmp eax, 1
jl 0x14002006f
movsxd rsi, eax
lea rcx, [rsi + 1]
lea rdx, [0x14009a1cc]
call fcn.14002e97c
mov rbx, rax
test rax, rax
je 0x14002006f
mov byte [rsi + rax], r12b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
jne 0x140020067
mov r8, rax
mov rdx, rbx
lea rcx, [0x1400bfd30]
call fcn.140011340
mov rcx, rbx
call fcn.14002e734
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14001f6f0
test al, al
jne 0x1400200bd
lea r8, str.Failed_to_open_GenshinImpact_process._n_n
lea rdx, [0x140038d98]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
jmp 0x1400208fb
mov rax, qword [0x1400bfd50]
mov rbx, qword [rax + 8]
mov rdi, rax
cmp byte [rbx + 0x19], r12b
jne 0x1400200ff
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 0x1400200ec
mov rbx, qword [rbx + 0x10]
jmp 0x1400200f2
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
je 0x1400200d1
mov rax, qword [0x1400bfd50]
cmp byte [rdi + 0x19], r12b
jne 0x140020121
mov rdx, qword [rdi + 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 0x140020124
mov rdi, rax
cmp rdi, rax
je 0x140020191
mov rsi, qword [rdi + 0x38]
mov rbx, qword [rsi + 8]
cmp byte [rbx + 0x19], r12b
jne 0x140020167
nop word [rax + rax]
lea rdx, str.secrets
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jns 0x14002015b
mov rbx, qword [rbx + 0x10]
jmp 0x140020161
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
je 0x140020140
cmp byte [rsi + 0x19], r12b
jne 0x140020191
mov rdx, qword [rsi + 0x20]
lea rcx, str.secrets
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
js 0x140020191
cmp rsi, qword [rdi + 0x38]
je 0x140020191
mov rsi, qword [rsi + 0x38]
test rsi, rsi
jne 0x1400201c4
lea rsi, str._path_:____discordId_:_0___role_:_31___secret_extra_:_frAQBc8W___isEnterDoorLoad_:_true_
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], r12
mov r9, rsi
lea r8, str.secrets
lea rdx, str.inject
lea rcx, [0x1400bfd30]
call fcn.140010000
mov qword [rbp - 0x70], r12
lea r8, [0x140037fd8]
lea rdx, str.cfg.ini
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x140020219
lea rdx, vtable.CSimpleIniTempl_char__struct_SI_NoCase_char___class_SI_ConvertA_char__::FileWriter.0
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rax
mov r8b, 1
lea rdx, [rsp + 0x70]
lea rcx, [0x1400bfd30]
call fcn.140011d00
nop
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0xe0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140020254
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140001530
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14001c4c0
nop
lea rcx, [rbp - 0x30]
call fcn.140013c10
cmp r15d, 2
jne 0x1400202a2
mov rdx, qword [r14 + 8]
jmp 0x1400202a9
lea rdx, str.korepi.dll
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400202c0
lea rcx, [rbp - 0x10]
call fcn.1400012f0
nop
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rax, qword [rbp - 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140001530
nop
lea rcx, [rbp + 0xb8]
call fcn.140015ee0
nop
lea r8, [rbp - 0x30]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14000eb30
nop
lea rcx, [rbp + 0xb8]
call fcn.140013c10
nop
lea rcx, [rbp - 0x30]
call fcn.140013c10
lea rcx, [rbp + 0x90]
call fcn.140015ee0
nop
mov r13, rax
cmp qword [rax + 0x18], 7
jbe 0x14002035b
mov r13, qword [rax]
mov r12, qword [rax + 0x10]
call fcn.14002e3a4
mov dword [rbp - 0x70], eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor r14d, r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r14b
mov dword [rsp + 0x44], 0x46
test r12, r12
je 0x140020471
cmp r12, 0x7fffffff
ja 0x14002092f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov ecx, eax
call fcn.14002e414
mov r14, rax
shr rax, 0x20
test eax, eax
jne 0x14002093a
movsxd rcx, r14d
mov rdx, qword [rbp - 0x40]
cmp rcx, rdx
ja 0x1400203e7
mov qword [rbp - 0x40], rcx
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rax, qword [rbp - 0x50]
mov byte [rax + rcx], 0
jmp 0x14002043e
mov r15, rcx
sub r15, rdx
mov r8, qword [rbp - 0x38]
mov rax, r8
sub rax, rdx
cmp r15, rax
ja 0x140020424
mov qword [rbp - 0x40], rcx
lea rbx, [rbp - 0x50]
cmp r8, 0xf
cmova rbx, qword [rbp - 0x50]
add rbx, rdx
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [r15 + rbx], 0
jmp 0x14002043e
mov byte [rsp + 0x20], 0
mov r9, r15
movzx r8d, byte [rsp + 0x40]
mov rdx, r15
lea rcx, [rbp - 0x50]
call fcn.140007550
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov rdx, r13
mov ecx, dword [rbp - 0x70]
call fcn.14002e414
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x140020925
xor r14d, r14d
lea rcx, [rbp + 0x90]
call fcn.140013c10
nop
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rax, qword [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x28], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x70], 1
lea rax, [rbp - 0x30]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x70], rsi
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400204c7
mov qword [rbp - 0x68], rdi
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm1
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x30]
call fcn.14000d140
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1400386b0]
movdqu xmmword [rbp - 0x60], xmm1
mov eax, 0x5c5c
mov word [rbp - 0x70], ax
mov byte [rbp - 0x6e], 0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1400386a0]
movdqu xmmword [rbp - 0x80], xmm1
mov word [rsp + 0x70], 0x5c
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.14001e600
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140020587
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020582
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020582
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
movdqa xmm0, xmmword [0x140038690]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400205d7
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400205d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400205d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rax, qword [rbp + 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140001620
nop
xor r9d, r9d
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x70]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140021370
mov rdi, rax
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140020671
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002066c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002066c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rax, qword [rbp + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140001620
nop
lea rax, [0x140038e00]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 5
mov qword [rbp + 0xa0], rdi
movabs rax, 0xa000000000000000
mov qword [rbp + 0x90], rax
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rax, qword [rbp - 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xa8], xmm0
movabs rax, 0xc000000000000008
mov qword [rbp + 0x98], rax
mov qword [rsp + 0x70], 2
lea rax, [rbp + 0x90]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.14000d140
nop
mov r8, qword [rbp - 0x58]
cmp r8, 0xf
jbe 0x140020768
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140012a50
movdqa xmm0, xmmword [0x140038690]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rax, qword [rbp + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140001620
nop
mov r9, qword [rsp + 0x60]
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140021370
nop
mov r8, qword [rbp - 0x18]
cmp r8, 0xf
jbe 0x1400207e1
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140012a50
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov r8, qword [rbp + 0x68]
cmp r8, 0xf
jbe 0x140020811
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.140012a50
movdqa xmm0, xmmword [0x140038690]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov r8, qword [rbp + 0x48]
cmp r8, 0xf
jbe 0x140020841
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140012a50
movdqa xmm0, xmmword [0x140038690]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140020888
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020883
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020883
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], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
lea rcx, [rbp + 0x70]
call fcn.140013c10
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400208e0
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400208db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400208db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e734
mov qword [rbp], r14
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
lea rcx, [rbp + 0x10]
call fcn.140013c10
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002eaf0
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
shr rcx, 0x20
call fcn.140013bb0
int3
mov ecx, 0x16
call fcn.140013b70
int3
shr r14, 0x20
mov ecx, r14d
call fcn.140013bb0
int3