Function at 0x140001880
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x620], rax
xor edi, edi
mov r8d, 0x104
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400018f1
lea rdx, str.Error:_Could_not_get_the_executable_path_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001e50
lea rdx, [0x140002020]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea eax, [rdi + 1]
jmp 0x140001cd1
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x200]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140001910
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400025c0
nop
lea r10, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r10, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea rdx, [r10 + rax*2]
mov rcx, r10
call fcn.1400011c0
cmp rax, rdx
je 0x1400019ce
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140001964
cmp cx, 0x2f
jne 0x14000196d
add rax, 2
cmp rax, rdx
jne 0x140001955
cmp rax, rdx
je 0x1400019ce
nop dword [rax]
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x1400019a0
cmp r8w, 0x2f
je 0x1400019a0
mov rdx, rcx
cmp rax, rcx
jne 0x140001980
jmp 0x1400019ce
cmp rax, rdx
je 0x1400019ce
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x1400019c6
cmp r8w, 0x2f
jne 0x1400019ce
mov rdx, rcx
cmp rax, rcx
jne 0x1400019b0
mov qword [rsp + 0x20], r10
sub rdx, r10
sar rdx, 1
mov qword [rsp + 0x28], rdx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.1400025c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001a3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000276c
movdqa xmm0, xmmword [0x140004670]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rax, str.version2.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400025c0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400015a0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001acd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ac8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ac8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000276c
movdqa xmm0, xmmword [0x140004670]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], di
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.140001d00
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r8, qword [rsp + 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140001b56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000276c
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001bb5
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001bac
lea rdx, str.GenshinImpact.exe
lea rcx, [rbp - 0x14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001c1f
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001b82
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Error:_Could_not_find_Test.exe_process_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001e50
lea rdx, [0x140002020]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140001c7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbp - 0x38]
test ecx, ecx
je 0x140001bb5
lea rdx, [rbp + 0x410]
call fcn.140001660
test al, al
je 0x140001c4c
lea rdx, str.DLL_injection_was_successful_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x140001c5a
lea rdx, str.DLL_injection_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001e50
lea rdx, [0x140002020]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, edi
jmp 0x140001bdd
call fcn.14000276c
movdqa xmm0, xmmword [0x140004670]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140001ccf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000276c
mov eax, ebx
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140002710
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret