Function at 0x140001ac0
Capabilities:
Acquire debug privileges
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor esi, esi
mov dword [rsp + 0x50], esi
movdqa xmm0, xmmword [0x140006bf0]
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x2e616970
mov dword [rbp - 0x3c], 0x2e2e2e2e
mov byte [rbp - 0x38], sil
lea rdx, [rbp - 0x4f]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004270
lea rdx, [0x140004450]
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]
lea rcx, str.EnableDebugPrivilege
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x70]
lea edx, [rsi + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001b6b
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, [rbp - 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140001bce
mov dword [rbp - 0x50], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x4c], rax
mov dword [rbp - 0x44], 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x10
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140001bce
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
jmp 0x140001be4
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._____Failed_to_change_debug_privilege___n
call fcn.140001020
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x64], xmm0
movups xmmword [rbp + 0x74], xmm0
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
mov dword [rbp + 0xc4], eax
mov dword [rbp + 0x60], 0x68
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140001580
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
lea rcx, [rbp - 0x20]
call fcn.140003480
nop
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140001c6b
mov r8, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.140003c60
mov dword [rsp + 0x50], 2
mov ebx, 2
and ebx, 0xfffffffd
mov dword [rsp + 0x50], ebx
or ebx, 1
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x20]
call fcn.140003380
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
sete dil
and ebx, 0xfffffffe
mov dword [rsp + 0x50], ebx
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140001d2f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004cd4
movdqa xmm0, xmmword [0x140006bc0]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001d85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004cd4
movdqa xmm0, xmmword [0x140006bb0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
test dil, dil
je 0x140001dbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._____Failed_to_create_process__Error:__d__n
call fcn.140001020
mov eax, 1
jmp 0x1400020d7
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
movdqa xmm0, xmmword [0x140006be0]
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x140006c00]
movdqu xmmword [rsp + 0x68], xmm1
movdqa xmm0, xmmword [str.lly._Process_ID:1Child_process_c0Starting_growtoreated_successfu_]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rbp - 0x78], 0
lea rdx, [rsp + 0x59]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004270
mov edx, dword [rbp - 0x58]
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___unsigned_long_int____ptr64]
lea rdx, [0x140004450]
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 edi, esi
mov r8d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001ea3
lea rcx, [0x140006720]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtSetInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x30], 2
mov r9d, 8
lea r8, [rbp - 0x30]
lea edx, [r9 + 0x2c]
mov rcx, rbx
call rax
test eax, eax
jne 0x140001e8a
lea edi, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001eaf
mov edx, eax
lea rcx, str._____NtSetInformationProcess_failed._ret_value:_d__n
call fcn.140001020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001eaf
lea rcx, str._____Failed_to_open_target_process_n
call fcn.140001020
lea rax, str._____Failed_:___n
lea rcx, str._____Success___n
test edi, edi
cmove rcx, rax
call fcn.140001020
mov r8d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov dword [rbp - 0x70], 0xb8d18b4c
mov byte [rbp - 0x6c], 0x50
lea rcx, [0x140006720]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rsi
mov r9d, 5
lea r8, [rbp - 0x70]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001f47
lea rdx, str.failed_to_restore_NtProtectVirtualMemory_original_bytes_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004270
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]
xor al, al
jmp 0x140001f49
mov al, 1
lea rdx, str._____Failed_restore_:___n
lea rcx, str._____Success_restore___n
test al, al
cmove rcx, rdx
call fcn.140001020
mov r14, qword [rbp - 0x68]
lea rcx, str.Inject
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
lea r8, [0x140006924]
mov edx, 0x66
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14000204a
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14000204a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xd0]
call fcn.140002d30
nop
cmp qword [rbp + 0x158], 0
je 0x140002034
mov r8d, edi
mov rdx, rsi
lea rcx, [rbp + 0xd0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xd8]
call fcn.140003bb0
test rax, rax
jne 0x140002034
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
lea rcx, [rbp + 0xd0]
call fcn.1400019e0
lea rdx, [rbp + 0x1e0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r8, [0x140006934]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, str.Growpai.dll
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
lea rdx, [rbp + 0x1e0]
mov rcx, r14
call fcn.140001810
test eax, eax
setne al
lea rdx, str._____Failed_Inject_:___n
lea rcx, str._____Success_Inject___n
test al, al
cmove rcx, rdx
call fcn.140001020
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140004c70
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret