Function at 0x140002780
Capabilities:
Allocate or change rwx memory
Enumerate process modules
Enumerate threads
Execute shellcode via indirect call
Log keystrokes via polling
Set console window title
Suspend thread

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 - 0x220]
sub rsp, 0x320
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x210], rax
lea rcx, str.Tower_of_Fantasy__Game_Manager___Injector
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 9
lea rdx, str.ToFGM.dll
lea rcx, [rsp + 0x48]
call fcn.140002df0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1e8]
call fcn.140002330
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140002840
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000283b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000283b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004844
cmp qword [rbp + 0x1f8], 0
jne 0x140002862
lea rdx, str.Failed_to_get_DLL_path.
mov ebx, 1
mov ecx, ebx
call fcn.140003c30
jmp 0x140002d32
lea rdx, str.Waiting_for_QRSL.exe
mov ecx, 2
call fcn.140003c30
lea r8, [rbp + 0x1e8]
cmp qword [rbp + 0x200], 0xf
cmova r8, qword [rbp + 0x1e8]
lea rdx, str.Manual_Inject:__s
mov ecx, 2
call fcn.140003c30
mov byte [rsp + 0x30], 0
mov r13, qword [rsp + 0x68]
xor esi, esi
mov edi, 1
xor edx, edx
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
test rax, rax
jne 0x140002902
mov byte [rsp + 0x30], al
mov qword [rsp + 0x38], 0x3e8
lea rdx, str.Game_not_found_
mov ecx, 4
call fcn.140003c30
lea rcx, [rsp + 0x38]
call fcn.1400040d0
xor edx, edx
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
test rax, rax
je 0x1400028d0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14000291e
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140002941
lea rdx, str.Unable_to_get_process_id_
mov ecx, edi
call fcn.140003c30
mov qword [rsp + 0x38], 0x3e8
lea rcx, [rsp + 0x38]
call fcn.1400040d0
jmp 0x140002902
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140002968
mov rbx, rsi
jmp 0x14000297b
lea rdx, str.LdrInitializeThunk
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 6
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rsi
mov r9d, 6
lea r8, [0x1400067a4]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x1e0]
mov r8d, 6
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400029f9
mov rbx, rsi
jmp 0x140002a0c
lea rdx, str.NtQueryAttributesFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rax, [rbp + 0x1e4]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rsi
mov r9d, 8
lea r8, [0x1400067c8]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp + 0x1e4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x1e4]
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r15d, dword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov r8d, 0xb
lea rdx, str.QRSL_es.dll
lea rcx, [rsp + 0x48]
call fcn.140002df0
xor edx, edx
mov r8d, 0x238
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov edx, r15d
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32Next]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
test eax, eax
je 0x140002b52
mov rbx, qword [rsp + 0x58]
cmp dword [rbp - 0x58], r15d
jne 0x140002b3b
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002b10
lea rcx, [rsp + 0x48]
cmp rsi, 0xf
cmova rcx, rdi
cmp rbx, rax
jne 0x140002b3b
mov r8, rbx
lea rdx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140002b4e
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140002af7
jmp 0x140002b52
mov r13, qword [rbp - 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xf
jbe 0x140002b92
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002b8a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d18
mov rcx, rdi
call fcn.140004844
test r13, r13
je 0x140002d1f
mov r14d, dword [rsp + 0x40]
test r14d, r14d
je 0x140002cb3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov dword [rsp + 0x48], 0x1c
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x140002caa
nop dword [rax + rax]
cmp dword [rsp + 0x54], r14d
jne 0x140002c94
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140002cb3
lea rdx, str.NtQueryInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140002cb3
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x68]
mov edx, 9
mov rcx, rdi
call rbx
mov r9d, 0x30
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140002c94
cmp qword [rsp + 0x78], r13
je 0x140002ccb
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140002c00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0x14
lea rcx, [rsp + 0x38]
call fcn.1400040d0
jmp 0x1400028a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x30], 0
jne 0x140002cf8
lea rdx, [rbp + 0x1e8]
mov rcx, r12
call fcn.1400039f0
mov byte [rsp + 0x30], 1
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140002cb3
lea rdx, [rbp + 0x1e8]
mov rcx, r12
call fcn.1400039f0
jmp 0x140002cb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.QRSL_es.dll_not_found_
mov ecx, 1
call fcn.140003c30
xor ebx, ebx
mov rdx, qword [rbp + 0x200]
cmp rdx, 0xf
jbe 0x140002d76
inc rdx
mov rcx, qword [rbp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004844
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400047e0
lea r11, [rsp + 0x320]
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