Function at 0x18006f0f8
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov r15, r8
mov rdi, rdx
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jne 0x18006f19b
call fcn.180071040
test al, al
jne 0x18006f137
call fcn.18000f3c4
test al, al
je 0x18006f19b
lea r9, [0x18010a5f0]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x18006f142
cmp rbx, qword [rdi + 0x18]
ja 0x18006f177
mov rsi, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006f15f
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.18009fc20
mov byte [rsi + rbx], 0
jmp 0x18006f185
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.180003a38
lea rdx, [0x180102570]
mov rcx, r15
call fcn.18000604c
mov al, 1
jmp 0x18006f50b
mov r8d, ebx
xor edx, edx
mov ecx, 0x450
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18006f509
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800a02d0
mov r9d, 0x104
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x18006f509
lea rax, [rbp - 0x60]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18006f1ec
cmp rbx, qword [rdi + 0x18]
ja 0x18006f222
mov r14, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006f208
mov r14, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.18009fc20
mov byte [r14 + rbx], 0
jmp 0x18006f234
lea r9, [rbp - 0x60]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.180003a38
and dword [rbp + 0x640], 0
lea rdx, [rbp + 0x640]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x18006f509
cmp dword [rbp + 0x640], 6
je 0x18006f31c
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xb0], rax
mov r8d, 3
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.180070c30
nop
mov rdx, qword [rbp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.18006e550
cmp r15, rax
je 0x18006f2aa
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.180007418
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18006f2e7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006f2e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006f528
call fcn.18009d1f4
and qword [rsp + 0x58], 0
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
lea rax, [rbp + 0xb8]
mov rcx, qword [rbp + 0xb0]
cmp rcx, rax
je 0x18006f194
call fcn.1800a89bc
jmp 0x18006f194
xor bl, bl
and qword [rsp + 0x40], 0
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
je 0x18006f4ec
lea rcx, [rbp + 0x658]
mov qword [rsp + 0x20], rcx
mov r9d, gethostbyname
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
call rax
test eax, eax
jne 0x18006f4ec
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2c8
lea r8, [rbp + 0x340]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18006f4ec
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
lea r8, [rbp + 0x2c0]
mov rdx, qword [rbp + 0x360]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18006f4ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x450
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x18006f4ec
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
mov r8, rax
mov rdx, qword [rbp + 0x308]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x18006f4ec
cmp qword [rsp + 0x40], 0
je 0x18006f4fc
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetFileInformationByHandleEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18006f4ec
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb4]
call fcn.1800a02d0
mov dword [rbp + 0xb0], 0x104
mov r9d, 0x20c
lea r8, [rbp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call rdi
test eax, eax
je 0x18006f4ec
lea rdx, [rbp + 0xb4]
lea rcx, [rsp + 0x48]
call fcn.18006e550
cmp r15, rax
je 0x18006f4b1
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.180007418
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18006f4ea
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006f4e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006f522
call fcn.18009d1f4
mov bl, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18006f4fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x18006f50b
xor al, al
mov rbx, qword [rsp + 0x748]
add rsp, 0x710
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800a45b8
nop
call fcn.1800a45b8
nop
int3