Function at 0x140005550
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
xor ebp, ebp
mov r12d, r8d
mov r15, rdx
cmp dword [rcx + 0x38c], ebp
mov rdi, rcx
je 0x140005586
add rcx, 0x258
call fcn.140003b9c
mov rcx, rdi
call fcn.140004e60
test eax, eax
je 0x1400058e7
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rsi, rax
je 0x1400058e7
and qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x58]
xor edx, edx
mov r8d, 0xb0
call sub.msvcrt.dll_memset
and qword [rsp + 0x228], rbp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [0x140019750]
lea rcx, [rsp + 0x228]
mov rdx, rax
mov rbx, rax
call fcn.140006ba0
lea r8, [0x1400195d8]
lea rcx, [rsp + 0x228]
mov rdx, rbx
mov qword [rsp + 0x50], rax
call fcn.140006ba0
lea r8, [0x140019768]
lea rcx, [rsp + 0x228]
mov rdx, rbx
mov qword [rsp + 0x58], rax
call fcn.140006ba0
lea r8, [0x140019780]
lea rcx, [rsp + 0x228]
mov rdx, rbx
mov qword [rsp + 0x60], rax
call fcn.140006ba0
mov ebx, 0x1000
xor edx, edx
mov r8d, 0xb8
mov rcx, rsi
mov r9d, ebx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, ebx
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
mov r14, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea r8d, [r12 + r12]
mov r9d, ebx
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x1000
mov r8, r12
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0xf8], rax
mov rbx, r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test r14, r14
mov dword [rsp + 0x100], r12d
mov qword [rsp + 0xf0], rax
je 0x140005887
test r13, r13
je 0x140005887
cmp qword [rsp + 0xf8], rbp
je 0x140005887
test r12d, r12d
je 0x140005887
xor r12d, r12d
mov r9, rbx
mov r8, r15
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400049f0
lea r8, [0x140004b60]
mov r9d, 0x400
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r15d, 0xb8
lea r8, [rsp + 0x50]
mov r9, r15
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x210]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x210], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x48], r12
call fcn.14000487c
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140004d90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0x3a98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8d, [r15 - 8]
lea rcx, [rsp + 0x118]
xor edx, edx
mov qword [rsp + 0x110], r12
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x110]
mov r9, r15
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r11d, dword [rsp + 0x1c4]
lea eax, [r11 - 1]
cmp eax, 0xffffe
ja 0x14000587d
lea ecx, [r11 + 0x10]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r9d, dword [rsp + 0x1c4]
mov rdx, qword [rsp + 0xf8]
mov r8, rax
mov rcx, rsi
mov rbx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, r12d
je 0x140005875
mov r8d, dword [rsp + 0x1c4]
mov rdx, rbx
mov rcx, rdi
call fcn.1400054a0
mov ebp, eax
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x40]
call fcn.14000471c
mov ebx, 0x8000
xor r8d, r8d
mov rdx, r14
mov r9d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, ebx
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xf8]
mov r9d, ebx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xf0]
mov r9d, ebx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rdi + 0x38c]
test edx, edx
je 0x1400058fd
lea rcx, [rdi + 0x258]
call fcn.140003ccc
mov eax, ebp
mov rbx, qword [rsp + 0x218]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret