Function at 0x140001b20
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov edx, dword [0x14000796c]
call fcn.140001a20
mov edx, dword [0x140007968]
mov r12, rax
call fcn.140001a20
mov edx, dword [0x140007978]
mov rdi, rax
call fcn.140001a20
mov edx, dword [0x140007964]
mov r14, rax
call fcn.140001a20
mov edx, dword [0x140007960]
mov r13, rax
call fcn.140001a20
mov edx, dword [0x140007970]
mov qword [rsp + 0xa0], rax
call fcn.140001a20
mov edx, dword [0x140007958]
mov r15, rax
call fcn.140001a20
mov edx, dword [0x140007974]
mov rbx, rax
call fcn.140001a20
mov edx, dword [0x14000795c]
mov rsi, rax
call fcn.140001a20
xor edx, edx
mov dword [0x140007710], 0x238
mov rbp, rax
lea ecx, [rdx + 2]
call rdi
lea rdx, [0x140007710]
mov rcx, rax
mov rdi, rax
call rbx
lea rbx, [0x14000773c]
lea rdx, str.mspaint.exe
xor eax, eax
nop word [rax + rax]
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x140001c73
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140001c73
add rax, 2
cmp rax, 0xc
jne 0x140001bf0
mov r8d, dword [0x140007718]
lea rdx, [0x1400043d8]
lea rcx, str._s_Trying_to_open_a_handle_to_process___ld__n
mov dword [0x140007954], r8d
call fcn.1400013d0
mov r8d, dword [0x140007954]
xor edx, edx
mov ecx, 0x1fffff
call r14
mov qword [0x140007948], rax
test rax, rax
jne 0x140001cc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x140007954]
lea rdx, [0x1400043d8]
mov r9d, eax
lea rcx, str._s_Can_not_get_a_handle_to_the_process___ld___error:__ld_n
call fcn.1400013d0
jmp 0x140001c9a
lea rdx, [0x140007710]
mov rcx, rdi
call rsi
test eax, eax
jne 0x140001bde
lea rdx, [0x1400043d8]
lea rcx, str._s_Usage:_program.exe__PID__n
call fcn.1400013d0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, rax
lea rdx, [0x1400043d8]
lea rcx, str._s_Got_a_handle_to_the_process__n___0x_p_n
call fcn.1400013d0
mov rdi, qword [0x140007060]
lea rsi, [0x140007050]
xor r14d, r14d
movabs rbx, 0x7fffffffffffffff
cmp qword [0x140007068], 0x10
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
cmovae rsi, qword [0x140007050]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
cmp rdi, rbx
ja 0x140001f5a
mov qword [rsp + 0x58], 0xf
cmp rdi, 0x10
jae 0x140001d41
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140001dd8
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x140001d79
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002160
mov rcx, rax
test rax, rax
je 0x140001da4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001dba
mov ecx, 0x16
mov rbx, rax
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001dab
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001f60
jmp 0x140001d5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001db7
call fcn.140002160
jmp 0x140001dba
mov rax, r14
lea r8, [rdi + 1]
mov qword [rsp + 0x40], rax
mov rdx, rsi
mov qword [rsp + 0x50], rdi
mov rcx, rax
mov qword [rsp + 0x58], rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x40]
call fcn.1400015f0
movzx ecx, byte [0x140007048]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rbx, rax
mov byte [rax], cl
mov rcx, qword [0x140007948]
lea r8d, [rdx + 8]
call r13
mov r8d, 8
mov qword [0x140007708], rax
lea rdx, [0x1400043d8]
lea rcx, str._s_Allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
call fcn.1400013d0
mov rdx, qword [0x140007708]
mov r9d, 8
mov rcx, qword [0x140007948]
mov r8, rbx
mov qword [rsp + 0x20], r14
call qword [rsp + 0xa0]
mov r8d, 8
lea rdx, [0x1400043d8]
lea rcx, str._s_Wrote__zu_bytes_to_process_memory_n
call fcn.1400013d0
mov r9, qword [0x140007708]
lea rax, [0x140007950]
mov rcx, qword [0x140007948]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call r12
mov qword [0x140007700], rax
test rax, rax
jne 0x140001ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400043d8]
lea rcx, str._s_Can_not_get_a_handle_to_the_thread__error:__ld_n
call fcn.1400013d0
mov rcx, qword [0x140007948]
call rbp
jmp 0x140001c9a
mov r8d, dword [0x140007950]
lea rdx, [0x1400043d8]
mov r9, rax
lea rcx, str._s_Got_a_handle_to_the_thread___ld__n___0x_p_n
call fcn.1400013d0
mov rcx, qword [0x140007700]
mov edx, 0xffffffff
call r15
lea rdx, [0x1400043d8]
lea rcx, str._s_Thread_finished_executing_n
call fcn.1400013d0
lea rdx, [0x1400043d8]
lea rcx, str._s_Cleaning_up_n
call fcn.1400013d0
mov rcx, qword [0x140007700]
call rbp
mov rcx, qword [0x140007948]
call rbp
lea rdx, [0x1400043d8]
lea rcx, str._s_Finished__n
call fcn.1400013d0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x140001cac
call fcn.1400015d0
int3
call fcn.140001530
int3