Function at 0x140001dc0
Capabilities:
Acquire debug privileges
Create process on windows
Create thread
Inject dll
Inject thread
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r13, rdx
xor r12d, r12d
cmp ecx, 2
je 0x140001e2a
lea rdx, str.usage:_drop_dll_on_top_of_this_executable_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002600
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]
lea eax, [r12 + 1]
jmp 0x140001e90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x28]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r14d, 1
test eax, eax
je 0x140001e6d
lea r8, [rbp + 0x10]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x28]
test eax, eax
jne 0x140001ec0
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.140002600
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, r14d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400034c0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp], r14d
mov rax, qword [rbp + 0x10]
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10
lea r8, [rbp]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x28]
test eax, eax
je 0x140001e67
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140001f20
call fcn.140003314
mov qword [rbp], rsi
mov qword [rbp + 8], rbx
lea r8, [rbp]
mov edx, eax
lea rcx, [rbp + 0x38]
call fcn.1400016e0
nop
call fcn.140003314
lea rcx, str.Growtopia.exe
mov qword [rbp], rcx
mov qword [rbp + 8], 0xd
lea r8, [rbp]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400016e0
nop
call fcn.140003314
lea rbx, str.Growtopia
mov qword [rbp], rbx
mov qword [rbp + 8], 9
lea r8, [rbp]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400016e0
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.140001c10
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140001c10
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140002000
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ffb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003524
movdqa xmm0, xmmword [0x140005970]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r12w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140002057
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002052
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002052
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003524
movdqa xmm0, xmmword [0x140005970]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x1400020af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003524
movdqa xmm0, xmmword [0x140005970]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r12w
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rax, qword [rbp + 0x18]
mov qword [rbp], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 8], rax
call fcn.140003314
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp], xmm0
lea r8, [rbp]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140003130
lea rcx, [rbp - 0x50]
mov r8, qword [rbp - 0x50]
mov r9, qword [rbp - 0x38]
cmp r9, 0xf
cmova rcx, r8
lea rdx, [rbp + 0xd0]
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140002120
cmp r9, 0xf
jbe 0x140002168
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140002160
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002160
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140003524
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400021eb
lea rdx, str.failed_to_start_growtopia.exe_n
jmp 0x1400023da
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x140002216
lea rdx, str.failed_to_find_growtopia_window_n
jmp 0x1400023da
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, r12d
mov r8d, dword [rbp - 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400022e3
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400022a4
lea rdx, str.failed_to_get_module_handle_for_ntdll.dll_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002600
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 rbx, qword [r13 + 8]
nop dword [rax]
lea rdi, [rdi + 1]
cmp byte [rbx + rdi], 0
jne 0x140002280
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400022f3
lea rdx, str.failed_to_load_dll_n
jmp 0x1400023da
lea rdx, str.NtSetInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x10], 2
mov r9d, 8
lea r8, [rbp + 0x10]
lea edx, [r9 + 0x2c]
mov rcx, r15
call rax
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, r12d
test ebx, ebx
sete sil
test esi, esi
jne 0x140002275
lea rdx, str.failed_to_disable_BlockDynamicCode_mitigation_policy_n
jmp 0x1400023da
mov r8d, dword [rbp - 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140002325
lea rdx, str.failed_to_get_module_handle_for_ntdll.dll_n
jmp 0x1400023da
lea rdx, str.NtProtectVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002346
lea rdx, str.failed_to_get_address_of_nt_protect_virtual_memory_n
jmp 0x1400023da
mov dword [rbp - 8], 0xb8d18b4c
mov byte [rbp - 4], 0x50
mov qword [rsp + 0x20], r12
mov r9d, 5
lea r8, [rbp - 8]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002379
lea rdx, str.failed_to_restore_nt_protect_virtual_memory_original_bytes_n
jmp 0x1400023da
lea r15, [rdi + 1]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, r15
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x1400023aa
lea rdx, str.failed_to_allocate_memory_in_remote_process_n
jmp 0x1400023da
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400023f5
lea rdx, str.failed_to_get_module_handle_for_kernel32.dll_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002600
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]
jmp 0x14000246f
lea rdx, [0x140005880]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140002444
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, r12d
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1400024b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003524
movdqa xmm0, xmmword [0x140005970]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
mov rdx, qword [rbp + 0x50]
cmp rdx, 7
jbe 0x140001e8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002506
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002506
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003524
jmp 0x140001e8d