Function at 0x140001340
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor edi, edi
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400013bd
lea rdx, str.Failed_to_create_process_snapshot
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ca0
lea rdx, [0x140001e80]
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 eax, 1
jmp 0x140001a76
mov dword [rsp + 0x70], 0x238
mov r13, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001407
nop word [rax + rax]
lea rdx, str.ksophon_x64.sys
lea rcx, [rbp - 0x64]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001474
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400013e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x140001a74
lea rdx, str.Tower_of_Fantasy
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400014c8
lea rdx, str.Cannot_find_Process_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001ca0
lea rdx, [0x140001e80]
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 rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, 0xffffffffffffffff
jmp 0x140001a76
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140001407
lea rdx, str.Failed_to_open_process_handle
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ca0
lea rdx, [0x140001e80]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001a76
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 0x104
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x200]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140001507
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140001f30
nop
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea rdx, [rbx + rax*2]
mov rcx, rbx
call fcn.1400011c0
cmp rax, rdx
je 0x1400015ce
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140001566
cmp cx, 0x2f
jne 0x14000156f
add rax, 2
cmp rax, rdx
jne 0x140001557
cmp rax, rdx
je 0x1400015ce
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x1400015a0
cmp r8w, 0x2f
je 0x1400015a0
mov rdx, rcx
cmp rax, rcx
jne 0x140001580
jmp 0x1400015ce
cmp rax, rdx
je 0x1400015ce
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x1400015c6
cmp r8w, 0x2f
jne 0x1400015ce
mov rdx, rcx
cmp rax, rcx
jne 0x1400015b0
sub rdx, rbx
sar rdx, 1
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140001f30
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d8], xmm0
mov qword [rbp + 0x1e8], rdi
mov qword [rbp + 0x1f0], rdi
lea r12, [rsp + 0x50]
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
cmp rax, 7
cmova r12, r14
movabs rcx, 0x7ffffffffffffffe
mov r15, qword [rsp + 0x60]
cmp r15, rcx
ja 0x140001ab2
movabs rdx, 0x7fffffffffffffff
mov ebx, 7
mov r8d, 0xa
cmp r15, rbx
ja 0x140001680
mov qword [rbp + 0x1e8], r15
mov esi, ebx
mov qword [rbp + 0x1f0], rbx
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x1d8], xmm0
movq rdi, xmm0
jmp 0x14000171a
mov rsi, r15
or rsi, rbx
cmp rsi, rcx
jbe 0x140001694
mov rsi, rcx
lea rcx, [rdx + rdx]
jmp 0x1400016ad
cmp rsi, r8
cmovb rsi, r8
lea rcx, [rsi + 1]
cmp rcx, rdx
ja 0x140001aac
add rcx, rcx
je 0x1400016ed
cmp rcx, 0x1000
jb 0x1400016e5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001aac
mov rcx, rax
call fcn.1400020a0
test rax, rax
je 0x1400016de
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400016ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020a0
mov rdi, rax
mov qword [rbp + 0x1d8], rdi
mov qword [rbp + 0x1e8], r15
mov qword [rbp + 0x1f0], rsi
lea r8, [r15*2 + 2]
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x68]
cmp rax, 7
jbe 0x140001759
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001750
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001750
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400020dc
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000179e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001799
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001799
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020dc
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rsp + 0x40], xmm0
xor edx, edx
mov word [rsp + 0x30], dx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0xa
jb 0x140001ab8
lea rax, [rbp + 0x1d8]
cmp rsi, 7
cmova rax, rdi
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1c8], xmm1
lea r12, [r15 + 0xa]
lea r14, [rbp + 0x1b8]
cmp r12, 7
jbe 0x140001895
mov rbx, r12
or rbx, 7
movabs r8, 0x7fffffffffffffff
cmp rbx, rcx
jbe 0x14000185d
mov rbx, rcx
lea rcx, [r8 + r8]
cmp rcx, 0x1000
jb 0x140001881
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001aa6
mov rcx, rax
call fcn.1400020a0
test rax, rax
je 0x140001a13
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001889
cmp rbx, 0xa
mov ecx, 0xa
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, r8
ja 0x140001aa6
add rcx, rcx
jne 0x140001828
mov r14, rdx
jmp 0x14000188e
call fcn.1400020a0
mov r14, rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1b8], r14
mov qword [rbp + 0x1c8], r12
mov qword [rbp + 0x1d0], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, rax
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.Cheat.dll]
movups xmmword [rbx + r14], xmm0
mov eax, dword [0x1400044f8]
mov dword [rbx + r14 + 0x10], eax
xor ebx, ebx
mov word [r14 + r12*2], bx
lea rdx, [rbp + 0x1b8]
cmp qword [rbp + 0x1d0], 7
cmova rdx, qword [rbp + 0x1b8]
mov ecx, dword [rbp + 0x1b0]
call fcn.140001ac0
test eax, eax
jne 0x1400019cc
lea rdx, str.Failed_to_inject_DLL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ca0
lea rdx, [0x140001e80]
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 rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x1d0]
cmp rdx, 7
jbe 0x140001970
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000196b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a13
call fcn.1400020dc
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp + 0x1c8], xmm0
mov word [rbp + 0x1b8], bx
cmp rsi, 7
jbe 0x1400019c2
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400019ba
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a65
mov rcx, rdi
call fcn.1400020dc
mov eax, 1
jmp 0x140001a76
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x1d0]
cmp rdx, 7
jbe 0x140001a1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020dc
movdqa xmm0, xmmword [0x140004570]
movdqu xmmword [rbp + 0x1c8], xmm0
mov word [rbp + 0x1b8], bx
cmp rsi, 7
jbe 0x140001a74
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140001a6c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400020dc
xor eax, eax
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140002080
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001100
nop
call fcn.140001100
int3
call fcn.1400011a0
nop
call fcn.1400011a0
int3