Function at 0x18001f550
Capabilities:
Allocate or change rwx memory
Enumerate threads
Hijack thread execution
Parse pe header
Resume thread
Suspend thread

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x590
mov rax, qword [0x1800a3690]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rsi, qword [rcx]
mov r12, r8
mov r15d, edx
test rsi, rsi
jne 0x18001f594
xor edx, edx
xor ecx, ecx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x18001f8e4
mov eax, 0x5a4d
mov qword [rsp + 0x580], rdi
cmp word [rsi], ax
jne 0x18001fa3e
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x18001fa3e
mov eax, 0x2000
test word [rdi + 0x16], ax
je 0x18001fa3e
mov r8d, r15d
mov qword [rsp + 0x5c8], rbx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18001f8d4
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov qword [rsp + 0x570], r14
mov rcx, rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x18001f63e
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18001f8cc
mov r9d, dword [rdi + 0x54]
mov r8, rsi
mov qword [rsp + 0x588], rbp
mov rdx, r14
mov qword [rsp + 0x578], r13
mov rcx, rbx
xor r13d, r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001fa0a
mov ebp, r13d
cmp r13w, word [rdi + 6]
jae 0x18001f6bb
nop dword [rax + rax]
mov eax, ebp
mov qword [rsp + 0x20], r13
lea rcx, [rax + rax*4]
mov r8d, dword [rdi + rcx*8 + 0x11c]
mov edx, dword [rdi + rcx*8 + 0x114]
add r8, rsi
mov r9d, dword [rdi + rcx*8 + 0x118]
add rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc ebp
cmp ebp, eax
jb 0x18001f680
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x18001fa0a
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov r9d, 0x40
movsxd rcx, dword [rsi + 0x3c]
mov rdx, rbp
add rcx, r14
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x58], rcx
mov ecx, dword [rdi + 0xb0]
add rcx, r14
mov qword [rsp + 0x60], rcx
mov ecx, dword [rdi + 0x90]
add rcx, r14
mov qword [rsp + 0x68], rcx
mov ecx, dword [rdi + 0xd0]
add rcx, r14
mov qword [rsp + 0x78], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rcx
mov rcx, rbx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r12, [rbp + 0x40]
mov qword [rsp + 0x20], r13
mov rdx, r12
lea r8, [0x18001eae0]
mov r9d, 0xfc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x18001f7d1
cmp dword [rsp + 0x3c], r15d
je 0x18001f7d1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001f7b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x18001f81b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
jmp 0x18001f8b4
mov r8d, dword [rsp + 0x38]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
jne 0x18001f84c
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ecx, ecx
jmp 0x18001f8b4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18001f9f0
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x90]
mov dword [rsp + 0xc0], 0x100001
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rbx
test eax, eax
jne 0x18001f901
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov r13, qword [rsp + 0x578]
mov rbp, qword [rsp + 0x588]
mov r14, qword [rsp + 0x570]
mov rbx, qword [rsp + 0x5c8]
mov rdi, qword [rsp + 0x580]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.18007c1c0
add rsp, 0x590
pop r15
pop r12
pop rsi
ret
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x18001f9f0
mov r14, qword [rsp + 0x188]
lea r8, [0x1800a36f0]
mov rcx, r14
mov dword [0x1800a3727], r14d
shr rcx, 0x20
mov r9d, 0x99
mov dword [0x1800a372f], ecx
mov rdx, rax
lea rcx, [rax + 0x30]
mov qword [0x1800a3708], rbp
mov qword [rsp + 0x188], rcx
mov rcx, rbx
mov qword [0x1800a3710], r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001f9bd
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18001f9bd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18001f9e9
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x188], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18001f8ba
mov al, 1
jmp 0x18001f8bc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18001f8b1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18001f8ba
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x18001f8dc