Function at 0x140047860
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x3f0
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov edi, edx
mov qword [rsp + 0x38], rcx
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
jne 0x1400478fa
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_process_with_PID
call fcn.1400021d0
mov edx, edi
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000b8f0]
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]
xorps xmm0, xmm0
lea rdx, [0x140050f94]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
xor r8d, r8d
mov rcx, rbx
mov qword [rbx + 0x18], r14
call fcn.14000beb0
jmp 0x140047a82
lea rcx, [0x140054b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047b1e
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140047b1e
mov r9d, 0x30
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbp
call rax
test eax, eax
je 0x140047975
lea rdx, str.NtQueryInformationProcess_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400021d0
lea rdx, [0x14000b8f0]
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, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400478d5
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0xf0]
mov r9d, 0x2c8
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400479a3
lea rdx, str.ReadProcessMemory_failed.
jmp 0x14004794b
mov rdx, qword [rsp + 0x110]
lea r8, [rsp + 0x70]
mov r9d, 0x80
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004799a
movzx ecx, word [rsp + 0xe0]
mov eax, 2
shr rcx, 1
mov rdi, 0xffffffffffffffff
inc rcx
mov qword [rsp + 0x420], rsi
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14004947c
movzx r9d, word [rsp + 0xe0]
mov r8, rax
mov rdx, qword [rsp + 0xe8]
mov rcx, rbp
mov rsi, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140047aa9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.ReadProcessMemory_failed.
call fcn.1400021d0
lea rdx, [0x14000b8f0]
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, rsi
call fcn.140049448
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, [0x140050f94]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov qword [rbx + 0x18], r14
call fcn.14000beb0
mov rsi, qword [rsp + 0x420]
mov rax, rbx
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140048f00
mov rbx, qword [rsp + 0x428]
add rsp, 0x3f0
pop r14
pop rdi
pop rbp
ret
movzx eax, word [rsp + 0xe0]
xorps xmm0, xmm0
shr rax, 1
movups xmmword [rsp + 0x3c0], xmm0
mov qword [rsp + 0x3d0], r14
mov qword [rsp + 0x3d8], r14
mov word [rsi + rax*2], r14w
inc rdi
cmp word [rsi + rdi*2], r14w
jne 0x140047ad4
mov r8, rdi
lea rcx, [rsp + 0x3c0]
mov rdx, rsi
call fcn.14000beb0
mov rcx, rsi
call fcn.140049448
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x3c0]
movups xmm1, xmmword [rsp + 0x3d0]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x140047a7a
lea rdx, str.NtQueryInformationProcess_function_not_found.
jmp 0x14004794b