Function at 0x18001ed30
Capabilities:
Allocate or change rwx memory
Encode data using xor
Enumerate threads
Hash data using fnv
Hijack thread execution
Parse pe header
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x1800a3690]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov dword [rsp + 0x34], edx
mov r12, qword [rcx]
mov qword [rsp + 0x68], r12
test r12, r12
jne 0x18001ed78
xor ecx, ecx
jmp 0x18001f69c
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x18001f699
movsxd r15, dword [r12 + 0x3c]
add r15, r12
mov qword [rsp + 0x60], r15
cmp dword [r15], 0x4550
jne 0x18001f699
mov eax, 0x2000
test word [r15 + 0x16], ax
je 0x18001f699
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18001f6aa
mov r8d, dword [r15 + 0x50]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001ee1c
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f6aa
mov r9d, dword [r15 + 0x54]
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r8, r12
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001f67b
mov ebx, r14d
cmp r14w, word [r15 + 6]
jae 0x18001ee8d
nop dword [rax]
mov eax, ebx
lea rcx, [rax + rax*4]
mov r9d, dword [r15 + rcx*8 + 0x118]
mov r8d, dword [r15 + rcx*8 + 0x11c]
add r8, r12
mov edx, dword [r15 + rcx*8 + 0x114]
add rdx, r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc ebx
movzx eax, word [r15 + 6]
cmp ebx, eax
jb 0x18001ee50
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18001f67b
mov rcx, r14
mov ebx, r14d
cmp r14w, word [r15 + 6]
jae 0x18001ef0f
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*4]
lea rdi, [r15 + rcx*8]
mov r8d, 5
lea rdx, str..text
lea rcx, [rdi + 0x108]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x18001ef08
inc ebx
movzx eax, word [r15 + 6]
cmp ebx, eax
jb 0x18001eed0
mov rcx, r14
jmp 0x18001ef0f
lea rcx, [rdi + 0x108]
mov eax, dword [rcx + 0x14]
add rax, r12
mov r8d, dword [rcx + 0x10]
mov qword [rsp + 0x50], r8
mov edx, r14d
mov dword [rsp + 0x30], edx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x70], r14
mov rdi, rax
lea rcx, [r8 + rax]
mov rbx, qword [rbp + 0x68]
cmp rax, rcx
jae 0x18001f0fb
mov r15, rax
mov r12, rcx
mov r13d, r8d
mov esi, 0x1000
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x78], rdi
mov r10, r13
sub r10, rdi
add r10, r15
cmp r10, rsi
cmovae r10, rsi
mov qword [rbp - 0x80], r10
mov r8, rdi
mov eax, r10d
test r10d, r10d
jle 0x18001f089
test rdi, rdi
je 0x18001f089
mov r11d, r10d
and r11d, 3
mov r9d, r10d
sar r9d, 2
test r9d, r9d
jle 0x18001efec
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r8 + 1]
shl edx, 8
movzx ecx, byte [r8]
add eax, ecx
add eax, edx
movzx edx, byte [r8 + 3]
shl edx, 8
movzx ecx, byte [r8 + 2]
add edx, ecx
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
add r8, 4
mov ecx, eax
shr ecx, 0xb
add eax, ecx
dec r9d
test r9d, r9d
jg 0x18001efb0
sub r11d, 1
je 0x18001f044
sub r11d, 1
je 0x18001f026
cmp r11d, 1
jne 0x18001f057
movzx edx, byte [r8 + 1]
shl edx, 8
movzx ecx, byte [r8]
add eax, ecx
add eax, edx
movsx edx, byte [r8 + 2]
shl edx, 0x12
mov ecx, eax
shl ecx, 0x10
xor edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0xb
jmp 0x18001f055
movzx edx, byte [r8 + 1]
shl edx, 8
movzx ecx, byte [r8]
add eax, ecx
add eax, edx
mov ecx, eax
shl ecx, 0xb
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
jmp 0x18001f055
movsx ecx, byte [r8]
add eax, ecx
mov ecx, eax
shl ecx, 0xa
xor eax, ecx
mov ecx, eax
shr ecx, 1
add eax, ecx
lea ecx, [rax*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
add eax, ecx
mov ecx, eax
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add eax, ecx
mov ecx, eax
shl ecx, 0x19
xor eax, ecx
mov ecx, eax
shr ecx, 6
add ecx, eax
mov edx, dword [rsp + 0x30]
jmp 0x18001f08c
mov ecx, r14d
mov eax, ecx
mov qword [rbp - 0x78], rax
xor edx, ecx
mov dword [rsp + 0x30], edx
cmp rbx, qword [rbp + 0x70]
je 0x18001f0be
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rbx + 0x10], xmm1
mov rbx, qword [rbp + 0x68]
add rbx, 0x18
mov qword [rbp + 0x68], rbx
jmp 0x18001f0db
lea r8, [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.180020310
mov rbx, qword [rbp + 0x68]
mov r10, qword [rbp - 0x80]
mov edx, dword [rsp + 0x30]
add rdi, r10
cmp rdi, r12
jb 0x18001ef60
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x38]
sub rbx, qword [rbp + 0x60]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rbx, [rdx + rdx*2]
shl rbx, 3
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov qword [rsp + 0x20], r14
mov r9, rbx
mov r8, qword [rbp + 0x60]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
lea r8d, [rdx + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x38], rax
mov word [rbp - 0xe], r14w
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rbp - 0x38], rax
movabs rcx, 0xcafebabedeadc0de
mov qword [rbp - 0x40], rcx
lea rdx, [rax + rcx]
mov rax, rdx
shr rax, 8
movzx r8d, al
movzx eax, dl
movabs rcx, 0xcbf29ce484222325
xor rax, rcx
movabs r9, 0x100000001b3
imul rax, r9
xor r8, rax
imul r8, r9
mov rax, rdx
shr rax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x18
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x20
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x28
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdx
shr rax, 0x30
movzx ecx, al
xor r8, rcx
imul r8, r9
shr rdx, 0x38
xor r8, rdx
imul r8, r9
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], rdi
mov rcx, qword [rbp + 0x68]
sub rcx, qword [rbp + 0x60]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x18], rdx
mov word [rbp - 0x10], 0
mov eax, dword [rsp + 0x30]
mov dword [rbp - 0xc], eax
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
lea r8d, [rdx + 0x32]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp - 8], rax
mov qword [rsp + 0x20], r14
mov r9d, 0x50
lea r8, [rbp - 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movdqa xmm0, xmmword [0x180094d90]
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x180094d30]
movdqu xmmword [rbp - 0x78], xmm1
mov dword [rbp - 0x68], 0x86cfd3eb
mov dword [rbp - 0x64], 0x100888f
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x41]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x26
jb 0x18001f2f0
mov byte [rbp - 0x61], 0
lea rdx, [rsp + 0x78]
mov edi, dword [rsp + 0x34]
mov ecx, edi
call fcn.18001fd10
mov rdx, rax
mov qword [rbp + 0x10], r13
movsxd rcx, dword [r12 + 0x3c]
add rcx, r13
mov qword [rbp + 0x18], rcx
mov ecx, dword [r15 + 0xb0]
add rcx, r13
mov qword [rbp + 0x20], rcx
mov ecx, dword [r15 + 0x90]
add rcx, r13
mov qword [rbp + 0x28], rcx
mov ecx, dword [r15 + 0xd0]
add rcx, r13
mov qword [rbp + 0x30], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x38], rcx
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], rdx
mov qword [rsp + 0x20], r14
mov r9d, 0x48
lea r8, [rbp + 0x10]
mov r15, qword [rsp + 0x70]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r13, [r15 + 0x48]
mov qword [rsp + 0x20], r14
mov r9d, 0xfb8
lea r8, [0x18001eae0]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov dword [rbp - 0x60], 0x1c
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x18001f3fa
cmp dword [rbp - 0x54], edi
je 0x18001f3fa
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001f3e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x18001f44a
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f613
mov r8d, dword [rbp - 0x58]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x18001f483
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f613
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18001f4b4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f613
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xb0], 0x100001
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rsi
test eax, eax
jne 0x18001f512
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f613
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov rcx, rsi
test rax, rax
jne 0x18001f559
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f613
mov r12, qword [rbp + 0x178]
mov rax, r12
shr rax, 0x20
mov dword [0x1800a3727], r12d
mov dword [0x1800a372f], eax
lea rax, [rdi + 0x30]
mov qword [rbp + 0x178], rax
mov qword [0x1800a3708], r15
mov qword [0x1800a3710], r13
mov qword [rsp + 0x20], r14
mov r9d, 0x99
lea r8, [0x1800a36f0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
test eax, eax
je 0x18001f5e8
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
test eax, eax
je 0x18001f5e8
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18001f60e
mov qword [rbp + 0x178], r12
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18001f613
mov r14, qword [rsp + 0x38]
mov r8, qword [rbp + 0x60]
test r8, r8
je 0x18001f676
mov rcx, qword [rbp + 0x70]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x18001f66e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001f66e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.18007ca3c
mov rax, r14
jmp 0x18001f6ac
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.18007c9f0
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x660
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret