Function at 0x180002c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x90
mov rax, qword [0x1800193c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18001a02c], eax
je 0x180002ca2
mov eax, 0x10dd
jmp 0x180003109
mov eax, dword [0x18001a028]
test eax, eax
jne 0x180003109
mov qword [rsp + 0xa0], rbx
mov rbx, qword [0x180019d40]
test rbx, rbx
jne 0x180002ce4
lea rcx, [0x180019d40]
mov dword [0x18001a028], 6
mov qword [0x18001a0d8], rcx
lea eax, [rbx + 6]
jmp 0x180003101
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rdi
mov rdi, rbp
mov qword [rsp + 0x88], r12
mov r12, rbp
mov qword [rsp + 0x78], r14
test rbx, rbx
jne 0x180002d11
mov rbx, rbp
jmp 0x180002d85
cmp byte [rbx], 0xff
jne 0x180002d38
cmp byte [rbx + 1], 0x25
jne 0x180002d38
movsxd rsi, dword [rbx + 2]
lea rdx, [rbx + 6]
add rdx, rsi
mov rcx, rbx
call fcn.180001f20
test al, al
je 0x180002d38
mov rbx, qword [rsi + rbx + 6]
cmp byte [rbx], 0xeb
jne 0x180002d85
movsx rax, byte [rbx + 1]
add rbx, 2
add rbx, rax
movzx ecx, byte [rbx]
cmp cl, 0xff
jne 0x180002d75
cmp byte [rbx + 1], 0x25
jne 0x180002d75
movsxd rsi, dword [rbx + 2]
mov rcx, rbx
lea rdx, [rsi + 6]
add rdx, rbx
call fcn.180001f20
test al, al
je 0x180002d85
mov rbx, qword [rsi + rbx + 6]
jmp 0x180002d85
cmp cl, 0xe9
jne 0x180002d85
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
lea r14, [0x180001320]
cmp byte [r14], 0xff
mov qword [rsp + 0x38], r14
jne 0x180002dbf
cmp byte [r14 + 1], 0x25
jne 0x180002dbf
movsxd rsi, dword [r14 + 2]
lea rdx, [r14 + 6]
add rdx, rsi
mov rcx, r14
call fcn.180001f20
test al, al
je 0x180002dbf
mov r14, qword [rsi + r14 + 6]
mov qword [rsp + 0x38], r14
cmp byte [r14], 0xeb
jne 0x180002e19
movsx rax, byte [r14 + 1]
add r14, 2
add r14, rax
mov qword [rsp + 0x38], r14
movzx ecx, byte [r14]
cmp cl, 0xff
jne 0x180002e04
cmp byte [r14 + 1], 0x25
jne 0x180002e04
movsxd rsi, dword [r14 + 2]
mov rcx, r14
lea rdx, [rsi + 6]
add rdx, r14
call fcn.180001f20
test al, al
je 0x180002e19
mov r14, qword [rsi + r14 + 6]
jmp 0x180002e14
cmp cl, 0xe9
jne 0x180002e19
movsxd rax, dword [r14 + 1]
add r14, 5
add r14, rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x70], r15
cmp r14, rbx
jne 0x180002e3c
cmp dword [0x180019d48], ebp
jne 0x1800030c7
jmp 0x18000307a
mov ecx, 0x30
call fcn.18000c900
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov r12, rax
call fcn.1800024b0
mov rdi, rax
test rax, rax
jne 0x180002e66
lea ebp, [rax + 8]
jmp 0x18000307a
xor eax, eax
mov r8, rbx
mov qword [rdi + 0x40], rax
mov r13, rdi
lea rax, [rdi + 0x1e]
mov r12d, ebp
mov qword [rsp + 0x50], rax
movabs r14, 0xc000000001010101
nop dword [rax + rax]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, r13
mov r15, r8
call fcn.180008a10
mov r8, rax
movsxd rax, dword [rsp + 0x48]
sub rax, r15
mov esi, r8d
add rax, r8
sub esi, ebx
add r13, rax
movzx eax, r13b
sub al, dil
shl al, 3
movzx ecx, al
xor cl, sil
and cl, 7
xor cl, al
mov eax, r12d
inc r12d
mov byte [rax + rdi + 0x40], cl
cmp r12d, 8
jae 0x180002f41
movzx ecx, byte [r15]
cmp cl, 0xeb
je 0x180002f41
lea eax, [rcx + 0x3e]
cmp al, 0x27
ja 0x180002f0c
movabs rdx, 0x8040000403
bt rdx, rax
jb 0x180002f41
cmp cl, 0xf3
jne 0x180002fb0
cmp byte [r15 + 1], 0xc3
je 0x180002f41
sub cl, 0x26
cmp cl, 0x3f
ja 0x180002f38
bt r14, rcx
jae 0x180002f38
cmp byte [r15 + 1], 0xff
jne 0x180002f38
cmp byte [r15 + 2], 0x25
je 0x180002f41
cmp esi, 5
jb 0x180002e90
mov r14, qword [rsp + 0x38]
mov dword [rsp + 0x30], r12d
mov r12, qword [rsp + 0x40]
cmp esi, 5
jae 0x180002f74
mov rcx, r8
call fcn.180001fc0
test eax, eax
je 0x18000306c
cdqe
add r8, rax
mov esi, r8d
sub esi, ebx
cmp esi, 5
jb 0x180002f55
cmp dword [rsp + 0x30], 8
ja 0x18000306c
cmp r13, qword [rsp + 0x50]
jbe 0x180002f87
int3
sub r13b, dil
mov r8d, esi
lea rcx, [rdi + 0x20]
mov byte [rdi + 0x1e], r13b
mov rdx, rbx
mov byte [rdi + 0x3e], sil
call sub.VCRUNTIME140.dll_memcpy
cmp esi, 0x19
jbe 0x180002fc3
mov ebp, 6
jmp 0x18000307a
cmp cl, 0xff
jne 0x180002f1c
cmp byte [r15 + 1], 0x25
jmp 0x180002f36
movzx edx, byte [rdi + 0x1e]
lea rax, [rsi + rbx]
mov qword [rdi + 0x48], rax
add rdx, rdi
mov qword [rdi + 0x50], r14
mov eax, edi
mov word [rdx], 0x25ff
lea rcx, [rdx + 6]
sub eax, ecx
lea rcx, [rdx + 6]
add eax, 0x48
mov dword [rdx + 2], eax
mov r8, qword [rsp + 0x50]
sub r8, rcx
cmp rcx, qword [rsp + 0x50]
cmova r8, rbp
test r8, r8
je 0x18000300a
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
mov edx, esi
lea r9, [rsp + 0x58]
mov r8d, 0x40
mov dword [rsp + 0x58], ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180003032
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x18000307a
lea rcx, [0x180019d40]
mov dword [r12 + 8], ebp
mov qword [r12 + 0x10], rcx
mov qword [r12 + 0x20], rdi
mov qword [r12 + 0x18], rbx
mov eax, dword [rsp + 0x58]
mov dword [r12 + 0x28], eax
mov rax, qword [0x18001a0f0]
mov qword [r12], rax
xor eax, eax
mov qword [0x18001a0f0], r12
jmp 0x1800030d7
cmp dword [0x180019d48], 0
mov ebp, 9
jne 0x180003085
mov dword [0x18001a028], ebp
test rdi, rdi
je 0x1800030b5
xorps xmm0, xmm0
mov r8, rdi
movups xmmword [rdi], xmm0
and r8, 0xffffffffffff0000
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov rax, qword [r8 + 0x10]
mov qword [rdi + 0x48], rax
mov qword [r8 + 0x10], rdi
test r12, r12
je 0x1800030c7
mov edx, 0x30
mov rcx, r12
call fcn.18000c944
lea rcx, [0x180019d40]
mov eax, ebp
mov qword [0x18001a0d8], rcx
mov r13, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000c8e0
add rsp, 0x90
pop rbp
ret