Function at 0x140002550
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
call fcn.1400022b0
mov qword [rbp - 8], rax
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 0
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 0x18], rdx
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [0x140002b0f]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x140002642
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_ReadShell_session_thread__error___s
mov rcx, rax
call fcn.140003252
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov eax, 0
jmp 0x140002948
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [0x140002d01]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x28], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140002717
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_ReadShell_session_thread__error___s
mov rcx, rax
call fcn.140003252
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov eax, 0
jmp 0x140002948
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
mov r9d, 0xffffffff
mov r8d, 0
mov rdx, rax
mov ecx, 3
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 2
je 0x1400027f2
cmp dword [rbp - 0xc], 2
jg 0x140002826
cmp dword [rbp - 0xc], 0
je 0x140002784
cmp dword [rbp - 0xc], 1
je 0x1400027bb
jmp 0x140002826
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
jmp 0x140002880
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
jmp 0x140002880
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
jmp 0x140002880
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.WaitForMultipleObjects_error:__s
mov rcx, rax
call fcn.140003252
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 1
add rsp, 0x90
pop rbp
ret