Function at 0x140002807
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 rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000286b
lea rax, str._ntdll.dll_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.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 rax, qword [0x140011ba0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140002b8d
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 0x140002915
cmp qword [rbp - 0x18], 0
je 0x140002915
cmp qword [rbp - 0x20], 0
je 0x140002915
cmp qword [rbp - 0x28], 0
je 0x140002915
cmp qword [rbp - 0x30], 0
jne 0x140002945
lea rax, [0x140011198]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.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 rax, qword [0x140011ba0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140002b8d
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 0x1400029d6
lea rax, str.NtAllocateVirtualMemory_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.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 sym.std::ostream::operator___long_
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140002b8d
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 0x140002a95
lea rax, str.NtProtectVirtualMemory_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.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 sym.std::ostream::operator___long_
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call sym.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 0x140002b8d
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 0x140002b2e
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 0x140002b66
lea rax, str.NtCreateThreadEx_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.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 sym.std::ostream::operator___long_
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call sym.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