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

Disassembly:
push rbp
push rsi
push r12
push r13
lea rbp, [rsp - 0x4a8]
sub rsp, 0x5a8
mov rax, qword [0x1800a3690]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rsi, qword [rcx]
mov r13, r8
mov dword [rsp + 0x30], edx
mov r12d, edx
test rsi, rsi
jne 0x18001f730
xor edx, edx
xor ecx, ecx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x18001fa68
mov eax, 0x5a4d
mov qword [rsp + 0x5a0], rdi
cmp word [rsi], ax
jne 0x18001fbb9
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x18001fbb9
mov eax, 0x2000
test word [rdi + 0x16], ax
je 0x18001fbb9
mov r8d, edx
mov qword [rsp + 0x5e8], rbx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18001fa58
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov qword [rsp + 0x590], r15
mov rcx, rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x18001f7da
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 0x18001fa50
mov r9d, dword [rdi + 0x54]
mov r8, rsi
mov qword [rsp + 0x598], r14
mov rdx, r15
xor r14d, r14d
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001fb85
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x18001f853
xor r12d, r12d
mov eax, r14d
mov qword [rsp + 0x20], r12
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, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc r14d
cmp r14d, eax
jb 0x18001f810
mov r12d, dword [rsp + 0x30]
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 r14, rax
test rax, rax
je 0x18001fb85
xor edx, edx
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x60], rdx
lea r8, [rsp + 0x60]
movsxd rcx, dword [rsi + 0x3c]
add rcx, r15
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x68], rcx
lea r9d, [rdx + 0x48]
mov ecx, dword [rdi + 0xb0]
mov rdx, r14
add rcx, r15
mov qword [rsp + 0x70], rcx
mov ecx, dword [rdi + 0x90]
add rcx, r15
mov qword [rsp + 0x78], rcx
mov rcx, rbx
mov eax, dword [rdi + 0xd0]
add rax, r15
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x80], rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x78], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
lea r13, [r14 + 0x48]
mov rdx, r13
mov qword [rsp + 0x20], rax
mov r9d, 0xfb8
lea r8, [0x18001eae0]
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 + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x18001f969
nop dword [rax]
cmp dword [rsp + 0x44], r12d
je 0x18001f969
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001f950
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 0x18001f9b3
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
jmp 0x18001fa40
mov r8d, dword [rsp + 0x40]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
jne 0x18001f9e4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ecx, ecx
jmp 0x18001fa40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18001fb6b
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x20], 0x100001
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rbx
test eax, eax
jne 0x18001fa85
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
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 r14, qword [rsp + 0x598]
mov r15, qword [rsp + 0x590]
mov rbx, qword [rsp + 0x5e8]
mov rdi, qword [rsp + 0x5a0]
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.18007c9f0
add rsp, 0x5a8
pop r13
pop r12
pop rsi
pop rbp
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 0x18001fb6b
mov r15, qword [rbp + 0xa8]
lea r8, [0x1800a36f0]
mov rcx, r15
mov dword [0x1800a3727], r15d
shr rcx, 0x20
mov r9d, 0x99
mov dword [0x1800a372f], ecx
mov rdx, rsi
lea rcx, [rax + 0x30]
mov qword [0x1800a3708], r14
mov qword [rbp + 0xa8], rcx
xor eax, eax
mov rcx, rbx
mov qword [0x1800a3710], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001fb38
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18001fb38
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18001fb64
lea rdx, [rbp - 0x50]
mov qword [rbp + 0xa8], r15
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 0x18001fa46
mov al, 1
jmp 0x18001fa48
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18001fa3d
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
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 0x18001fa46
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x18001fa60