Function at 0x140001000
Capabilities:
Acquire debug privileges
Create process on windows
Create thread
Get common file path
Inject dll
Inject thread

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rsi, rdx
cmp ecx, 2
je 0x140001055
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.usage:_drop_dll_on_top_of_this_executable_n
call fcn.1400014d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
jmp 0x140001361
mov qword [rsp + 0x230], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000109c
lea r8, [rbp - 0x80]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x1400010c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.failed_to_enable_debug_privilege_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400014d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
jmp 0x140001359
mov rax, qword [rbp - 0x80]
lea r8, [rbp - 0x78]
xor r15d, r15d
mov dword [rbp - 0x78], 1
mov qword [rsp + 0x28], r15
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], r15
mov qword [rbp - 0x74], rax
mov dword [rbp - 0x6c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140001096
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rcx, [rbp + 0x10]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140001130
movups xmm0, xmmword [str.GrowtopiaGrowtopia.exe]
movzx eax, byte [0x140003410]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x140003408]
movsd qword [rcx + 0x10], xmm0
xorps xmm0, xmm0
mov byte [rcx + 0x18], al
xor eax, eax
mov qword [rbp], rax
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
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
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400011cf
lea rdx, str.failed_to_start_growtopia.exe_n
jmp 0x1400010a3
mov rcx, qword [rsp + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.USER32.dll_WaitForInputIdle]
lea rdx, str.Growtopia
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400011ff
lea rdx, str.failed_to_find_growtopia_window_n
jmp 0x1400010a3
mov qword [rsp + 0x250], rbx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x260], rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000142f
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtSetInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 8
mov qword [rbp - 0x80], 2
lea r8, [rbp - 0x80]
mov edx, 0x34
mov rcx, rdi
call rax
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000142f
mov rbx, qword [rsi + 8]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rbx + rsi], r15b
jne 0x140001292
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400012b5
lea rdx, str.failed_to_load_dll_n
jmp 0x140001436
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
mov qword [rsp + 0x268], r14
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.ntdll.dll
mov dword [rsp + 0x78], 0xb8d18b4c
mov r14, rax
mov byte [rsp + 0x7c], 0x50
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 5
mov qword [rsp + 0x20], r15
mov rdx, rax
lea r8, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000137a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_restore_NtProtectVirtualMemory_original_bytes_n
call fcn.1400014d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
mov r14, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x250]
mov r15, qword [rsp + 0x230]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400016c0
add rsp, 0x238
pop rsi
pop rbp
ret
inc rsi
mov dword [rsp + 0x20], 4
mov r8, rsi
mov r9d, 0x1000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rsi
mov qword [rsp + 0x20], r15
mov rdx, rax
mov r8, rbx
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140003518]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r15d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001341
lea rdx, str.failed_to_disable_BlockDynamicCode_mitigation_policy_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400014d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
jmp 0x140001349