Function at 0x18008cb80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0xc8
mov rax, qword [rsp + 0xf0]
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xa0], r9
mov qword [rsp + 0x98], r8
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x84], 0
cmp qword [rsp + 0x98], 0
je 0x18008cbea
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
cmp qword [rsp + 0xa0], 0
je 0x18008cc08
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
cmp qword [rsp + 0xf0], 0
je 0x18008cc26
mov rax, qword [rsp + 0xf0]
mov qword [rax], 0
cmp qword [rsp + 0x90], 0
jne 0x18008cc45
mov dword [rsp + 0xac], 0x57
jmp 0x18008d29e
mov eax, dword [0x1802b0178]
mov dword [rsp + 0x38], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov eax, dword [rsp + 0x38]
cmp eax, ecx
je 0x18008cc72
mov dword [rsp + 0xac], 0x10dd
jmp 0x18008d29e
cmp dword [0x1802b0198], 0
je 0x18008cc91
mov eax, dword [0x1802b0198]
mov dword [rsp + 0xac], eax
jmp 0x18008d29e
cmp qword [rsp + 0x88], 0
jne 0x18008ccb0
mov dword [rsp + 0xac], 6
jmp 0x18008d29e
mov rax, qword [rsp + 0x88]
cmp qword [rax], 0
jne 0x18008ccfc
mov dword [rsp + 0x84], 6
mov eax, dword [rsp + 0x84]
mov dword [0x1802b0198], eax
mov rax, qword [rsp + 0x88]
mov qword [0x1802b0190], rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0xac], eax
jmp 0x18008d29e
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov edx, eax
call fcn.18008bb60
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x90]
xor eax, eax
mov edx, eax
call fcn.18008bb60
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp rax, qword [rsp + 0x78]
jne 0x18008cd74
cmp dword [0x1802b0170], 0
je 0x18008cd6f
jmp 0x18008cde8
jmp 0x18008cddb
cmp qword [rsp + 0xa0], 0
je 0x18008cd93
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0xa0]
mov qword [rax], rcx
cmp qword [rsp + 0xf0], 0
je 0x18008cdb5
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0xf0]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.18008fa50
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18008cebb
mov dword [rsp + 0x84], 8
mov eax, dword [rsp + 0x84]
mov dword [0x1802b0198], eax
cmp qword [rsp + 0x70], 0
je 0x18008ce2a
mov rcx, qword [rsp + 0x70]
call fcn.18008c030
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x98], 0
je 0x18008ce25
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
jmp 0x18008ce2a
cmp qword [rsp + 0x68], 0
je 0x18008ce5d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x18008ce54
mov rcx, qword [rsp + 0x30]
call fcn.18008fa8c
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0xf0], 0
je 0x18008ce7b
mov rax, qword [rsp + 0xf0]
mov qword [rax], 0
cmp qword [rsp + 0xa0], 0
je 0x18008ce99
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
mov rax, qword [rsp + 0x88]
mov qword [0x1802b0190], rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0xac], eax
jmp 0x18008d29e
mov rcx, qword [rsp + 0x78]
call fcn.18008d2d0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18008cee6
mov dword [rsp + 0x84], 8
jmp 0x18008cddb
cmp qword [rsp + 0x98], 0
je 0x18008cf05
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
add rcx, 0x40
xor edx, edx
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x1e
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x54]
cmp eax, dword [rsp + 0x50]
jae 0x18008d068
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0xb4], 0
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xb8]
xor eax, eax
mov r9d, eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
call fcn.18008e5f0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
sub rax, rcx
movsxd rcx, dword [rsp + 0xb4]
add rax, rcx
add rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov r8b, al
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x4c]
mov dl, byte [rax + rcx + 0x40]
and r8b, 7
and dl, 0xf8
or dl, r8b
mov byte [rax + rcx + 0x40], dl
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
sub rax, rcx
mov r8b, al
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x4c]
mov dl, byte [rax + rcx + 0x40]
and r8b, 0x1f
shl r8b, 3
and dl, 7
or dl, r8b
mov byte [rax + rcx + 0x40], dl
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
cmp rax, 8
jb 0x18008d04b
jmp 0x18008d068
mov rcx, qword [rsp + 0x40]
call fcn.18008d5c0
cmp eax, 0
je 0x18008d063
jmp 0x18008d068
jmp 0x18008cf58
jmp 0x18008d06d
mov eax, dword [rsp + 0x54]
cmp eax, dword [rsp + 0x50]
jae 0x18008d0c3
mov rcx, qword [rsp + 0x60]
call fcn.18008d760
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x18008d099
jmp 0x18008d0c3
mov ecx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x60]
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
mov dword [rsp + 0x54], eax
jmp 0x18008d06d
mov eax, dword [rsp + 0x54]
cmp eax, dword [rsp + 0x50]
jb 0x18008d0df
mov eax, dword [rsp + 0x4c]
cmp rax, 8
jbe 0x18008d101
mov dword [rsp + 0x84], 9
cmp dword [0x1802b0170], 0
je 0x18008d0fc
jmp 0x18008cde8
jmp 0x18008cddb
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0xb8]
jbe 0x18008d115
int3
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
sub rax, rcx
mov cl, al
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x1e], cl
mov eax, dword [rsp + 0x54]
mov cl, al
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x3e], cl
mov rcx, qword [rsp + 0x70]
add rcx, 0x20
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x54]
mov r8d, eax
call fcn.180091610
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
mov edx, ecx
mov ecx, 0x1e
sub rcx, rdx
cmp rax, rcx
jbe 0x18008d17f
mov dword [rsp + 0x84], 6
jmp 0x18008cddb
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x54]
add rcx, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x48], rcx
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
movzx ecx, byte [rcx + 0x1e]
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x70]
add rdx, 0x48
mov rcx, qword [rsp + 0x58]
call fcn.18008c740
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
call fcn.18008c810
mov qword [rsp + 0x58], rax
mov dword [rsp + 0xb0], 0
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rcx, qword [rsp + 0x78]
mov r8d, 0x40
lea r9, [rsp + 0xb0]
call sub.KERNEL32.dll_VirtualProtect
cmp eax, 0
jne 0x18008d230
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x84], eax
jmp 0x18008cddb
mov rax, qword [rsp + 0x68]
mov dword [rax + 8], 0
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x20], rcx
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x18], rcx
mov ecx, dword [rsp + 0xb0]
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x28], ecx
mov rcx, qword [0x1802b0180]
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov qword [0x1802b0180], rax
mov dword [rsp + 0xac], 0
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18008fc60
mov eax, dword [rsp + 0x2c]
add rsp, 0xc8
ret