Function at 0x140002bc0
Capabilities:
Check if file exists
Create process on windows
Create thread
Extract resource via kernel32 functions
Get common file path
Inject dll
Inject thread
Query or enumerate registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x930]
sub rsp, 0xa30
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rbp + 0x920], rax
mov r13d, edx
mov r12, rcx
mov qword [0x14007ac20], rcx
lea rcx, [0x14006ccc0]
call fcn.14003a618
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [0x140077e00]
mov r8, r15
lea rdx, str._sReleasephysx27_64GameApp.exe
lea r14, [0x14007ac30]
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140002cbd
mov dword [rbp + 0x100], 0x104
lea rax, [rbp + 0x100]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
xor esi, esi
mov qword [rsp + 0x20], rsi
mov r9d, 0x20000002
lea r8, str.PathRoot
lea rdx, str.SOFTWARETencentQQ
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140002c9c
mov r8, r15
lea rdx, str._sReleasephysx27_64GameApp.exe
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x14007aef0]
lea rdx, [0x14006cd78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400033c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, socket
lea rdx, [0x14006cdb0]
lea rcx, [rsp + 0x60]
call fcn.140005ae0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x10]
call fcn.14005d600
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.140004880
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rbp + rcx]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp]
call fcn.1400045b0
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x14], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0xa0]
call fcn.1400106d8
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140002db3
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033f8
call fcn.14000f370
xor esi, esi
test ebx, ebx
je 0x140002f07
lea rdx, str..__myHookConnect_64.dll
lea rcx, [rsp + 0x60]
call fcn.140004b30
mov rdi, qword [0x14007ac20]
lea r8, [0x14006cb28]
mov edx, 0x8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140002eb3
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140002eb3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140002eac
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x140002ea3
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x140002ea3
mov dword [rbp + 0x100], 0xffffffff
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x100]
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea r15, [0x140077e00]
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140002ef5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ef0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033f2
call fcn.14000f370
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r14, [0x14007ac30]
mov r8, r15
lea rdx, str._sLoaderLoaderBG.bmp
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
mov dword [rsp + 0x28], 0x2010
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [0x14007ae40], rax
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [0x14007aee8], rax
mov rdx, qword [0x14007ae40]
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x108], xmm0
xor r9d, r9d
lea r8, [rbp + 0x108]
xor edx, edx
mov ecx, gethostbyname
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [rbp + 0x110]
add eax, 0xfffffed4
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [rbp + 0x114]
add eax, 0xffffff38
cdq
sub eax, edx
sar eax, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0xc8
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, 0x80000000
lea r8, [0x14007aef0]
lea rdx, str.QQSpeed
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
test rax, rax
je 0x1400033c6
mov edx, r13d
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.RunSpeedGameEvent__d
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0x120]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14007ae38], rax
test rax, rax
jne 0x14000305e
lea rdx, [0x14006ce58]
jmp 0x1400033a7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x14006ce68]
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x80], WSAStartup
mov dword [rbp - 0x7c], 0x40
mov qword [rbp - 0x78], rsi
lea rax, str.runas
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r14
lea rax, [rbp + 0x120]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x50], 0xa
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400033a0
mov rbx, qword [rbp - 0x18]
mov qword [0x14007aee0], rbx
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x14000312a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14006cb30]
call fcn.140001d00
jmp 0x140003206
mov qword [rsp + 0x20], rsi
mov r9d, 0x28
lea r8, str.myHookConnect_64.dll
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003165
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14006cb50]
call fcn.140001d00
jmp 0x1400031f1
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14006cb70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000319d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14006cba0]
call fcn.140001d00
jmp 0x1400031f1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r15, rax
test rax, rax
jne 0x1400031da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14006cbd8]
call fcn.140001d00
jmp 0x1400031f1
mov edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.KartMap_Shared__d
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rbp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa17
xor r9d, r9d
xor edx, edx
mov rbx, 0xffffffffffffffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x14007ae58], rax
test rax, rax
jne 0x140003276
xor r8d, r8d
lea rdx, [0x14006cee8]
jmp 0x1400033ae
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x14007ac28], rax
test rax, rax
jne 0x1400032b7
mov rcx, qword [0x14007ae58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
lea rdx, [0x14006cf10]
jmp 0x1400033ae
mov rcx, rdi
call fcn.140009370
mov ecx, dword [0x14007ae48]
test ecx, ecx
jne 0x1400032fa
mov rcx, qword [0x14007aee0]
test rcx, rcx
je 0x1400033bd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14007aee0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14007aee0], rsi
jmp 0x1400033bd
mov rax, qword [0x14007ac28]
mov qword [rax], rdi
mov dword [rax + 8], ecx
mov dword [rax + 0x34], 1
xor r9d, r9d
mov r8d, 5
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x140003347
mov r9, qword [0x14007ac28]
lea rcx, [r9 + 0x38]
mov r9d, dword [r9 + 8]
lea r8, [rbp - 0x10]
lea rdx, str._sQQ
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [0x14007ac28]
mov dword [rcx + 0x13c], esi
movups xmm0, xmmword [0x14007afb8]
movups xmmword [rcx + 0x1c0], xmm0
add rcx, 0x1d4
lea rdx, [0x14007ae60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140003376
mov rcx, qword [0x14007ac28]
mov dword [rcx + 0x1d0], ebx
mov rcx, qword [0x14007ae38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x1400033c8
lea rdx, [0x14006ceb0]
lea r8, [0x14007aef0]
mov r9d, reloc.WS2_32.dll_recv
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov rcx, qword [rbp + 0x920]
xor rcx, rsp
call fcn.14000f0b0
mov rbx, qword [rsp + 0xa80]
add rsp, 0xa30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14003ff20
int3
call fcn.14003ff20
int3