Function at 0x140002740
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rdx
mov ebp, ecx
xor r14d, r14d
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], r14b
jne 0x140002780
call fcn.1400072e8
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140001990
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x80]
call fcn.140007548
mov r8d, eax
test eax, eax
jne 0x14000282c
mov edx, dword [rsp + 0x90]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x74], ecx
bt edx, 0xa
jae 0x14000281e
mov eax, dword [rsp + 0x94]
cmp eax, 0xa000000c
jne 0x140002810
lea eax, [r8 + 4]
jmp 0x140002850
cmp eax, 0xa0000003
jne 0x14000281e
mov eax, 0xa
jmp 0x140002850
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x140002850
mov dword [rsp + 0x74], 0xffff
sub eax, 2
je 0x14000284b
sub eax, 1
je 0x14000284b
sub eax, 0x32
je 0x14000284b
cmp eax, 0x46
mov eax, r14d
jne 0x140002850
mov eax, 1
mov dword [rsp + 0x70], r8d
lea rcx, [0x14000d0c0]
mov qword [rsp + 0x78], rcx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
test eax, eax
je 0x1400028b7
cmp eax, 1
sete dil
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400028ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dil, 1
test r8d, r8d
jne 0x140002a77
jmp 0x140002877
call fcn.140007900
test dil, dil
je 0x1400028f9
lea rdx, str.Dll_not_exists
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003e90
lea rdx, [0x140004060]
mov rcx, rax
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]
xor al, al
jmp 0x140002a4f
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000291a
lea rdx, str.Failed_to_open_target_process
jmp 0x1400028d6
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140002920
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140002981
lea rdx, str.Failed_to_allocate_memory_in_target_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003e90
lea rdx, [0x140004060]
mov rcx, rax
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, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140002a4f
lea rbx, [rbx + 1]
cmp byte [rsi + rbx], 0
jne 0x140002981
lea r9, [rbx + 1]
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400029ec
lea rdx, str.Failed_to_write_into_target_processs_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003e90
lea rdx, [0x140004060]
mov rcx, rax
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 r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140002a4f
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x140002a21
lea rdx, str.Failed_to_create_remote_thread_in_target_process
jmp 0x1400029ae
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400078e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
call fcn.140002520
int3