Function at 0x18001fd10
Capabilities:
Allocate or change rwx memory
Enumerate threads
Get file size
Hijack thread execution
Parse pe header
Read file on windows
Resume thread
Suspend thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x4a8]
sub rsp, 0x5a8
mov rax, qword [0x1800a3690]
xor rax, rsp
mov qword [rbp + 0x490], rax
xor r13d, r13d
mov rax, rdx
mov r12d, ecx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r13 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001fdb4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor ecx, ecx
lea r9d, [r13 + 4]
mov edi, eax
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x18001fdbb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180020118
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], r13
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001fdf5
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 eax, eax
jmp 0x180020118
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x18002026e
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x18002026e
mov eax, 0x2000
test word [rdi + 0x16], ax
je 0x18002026e
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18001fdb4
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov qword [rsp + 0x5a0], r15
mov rcx, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x18001fe98
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 eax, eax
jmp 0x180020110
mov r9d, dword [rdi + 0x54]
mov r8, rsi
mov rdx, r15
mov qword [rsp + 0x5f0], r14
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18002023a
mov r14d, r13d
cmp r13w, word [rdi + 6]
jae 0x18001ff0e
nop word [rax + rax]
mov eax, r14d
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, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc r14d
cmp r14d, eax
jb 0x18001fed0
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 0x18002023a
mov qword [rbp - 0x68], r13
lea r8, [rsp + 0x60]
mov qword [rbp - 0x60], r13
mov r9d, 0x48
mov qword [rsp + 0x60], r15
mov rdx, r14
movsxd rcx, dword [rsi + 0x3c]
add rcx, r15
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x68], rcx
mov ecx, dword [rdi + 0xb0]
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 - 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]
lea r13, [r14 + 0x48]
mov qword [rsp + 0x20], 0
mov rdx, r13
lea r8, [0x18001fbe0]
mov r9d, 0xfb8
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 + 0x40]
mov dword [rsp + 0x40], 0x1c
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x180020029
nop dword [rax]
cmp dword [rsp + 0x4c], r12d
je 0x180020029
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180020010
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 0x180020073
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
jmp 0x180020100
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
jne 0x1800200a4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ecx, ecx
jmp 0x180020100
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180020220
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x10], 0x100001
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rbx
test eax, eax
jne 0x180020137
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 eax, eax
mov r14, qword [rsp + 0x5f0]
mov r15, qword [rsp + 0x5a0]
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.18007c9f0
add rsp, 0x5a8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
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 0x180020220
mov r12, qword [rbp + 0xb8]
lea r8, [0x1800a36f0]
mov rcx, r12
mov dword [0x1800a3727], r12d
shr rcx, 0x20
mov r9d, 0x99
mov dword [0x1800a372f], ecx
mov rdx, rax
lea rcx, [rax + 0x30]
mov qword [0x1800a3708], r14
mov qword [rbp + 0xb8], rcx
mov rcx, rbx
mov qword [0x1800a3710], r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800201ec
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800201ec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x180020218
lea rdx, [rbp - 0x40]
mov qword [rbp + 0xb8], r12
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 0x180020106
mov rax, r15
jmp 0x180020108
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1800200fd
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 0x180020106
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180020118