Function at 0x140008060
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x2e8], rax
mov rbx, rcx
mov qword [rbp + 0x2e0], rcx
xor edi, edi
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400080e1
mov dword [rbp + 0x2e0], edi
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008106
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x14000a668]
mov rcx, rbx
call fcn.1400039d0
jmp 0x1400083b7
lea rcx, [rbp + 0x2e0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x30
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rsi
call rax
mov rcx, rsi
test eax, eax
jne 0x1400080db
mov qword [rsp + 0x20], rdi
mov r9d, 0x2c8
lea r8, [rbp - 0x10]
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, rsi
test eax, eax
je 0x1400080db
mov qword [rsp + 0x20], rdi
mov r9d, 0x80
lea r8, [rsp + 0x70]
mov rdx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400080d8
movzx r8d, word [rbp - 0x20]
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x2c0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2d0], xmm1
lea rcx, [rbp + 0x2c0]
call fcn.1400083f0
nop
lea r8, [rbp + 0x2c0]
cmp qword [rbp + 0x2d8], 8
cmovae r8, qword [rbp + 0x2c0]
movzx r9d, word [rbp - 0x20]
mov qword [rsp + 0x20], rdi
mov rdx, qword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, rsi
test eax, eax
jne 0x140008242
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x14000a668]
mov rcx, rbx
call fcn.1400039d0
nop
mov rdx, qword [rbp + 0x2d8]
cmp rdx, 8
jb 0x1400083b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400083a8
jmp 0x1400083b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x2c0]
mov r8, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x2d8]
cmp rdx, 8
cmovae rcx, r8
mov rax, qword [rbp + 0x2d0]
lea r15, [rcx + rax*2]
lea rsi, [rbp + 0x2c0]
cmovae rsi, r8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
cmp rsi, r15
jne 0x14000829a
mov byte [rbx], 0
jmp 0x140008379
mov rax, r15
sub rax, rsi
sar rax, 1
movabs r14, 0x7fffffffffffffff
cmp rax, r14
ja 0x1400083e6
cmp rax, 0x10
jb 0x140008332
or rax, 0xf
cmp rax, r14
ja 0x1400082d4
mov r14, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r14, rcx
mov rcx, r14
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x14000831e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400083e0
mov rcx, rax
call fcn.1400085c0
test rax, rax
je 0x140008317
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000832b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000832b
call fcn.1400085c0
mov rdi, rax
mov qword [rbx], rdi
mov qword [rbx + 0x18], r14
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000833f
mov rdx, qword [rbx]
movzx ecx, byte [rsi]
mov rax, qword [rbx + 0x10]
mov byte [rdx + rax], cl
inc qword [rbx + 0x10]
mov rax, qword [rbx + 0x10]
add rsi, 2
cmp rsi, r15
jne 0x140008332
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140008367
mov rcx, qword [rbx]
mov byte [rcx + rax], 0
mov rdx, qword [rbp + 0x2d8]
mov r8, qword [rbp + 0x2c0]
cmp rdx, 8
jb 0x1400083b7
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400083af
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140008604
mov rax, rbx
mov rcx, qword [rbp + 0x2e8]
xor rcx, rsp
call fcn.1400085a0
mov rbx, qword [rsp + 0x430]
add rsp, 0x3f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001190
nop
call fcn.140001230
int3