Function at 0x140002769
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 0x1400027cd
lea rax, str._ntdll.dll_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.140003880
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call fcn.140003a68
jmp 0x140002aef
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 0x140002877
cmp qword [rbp - 0x18], 0
je 0x140002877
cmp qword [rbp - 0x20], 0
je 0x140002877
cmp qword [rbp - 0x28], 0
je 0x140002877
cmp qword [rbp - 0x30], 0
jne 0x1400028a7
lea rax, [0x140011198]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.140003880
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call fcn.140003a68
jmp 0x140002aef
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp + 0x20]
call fcn.14000c9a0
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 0x140002938
lea rax, str.NtAllocateVirtualMemory_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.140003880
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call fcn.140003a60
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call fcn.140003a68
jmp 0x140002aef
mov rcx, qword [rbp + 0x20]
call fcn.14000c9a0
mov rbx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14000c970
mov rdx, rax
mov rax, qword [rbp - 0x40]
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_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 0x1400029f7
lea rax, str.NtProtectVirtualMemory_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.140003880
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call fcn.140003a60
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call fcn.140003a68
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 0x140002aef
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 0x140002a90
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 0x140002ac8
lea rax, str.NtCreateThreadEx_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.140003880
mov rcx, rax
mov eax, dword [rbp - 0x34]
mov edx, eax
call fcn.140003a60
mov rcx, rax
mov rax, qword [0x140011ba0]
mov rdx, rax
call fcn.140003a68
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