Function at 0x180007cf0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x538
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
xor eax, eax
cmp eax, 1
je 0x180007f31
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x5a
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [0x1800264f8]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x40], 0
je 0x180007d65
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
jge 0x180007d83
cmp dword [rsp + 0x44], 0x8000001a
je 0x180007d7e
mov dword [rsp + 0x30], 0
jmp 0x180007f31
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x48]
cmp ecx, eax
jne 0x180007db7
jmp 0x180007d15
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180007dcc
jmp 0x180007d15
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x540]
cmp qword [rax], 0
jne 0x180007e38
mov rax, qword [rsp + 0x540]
mov dword [rax + 8], pe_nt_image_headers64
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
shl rax, 3
mov r8, rax
xor edx, edx
mov rcx, qword [0x1800264f0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x540]
mov qword [rcx], rax
mov rax, qword [rsp + 0x540]
cmp qword [rax], 0
jne 0x180007e33
mov dword [rsp + 0x30], 0
jmp 0x180007ebb
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x540]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x180007ebb
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x540]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
shl rax, 3
mov r9, rax
mov rax, qword [rsp + 0x540]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1800264f0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180007eb3
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
jmp 0x180007ebb
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x180007eda
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007f31
mov dword [rsp + 0x90], 0x100001
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x540]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax*8], rdx
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x540]
mov dword [rcx + 0xc], eax
jmp 0x180007d15
cmp dword [rsp + 0x30], 0
jne 0x180007fd0
mov rax, qword [rsp + 0x540]
cmp qword [rax], 0
je 0x180007fd0
mov dword [rsp + 0x34], 0
jmp 0x180007f62
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x34], eax
jae 0x180007fa7
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x540]
mov rcx, qword [rcx]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x540]
mov rcx, qword [rcx]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007f58
mov rax, qword [rsp + 0x540]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1800264f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x540]
mov qword [rax], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x538
ret