Function at 0x140001040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
sub rsp, 0x3c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140005710], rax
test rax, rax
je 0x140001202
mov qword [rsp + 0x3d0], rbx
mov ecx, 0x989680
mov qword [rsp + 0x3d8], rbp
mov qword [rsp + 0x3e0], rsi
mov qword [rsp + 0x3e8], rdi
mov qword [rsp + 0x3c0], r12
mov qword [rsp + 0x3b8], r14
mov qword [rsp + 0x3b0], r15
call fcn.140001880
xor r12d, r12d
mov ecx, 0xf4240
mov qword [rsp + 0x180], r12
mov rdi, rax
mov qword [rsp + 0x170], r12
call fcn.140001880
mov ecx, 0x186a0
mov rsi, rax
call fcn.140001880
mov rcx, qword [0x140005710]
lea rdx, str.LdrQueryProcessModuleInformation
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rsp + 0x170]
xor edx, edx
xor ecx, ecx
call rax
mov rcx, qword [rsp + 0x170]
call fcn.140001880
mov rcx, qword [0x140005710]
lea rdx, str.LdrQueryProcessModuleInformation
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x170]
xor r8d, r8d
mov rcx, rbx
call rax
test eax, eax
jne 0x140001185
mov r9d, dword [rbx]
mov r8d, r12d
test r9d, r9d
je 0x140001185
lea rdx, [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
lea rcx, [main]
sub rcx, qword [rdx - 8]
cmp rcx, rax
jb 0x14000121c
inc r8d
add rdx, 0x128
cmp r8d, r9d
jb 0x140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.An_error_occurred:
mov ebx, eax
call fcn.140001670
mov rcx, rax
lea rdx, section..text
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140003578]
call fcn.140001670
mov r14, qword [rsp + 0x3b8]
mov r12, qword [rsp + 0x3c0]
mov rdi, qword [rsp + 0x3e8]
mov rsi, qword [rsp + 0x3e0]
mov rbp, qword [rsp + 0x3d8]
mov rbx, qword [rsp + 0x3d0]
mov r15, qword [rsp + 0x3b0]
xor eax, eax
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140001860
add rsp, 0x3c8
ret
movsxd rax, r8d
lea rcx, [rsp + 0x40]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001240
movups xmm0, xmmword [rax]
mov r8d, 0x104
lea rdx, [rsp + 0x190]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [0x140005710]
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov r8d, 0x989680
mov rdx, rdi
mov ecx, 5
call rax
test eax, eax
jne 0x140001185
lea rbx, str.RobloxPlayerBeta.exe
mov r8, rdi
cmp dword [rdi], r12d
je 0x14000133b
nop dword [rax]
mov rdx, qword [r8 + 0x40]
test rdx, rdx
je 0x140001330
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbx + rax*2 + 2]
jne 0x140001330
add rax, 2
cmp rax, 0x15
je 0x14000136b
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbx + rax*2]
je 0x140001310
mov eax, dword [r8]
add r8, rax
cmp dword [r8], r12d
jne 0x140001300
mov rcx, qword [0x140005710]
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov r8d, 0x989680
mov rdx, rdi
mov ecx, 5
call rax
test eax, eax
je 0x1400012f5
jmp 0x140001185
mov r8d, dword [r8 + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [0x140005710]
lea rdx, str.NtQueryInformationProcess
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0xf4240
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 0x33
mov rcx, r14
call rax
mov edi, r12d
cmp qword [rsi], rdi
jbe 0x140001185
mov rbx, r12
lea r15, str.IoCompletion
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r12d
lea rdx, [rbx + rbx*4]
mov rdx, qword [rsi + rdx*8 + 0x10]
lea r9, [rsp + 0x178]
mov r8, rax
mov dword [rsp + 0x28], r12d
mov rcx, r14
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [0x140005710]
lea rdx, str.NtQueryObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x178]
mov r9d, 0x186a0
mov r8, rbp
mov qword [rsp + 0x20], r12
mov edx, 2
call rax
mov rdx, qword [rbp + 8]
mov rcx, 0xffffffffffffffff
movzx eax, word [r15 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140001454
add rcx, 2
cmp rcx, 0xd
je 0x140001474
movzx eax, word [r15 + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140001432
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov ebx, edi
cmp rbx, qword [rsi]
jb 0x1400013c1
jmp 0x140001185
mov r15, qword [rsp + 0x178]
mov edi, dword [rsp + 0x58]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, qword [0x140005710]
mov qword [rsp + 0x170], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x170]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x180]
mov rcx, r14
call rax
mov rsi, qword [rsp + 0x50]
mov ebx, r12d
test edi, edi
je 0x1400014ff
mov rdx, qword [rsp + 0x180]
mov r9d, 0x1000
mov ecx, ebx
add rdx, rcx
mov qword [rsp + 0x20], r12
lea r8, [rcx + rsi]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add ebx, 0x1000
cmp ebx, edi
jb 0x1400014d0
mov rcx, qword [rsp + 0x180]
lea rax, [0x140001020]
sub rcx, rsi
xor r8d, r8d
add rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x1d8
mov rcx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x1d8
mov qword [rsp + 0x20], r12
mov rdx, rax
mov r8, rbp
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x48
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea r8, [rbp + 0x188]
mov qword [rsp + 0x20], r12
mov rdx, rax
mov r9d, 0x48
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r9, str.PoolPartyEvent
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [0x140005710]
lea rdx, str.ZwAssociateWaitCompletionPacket
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x170]
mov r9, rdi
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400011ca