Function at 0x140015840
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Enumerate processes
Read file on windows

Disassembly:
mov qword ss:[rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.14004a560
sub rsp, rax
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov r12, r9
movzx edi, r8b
mov byte [rsp + 0x50], r8b
mov r15, rdx
mov rbx, rcx
xor r14d, r14d
xor edx, edx
mov r8d, 0x12c
lea rcx, [rbp + 0x1b4]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1b0], 0x130
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14001645f
nop word [rax + rax]
lea rcx, [rbp + 0x1dc]
mov r8, rbx
sub r8, rcx
nop dword [rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140015904
inc rcx
test eax, eax
jne 0x1400158f0
test edx, edx
je 0x140015925
lea rdx, [rbp + 0x1b0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400158e0
nop dword [rax]
jmp 0x14001645f
mov edx, dword [rbp + 0x1b8]
lea rcx, [rbp + 0x190]
call fcn.1400117c0
nop
mov r9d, 0xe
lea r8, str.memory.exe__p
mov rcx, rax
call fcn.1400127e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x180], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x170], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x180], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 7
jbe 0x1400159d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400159cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400159cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400499d0
movdqa xmm0, xmmword [0x14005d490]
movdqu xmmword [rbp + 0x1a0], xmm0
mov word [rbp + 0x190], r14w
mov qword [rbp - 0x70], 0x18
mov qword [rbp - 0x60], 1
mov ebx, 1
mov qword [rbp - 0x68], r14
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp + 0xc0], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0xe8], xmm0
movups xmmword [rbp + 0xf8], xmm0
movups xmmword [rbp + 0x108], xmm0
movups xmmword [rbp + 0x118], xmm0
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x118], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0xfc], eax
mov word [rbp + 0x100], r14w
lea rdx, [rbp + 0x170]
cmp qword [rbp + 0x188], 7
cmova rdx, qword [rbp + 0x170]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax]
test eax, eax
je 0x1400161c6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x2e0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x2e0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016199
cmp dword [rsp + 0x54], 0
je 0x140016199
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, 0xffffffff
lea r8, [rbp + 0x2e0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
xor ebx, ebx
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], rbx
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140016492
lfence
cmp r14, 0xf
ja 0x140015bd3
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x148], 0xf
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + r14 + 0x130], bl
jmp 0x140015c2b
mov rdi, r14
or rdi, 0xf
cmp rdi, rax
jbe 0x140015be4
mov rdi, rax
jmp 0x140015bf1
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
call fcn.140006f80
mov rbx, rax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x148], rdi
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + r14], 0
movzx edi, byte [rsp + 0x50]
xor ebx, ebx
lea rax, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
cmova rax, qword [rbp + 0x130]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x2e0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
seta r9b
mov r8, qword [rbp + 0x130]
cmova rcx, r8
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140015c95
nop
cmp rdx, qword [rbp + 0x140]
ja 0x140015cc4
mov qword [rbp + 0x140], rdx
lea rax, [rbp + 0x130]
test r9b, r9b
cmovne rax, r8
mov byte [rax + rdx], 0
jmp 0x140015cda
lfence
sub rdx, qword [rbp + 0x140]
lea rcx, [rbp + 0x130]
call fcn.140005f20
nop word [rax + rax]
test dil, dil
je 0x140016231
lea rbx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
cmova rbx, qword [rbp + 0x130]
xor r14d, r14d
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rbp + 0xb8], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.140017600
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.140016fc0
mov qword [rsp + 0x78], rax
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [rbx + rax], 0
jne 0x140015d43
lea r8, [rax + rbx]
mov esi, 1
mov r9d, esi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140017080
nop
lea rbx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
cmova rbx, qword [rbp + 0x130]
mov rdi, qword [rbp + 0x140]
add rdi, rbx
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400160a7
xor sil, sil
mov eax, dword [rdx + 0x20]
mov ecx, dword [rdx + 0x28]
mov qword [rbp - 0x48], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 8], r14
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rdx
mov dword [rbp + 0x68], eax
mov dword [rbp + 0x6c], 0x10
mov byte [rbp + 0x70], sil
mov dword [rbp + 0x74], ecx
mov byte [rbp + 0x78], sil
lea rax, [rsp + 0x70]
mov qword [rbp + 0x80], rax
mov edx, dword [rdx + 0x24]
lea rcx, [rbp + 0x30]
call fcn.140017b00
nop
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.140018540
nop dword [rax]
test al, al
je 0x140015e2c
mov sil, 1
jmp 0x140015ead
cmp rbx, rdi
je 0x140015ead
mov eax, dword [rbp + 0x6c]
btr eax, 0xd
bts eax, 8
mov dword [rbp + 0x6c], eax
lea rdx, [rbx + 1]
xor r9d, r9d
mov r8, rdi
lea rcx, [rbp - 0x50]
call fcn.140018240
mov rbx, rax
cmp rax, rdi
je 0x140015e8f
nop
mov qword [rbp + 0x58], rbx
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.140018540
test al, al
jne 0x140015e24
lea rdx, [rbx + 1]
xor r9d, r9d
mov r8, rdi
lea rcx, [rbp - 0x50]
call fcn.140018240
mov rbx, rax
cmp rax, rdi
jne 0x140015e60
mov qword [rbp + 0x58], rdi
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.140018540
movzx esi, sil
test al, al
mov ebx, 1
cmovne esi, ebx
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140015efb
mov rdx, qword [rbp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015eea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016445
call fcn.1400499d0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r14
mov rcx, qword ds:[rbp + 0x18]
test rcx, rcx
je 0x140015f46
mov rdx, qword [rbp + 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015f35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016445
call fcn.1400499d0
mov qword [rbp + 0x18], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140015f9b
mov rax, qword [rbp + 8]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015f8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016445
call fcn.1400499d0
mov qword [rbp - 8], r14
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov rcx, qword ds:[rbp - 0x28]
test rcx, rcx
je 0x140015fe6
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016445
call fcn.1400499d0
mov qword [rbp - 0x28], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001603b
mov rax, qword [rbp - 0x38]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001602a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016445
call fcn.1400499d0
mov qword [rbp - 0x48], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
nop dword [rax + rax]
test sil, sil
je 0x14001609d
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140016054
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400095a0
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x140016072
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rax
call fcn.1400095a0
lea rdx, str.._This_is_bannable.
mov rcx, rax
call fcn.140006aa0
lea rdx, [0x140008b60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov esi, 1
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400160f0
mov eax, 0xffffffff
lock xadd dword [rdx + 0x2c], eax
cmp eax, 1
jne 0x1400160f0
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1400160f0
nop word [rax + rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rcx]
mov edx, esi
mov rax, qword [rax]
call qword [0x140050d48]
test rbx, rbx
jne 0x1400160d0
mov qword [rsp + 0x68], r14
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140016126
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140050d48]
mov r8, rax
test rax, rax
je 0x140016126
mov rcx, qword ds:[rax]
mov rax, qword [rcx]
mov edx, esi
mov rcx, r8
call qword [0x140050d48]
movzx edi, byte [rsp + 0x50]
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x14001616f
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001616a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016453
call fcn.1400499d0
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x2e0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015b31
mov edx, 0xffffffff
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword ds:[rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x188]
cmp rdx, 7
jbe 0x14001645f
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001645a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001645a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8, r15
cmp qword [r15 + 0x18], 7
jbe 0x14001623e
mov r8, qword [r15]
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [r14 - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.140010420
nop
lea rcx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rcx, qword [rbp + 0x150]
mov r8, r15
cmp qword [r15 + 0x18], 7
jbe 0x14001629d
mov r8, qword [r15]
mov qword ss:[rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
seta r9b
mov r8, qword [rbp + 0x150]
cmova rcx, r8
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400162f0
nop dword [rax]
cmp rdx, qword [rbp + 0x160]
ja 0x140016324
mov qword [rbp + 0x160], rdx
lea rax, [rbp + 0x150]
test r9b, r9b
cmovne rax, r8
mov byte [rax + rdx], 0
jmp 0x14001633a
lfence
sub rdx, qword [rbp + 0x160]
lea rcx, [rbp + 0x150]
call fcn.140005f20
lea r9, ds:[rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova r9, qword [rbp + 0x150]
lea rcx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
cmova rcx, qword [rbp + 0x130]
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x140]
call fcn.140017520
cmp rax, 0xffffffffffffffff
je 0x1400163e7
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14001639a
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400095a0
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x1400163b8
mov rdx, qword [r15]
mov r8, qword ds:[r15 + 0x10]
mov rcx, rax
call fcn.1400095a0
lea rdx, str.._This_is_bannable.
mov rcx, rax
call fcn.140006aa0
lea rdx, [0x140008b60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x168]
cmp rdx, 0xf
jbe 0x140016425
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001641f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001644c
nop
call fcn.1400499d0
mov qword ds:[rbp + 0x160], r14
mov qword [rbp + 0x168], 0xf
mov byte [rbp + 0x150], 0
jmp 0x14001612b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400499d0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.1400499b0
mov rbx, qword [rsp + 0x1430]
add rsp, 0x13f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140003f80
nop
int3