Function at 0x140002553
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xc0
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x20], rcx
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400025ab
lea rdx, str._ntdll.dll_
mov rcx, qword [0x1400dcdb0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x1400028a9
mov rax, qword [rbp - 8]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtCreateThreadEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtWaitForSingleObject
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtFreeVirtualMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x10], 0
je 0x140002655
cmp qword [rbp - 0x18], 0
je 0x140002655
cmp qword [rbp - 0x20], 0
je 0x140002655
cmp qword [rbp - 0x28], 0
je 0x140002655
cmp qword [rbp - 0x30], 0
jne 0x14000267c
lea rdx, [0x1400d7120]
mov rcx, qword [0x1400dcdb0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x1400028a9
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp + 0x20]
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov qword [rbp - 0x48], rax
mov rbx, qword [rbp - 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
mov r9, rdx
mov r8d, 0
mov rdx, rax
call rbx
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
je 0x140002704
lea rdx, str.NtAllocateVirtualMemory_:
mov rcx, qword [0x1400dcdb0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call method.std::ostream.operator___long_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x1400028a9
mov rcx, qword [rbp + 0x20]
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov rbx, rax
mov rcx, qword [rbp + 0x20]
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data___const
mov rdx, rax
mov rax, qword [rbp - 0x40]
mov r8, rbx
mov rcx, rax
call sym.memcpy
mov rbx, qword [rbp - 0x18]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea r8, [rbp - 0x48]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x4c]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20
mov rdx, rax
call rbx
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
je 0x1400027ba
lea rdx, str.NtProtectVirtualMemory_:
mov rcx, qword [0x1400dcdb0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call method.std::ostream.operator___long_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rbx, qword [rbp - 0x30]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x40]
mov r9d, 0x8000
mov r8, rdx
mov rdx, rax
call rbx
jmp 0x1400028a9
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x40]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rdx, rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
mov r9, rdx
mov r8d, 0
mov edx, 0x1f03ff
mov rcx, rax
call rbx
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jne 0x140002853
mov r9, qword [rbp - 0x28]
mov rax, qword [rbp - 0x58]
mov r8d, 0
mov edx, 0
mov rcx, rax
call r9
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140002882
lea rdx, str.NtCreateThreadEx_:
mov rcx, qword [0x1400dcdb0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call method.std::ostream.operator___long_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rbx, qword [rbp - 0x30]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x40]
mov r9d, 0x8000
mov r8, rdx
mov rdx, rax
call rbx
nop
add rsp, 0xc0
pop rbx
pop rsi
pop rbp
ret