Function at 0x140011ca0
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x818]
sub rsp, 0x8f0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14008d200]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor edi, edi
lea rcx, [0x1401703c0]
call fcn.140002970
lea rcx, [rbp + 0x738]
call fcn.140011ae0
nop
lea rcx, [rbp + 0x738]
mov rsi, qword [rbp + 0x738]
mov r14, qword [rbp + 0x750]
cmp r14, 0xf
cmova rcx, rsi
mov rbx, qword [rbp + 0x748]
test rbx, rbx
jne 0x140011d32
mov r8, rbx
lea rdx, [0x1400811b8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140011d5a
lea rcx, [rbp + 0x738]
cmp r14, 0xf
cmova rcx, rsi
cmp rbx, 1
jne 0x140011d76
mov r8, rbx
lea rdx, reloc.WLDAP32.dll_Ordinal_32
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140011d76
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140012350
mov rcx, rax
lea rdx, [0x140012500]
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]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0xe0e00
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140011da6
lea rcx, str.____An_error_occurred_when_trying_to_allocate_memory_for_the_PE_file_content___n
call fcn.140010840
jmp 0x140011f97
mov r8d, 0xe0e00
lea rdx, [0x14008d290]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x140011ded
lea rcx, str.____The_PE_file_is_not_valid___n
call fcn.140010840
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140011f97
lea rcx, str.___The_PE_file_is_valid._n
call fcn.140010840
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x764], xmm0
movups xmmword [rbp + 0x774], xmm0
movups xmmword [rbp + 0x784], xmm0
movups xmmword [rbp + 0x794], xmm0
movups xmmword [rbp + 0x7a4], xmm0
movups xmmword [rbp + 0x7b4], xmm0
mov dword [rbp + 0x7c4], eax
mov dword [rbp + 0x760], WSAGetLastError
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x760]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov esi, 1
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_FilesNotepad_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140011e98
lea rcx, str.____An_error_is_occured_when_trying_to_create_the_target_process___n
jmp 0x140011f48
lea rdx, [rbp + 0x730]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor edx, edx
cmp dword [rbp + 0x730], edx
je 0x140011fe7
mov qword [rsp + 0x70], rdi
mov r8d, 0x2c8
lea rcx, [rbp - 0x6c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x10000b
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x34]
add edx, 8
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140011f1e
xorps xmm6, xmm6
xorps xmm0, xmm0
psrldq xmm0, 8
movq rcx, xmm0
movq rax, xmm6
jmp 0x140011f33
mov eax, dword [rbp + 0x34]
mov qword [rbp - 0x80], rax
mov rcx, qword [rsp + 0x70]
mov qword [rbp - 0x78], rcx
movdqa xmm6, xmmword [rbp - 0x80]
test rcx, rcx
je 0x140011f41
test rax, rax
jne 0x140012086
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_image_base_address_of_the_target_process___n
call fcn.140010840
cmp rbx, 0xffffffffffffffff
je 0x140011f67
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140011f77
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140011f97
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rdx, qword [rbp + 0x750]
cmp rdx, 0xf
jbe 0x140012283
inc rdx
mov rcx, qword [rbp + 0x738]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001227e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001227e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x80], rdi
mov r8d, 0x4d0
lea rcx, [rbp + 0x260]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x290], 0x10000b
lea rdx, [rbp + 0x260]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x2e8]
add rdx, 0x10
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140012059
xorps xmm6, xmm6
xorps xmm0, xmm0
psrldq xmm0, 8
movq rcx, xmm0
movq rax, xmm6
jmp 0x140012074
mov rax, qword [rbp + 0x2e8]
mov qword [rsp + 0x70], rax
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x78], rcx
movdqa xmm6, xmmword [rsp + 0x70]
test rcx, rcx
je 0x140011f41
test rax, rax
je 0x140011f41
movq rdx, xmm6
lea rcx, str.___Target_Process_PEB_:_0x_p_n
call fcn.140010840
psrldq xmm6, 8
movq rdx, xmm6
lea rcx, str.___Target_Process_Image_Base_:_0x_p_n
call fcn.140010840
movsxd rax, dword [rbx + 0x3c]
movzx r15d, word [rax + rbx + 0x18]
mov r13d, 0x10b
lea rax, str.___Source_PE_Image_architecture_:_x64_n
lea rcx, str.___Source_PE_Image_architecture_:_x86_n
cmp r15w, r13w
cmovne rcx, rax
call fcn.140010840
lea rcx, str.___Target_PE_Image_architecture_:_x86_n
lea rax, str.___Target_PE_Image_architecture_:_x64_n
cmp dword [rbp + 0x730], 0
cmove rcx, rax
call fcn.140010840
cmp r15w, r13w
jne 0x140012116
cmp dword [rbp + 0x730], 0
jne 0x14001211f
lea rcx, str.____Architecture_are_not_compatible___n
call fcn.140010840
jmp 0x140011f97
cmp dword [rbp + 0x730], 0
jne 0x140012105
lea rcx, str.___Architecture_are_compatible___n
call fcn.140010840
movsxd rax, dword [rbx + 0x3c]
movzx ecx, word [rax + rbx + 0x5c]
movzx r12d, cx
mov edx, r12d
lea rcx, str.___Source_Image_subsystem_:_0x_X_n
call fcn.140010840
movq rdx, xmm6
mov rcx, qword [rsp + 0x50]
cmp dword [rbp + 0x730], 0
je 0x140012161
call fcn.140010c00
jmp 0x140012166
call fcn.140010d60
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14001217a
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_subsytem_of_the_target_process._n
jmp 0x140011f48
mov edx, r14d
lea rcx, str.___Target_Process_subsystem_:_0x_X_n
call fcn.140010840
cmp r12d, r14d
jne 0x140012272
lea rcx, str.___Subsytems_are_compatible._n
call fcn.140010840
movsxd rax, dword [rbx + 0x3c]
cmp r15w, r13w
jne 0x1400121bd
mov eax, dword [rax + rbx + 0xa0]
mov esi, edi
test eax, eax
setne sil
test eax, eax
jne 0x1400121c7
jmp 0x1400121d2
cmp dword [rax + rbx + 0xb0], 0
je 0x1400121d0
lea rcx, str.___The_source_image_has_a_relocation_table._n
jmp 0x1400121d9
mov esi, edi
lea rcx, str.___The_source_image_doesnt_have_a_relocation_table._n
call fcn.140010840
mov rdx, rbx
lea rcx, [rsp + 0x50]
cmp r15w, r13w
jne 0x14001224f
test esi, esi
jne 0x140012248
call fcn.140010ed0
test eax, eax
je 0x140012261
lea rcx, str.___The_injection_has_succeed___n
call fcn.140010840
cmp rbx, 0xffffffffffffffff
je 0x14001221f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001222f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140011f9c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011f9c
call fcn.140011350
jmp 0x1400121f5
test esi, esi
jne 0x14001225a
call fcn.140011110
jmp 0x1400121f5
call fcn.140011730
jmp 0x1400121f5
lea rcx, str.____The_injection_has_failed___n
call fcn.140010840
jmp 0x140011f53
lea rcx, str.____Subsytems_are_not_compatible._n
jmp 0x140011f48
call fcn.14006ff90
mov eax, edi
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.14006fc00
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret