Function at 0x140001060
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
movsxd r15, r8d
mov rdi, rdx
mov r8d, ecx
mov qword [rsp + 0x50], r9
mov r14d, ecx
xor edx, edx
mov ecx, 0x1fffff
mov r12, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rsi, rax
lea r13d, [rbx + 2]
test rax, rax
jne 0x1400011fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400011ba
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, rax
lea edx, [rsi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140001128
mov ecx, r13d
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1400011db
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, rax
lea edx, [rsi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1400011db
lea r8, [rsp + 0x48]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400011db
mov rax, qword [rsp + 0x48]
lea r8, [rbp + 0x4d0]
mov rcx, qword [rsp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rbp + 0x4d4], rax
mov dword [rbp + 0x4d0], 1
mov dword [rbp + 0x4dc], r13d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x1400011db
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x1400011fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_process
lea rcx, str._s__error_code___d__n
call fcn.140001700
jmp 0x140001526
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Not_enough_privileges
lea rcx, str._s__error_code___d__n
call fcn.140001700
jmp 0x140001526
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14000122c
cmp dword [rsp + 0x40], 0
je 0x14000122c
lea rcx, str.Cannot_attach_64_bit_process_to_32_bit_JVM_n
call fcn.140001700
jmp 0x14000151d
lea rbx, [fcn.140001950]
mov dword [rsp + 0x20], 0x40
lea r14, [0x1400018b0]
mov r9d, 0x1000
sub rbx, r14
xor edx, edx
mov r8, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001501
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, r14
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, dword [0x1400183e0]
movups xmm0, xmmword [str._JVM_EnqueueOperation]
mov qword [rsp + 0x60], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rcx
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x60], eax
sub rcx, rdi
movzx eax, word [0x1400183e4]
mov dword [rsp + 0x70], 0x6d766a
movaps xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x5c], ax
nop dword [rax + rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x1400012d0
mov byte [rbp + 0x3c0], al
mov r9d, 4
mov byte [rbp + 0x2bc], al
mov byte [rbp + 0x1b8], al
mov byte [rbp + 0xb4], al
cmp r15d, r13d
jl 0x140001326
mov rdx, qword [r12]
lea r8, str.jcmd
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140001326
cmp rcx, 5
jne 0x140001310
jmp 0x140001330
cmp r15d, r9d
mov r13d, r15d
cmovge r13d, r9d
xor edi, edi
xor r14d, r14d
test r15, r15
jle 0x1400013d3
mov rsi, qword [rsp + 0x50]
xor ebx, ebx
movsxd r12, r13d
cmp rbx, r12
jge 0x14000137b
mov r9, qword [rsi + rbx*8]
lea r8, [0x1400183f0]
mov eax, r14d
mov edx, 0x104
imul rcx, rax, 0x104
lea rax, [rbp + 0xb4]
add rcx, rax
call fcn.140001960
movsxd rdi, eax
jmp 0x1400013bd
cmp rdi, 0x104
jae 0x1400013bd
mov r9, qword [rsi + rbx*8]
lea eax, [r13 - 1]
movsxd rcx, eax
lea r8, [0x1400183f4]
imul rax, rcx, 0x104
mov edx, 0x104
lea rcx, [rbp + 0xb4]
add rax, rdi
sub rdx, rdi
add rcx, rax
call fcn.140001960
movsxd rcx, eax
add rdi, rcx
inc r14d
inc rbx
cmp rbx, r15
jl 0x140001348
mov rsi, qword [rsp + 0x48]
mov r9d, 4
mov dword [rsp + 0x20], r9d
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x568
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140001501
mov r9d, 0x568
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov r9, r14
mov dword [rsp + 0x28], 0
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x140001470
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_create_remote_thread
lea rcx, str._s__error_code___d__n
call fcn.140001700
xor r15d, r15d
jmp 0x1400014c9
lea rcx, str.Connected_to_remote_process_n
call fcn.140001700
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400014ba
lea rdx, str.Attach_is_not_supported_by_the_target_process
lea rcx, str._s__error_code___d__n
call fcn.140001700
xor r15d, r15d
jmp 0x1400014c0
mov r15d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
jmp 0x140001528
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_allocate_memory_in_target_process
lea rcx, str._s__error_code___d__n
call fcn.140001700
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140001db0
mov rbx, qword [rsp + 0x638]
add rsp, 0x5f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret