Function at 0x140003300
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread
Terminate process

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x18a8]
mov eax, 0x19a8
call fcn.140030e50
sub rsp, rax
mov rax, qword [0x1400592c0]
xor rax, rsp
mov qword [rbp + 0x1880], rax
mov r15, rdx
xorps xmm0, xmm0
xor eax, eax
lea rdx, [rbp + 0x460]
mov r8d, 0x208
mov qword [rsp + 0x70], rax
xor ecx, ecx
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400037a0
xor edx, edx
mov qword [rsp + 0x19c0], rbx
mov r8d, 0x1208
lea rcx, [rbp + 0x670]
call fcn.14003fbe0
lea rcx, [rbp + 0x460]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140003383
lea rbx, [rax + rax]
mov r8, rbx
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x670]
call fcn.14003f540
mov eax, 0x20
mov word [rbp + rbx + 0x670], ax
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
je 0x1400033ce
mov eax, 0xfffffffe
jmp 0x140003607
lea rax, [rbp + 0x670]
mov qword [rsp + 0x19d0], rsi
xor esi, esi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov r8d, 0x1fffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateUserProcess]
test eax, eax
je 0x14000341e
mov eax, 0xfffffffd
jmp 0x1400035ff
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x4d0
call fcn.14003fbe0
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x140003463
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffc
jmp 0x1400035ff
mov qword [rsp + 0x19d8], rdi
lea r9, [rbp + 0x450]
movsxd rdi, dword [r15 + 0x3c]
lea rdx, [rsp + 0x58]
add rdi, r15
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov qword [rsp + 0x19a0], r12
mov dword [rsp + 0x20], 0x3000
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x58], rax
mov eax, dword [rdi + 0x50]
mov qword [rbp + 0x450], rax
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
je 0x1400034bd
mov qword [rsp + 0x78], rsi
jmp 0x1400034cc
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x78], r12
test r12, r12
jne 0x1400034e6
mov rcx, qword [rsp + 0x60]
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffb
jmp 0x1400035ef
mov r9d, dword [rdi + 0x54]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x1998], r13
mov r8, r15
mov r13, qword [rsp + 0x60]
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x1990], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jne 0x140003786
mov eax, dword [rdi + 0x54]
cmp dword [rsp + 0x58], eax
jne 0x140003786
mov rbx, rsi
cmp si, word [rdi + 6]
jae 0x1400035a3
nop word [rax + rax]
movsxd r14, dword [r15 + 0x3c]
lea rax, [rsp + 0x58]
add r14, rsi
mov qword [rsp + 0x20], rax
add r14, r15
mov rcx, r13
mov r8d, dword [r14 + 0x11c]
mov edx, dword [r14 + 0x114]
add r8, r15
mov r9d, dword [r14 + 0x118]
add rdx, r12
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jne 0x140003786
mov eax, dword [r14 + 0x118]
cmp dword [rsp + 0x58], eax
jne 0x140003786
movzx eax, word [rdi + 6]
inc rbx
add rsi, 0x28
cmp rbx, rax
jb 0x140003540
xor esi, esi
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003629
mov rcx, qword [rsp + 0x60]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff8
mov r13, qword [rsp + 0x1998]
mov r14, qword [rsp + 0x1990]
mov rdi, qword [rsp + 0x19d8]
mov r12, qword [rsp + 0x19a0]
mov rsi, qword [rsp + 0x19d0]
mov rbx, qword [rsp + 0x19c0]
mov rcx, qword [rbp + 0x1880]
xor rcx, rsp
call fcn.140030440
add rsp, 0x19a8
pop r15
pop rbp
ret
mov eax, dword [rdi + 0x28]
lea rdx, [rbp - 0x80]
mov rbx, qword [rsp + 0x68]
add rax, qword [rsp + 0x78]
mov rcx, rbx
mov qword [rbp], rax
call qword [sym.imp.ntdll.dll_NtSetContextThread]
test eax, eax
jne 0x14000376c
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtResumeThread]
test eax, eax
jne 0x14000376c
cmp byte [rsp + 0x50], al
je 0x14000376c
mov rdi, qword [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rbx, rax
test rax, rax
je 0x140003752
xorps xmm0, xmm0
mov dword [rbp + 0x460], esi
xor eax, eax
lea r8, [rbp + 0x460]
movups xmmword [rbp + 0x464], xmm0
mov r9d, 0x90
mov dword [rbp + 0x470], 0x2000
mov edx, 9
mov qword [rbp + 0x4e4], rax
mov rcx, rbx
mov dword [rbp + 0x4ec], eax
movups xmmword [rbp + 0x474], xmm0
movups xmmword [rbp + 0x484], xmm0
movups xmmword [rbp + 0x494], xmm0
movups xmmword [rbp + 0x4a4], xmm0
movups xmmword [rbp + 0x4b4], xmm0
movups xmmword [rbp + 0x4c4], xmm0
movups xmmword [rbp + 0x4d4], xmm0
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140003749
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140003749
mov rcx, qword [rsp + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400035df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff6
jmp 0x1400035df
mov rcx, qword [rsp + 0x60]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff7
jmp 0x1400035df
mov rcx, qword [rsp + 0x60]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffa
jmp 0x1400035df
mov rax, 0xffffffffffffffff
jmp 0x14000360f