Function at 0x140018d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r12, qword [rsp + 0x110]
xor ebx, ebx
mov qword [rsp + 0x58], r9
mov r15, r9
mov qword [rsp + 0x68], r8
mov r13, r8
mov qword [rsp + 0x38], rdx
mov rax, rdx
mov qword [rsp + 0x48], rcx
mov rbp, rcx
mov qword [rsp + 0x60], r12
mov edi, ebx
test r8, r8
je 0x140018d9f
mov qword [r8], rbx
test r15, r15
je 0x140018da7
mov qword [r9], rbx
test r12, r12
je 0x140018db0
mov qword [r12], rbx
test rax, rax
jne 0x140018dbf
mov eax, 0x57
jmp 0x1400190e4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140093728], eax
je 0x140018dd6
mov eax, 0x10dd
jmp 0x1400190e4
mov eax, dword [0x14009372c]
test eax, eax
jne 0x1400190e4
test rbp, rbp
jne 0x140018df1
lea eax, [rbp + 6]
jmp 0x1400190e4
mov rcx, qword [rbp]
test rcx, rcx
jne 0x140018e08
lea edi, [rcx + 6]
mov dword [0x14009372c], edi
jmp 0x1400190db
xor edx, edx
mov rsi, rbx
mov r14, rbx
call fcn.140019110
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov rbx, rax
call fcn.140019110
mov qword [rsp + 0x50], rax
cmp rax, rbx
jne 0x140018e3f
cmp dword [0x140094b90], esi
jne 0x1400190c8
jmp 0x140018faa
xor ebp, ebp
test r15, r15
je 0x140018e49
mov qword [r15], rbx
test r12, r12
je 0x140018e52
mov qword [r12], rax
mov ecx, 0x30
call fcn.140002eb0
mov r14, rax
test rax, rax
jne 0x140018e6e
mov edi, 8
jmp 0x140019079
mov rcx, rbx
call fcn.140020450
mov rsi, rax
test rax, rax
je 0x140018e64
test r13, r13
je 0x140018e87
mov qword [r13], rax
xor eax, eax
mov r15, rbx
mov qword [rsi + 0x40], rax
mov r13, rsi
lea rax, [rsi + 0x1e]
mov r12d, ebp
mov qword [rsp + 0x80], rax
mov edi, 8
and dword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, r15
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x80]
mov rcx, r13
mov rbp, r15
call fcn.1400153d0
mov r15, rax
mov r8d, r12d
movsxd rax, dword [rsp + 0x78]
inc r12d
sub rax, rbp
mov ebp, r15d
add rax, r15
sub ebp, ebx
add r13, rax
mov al, r13b
sub al, sil
mov dl, al
mov byte [rsp + 0x30], al
shl dl, 3
mov al, bpl
and al, 7
or dl, al
mov byte [r8 + rsi + 0x40], dl
cmp r12d, edi
jae 0x140018f23
mov rcx, qword [rsp + 0x38]
call fcn.140015230
test eax, eax
jne 0x140018f23
cmp ebp, 5
jb 0x140018ea7
mov qword [rsp + 0x70], r13
mov r13, qword [rsp + 0x68]
mov dword [rsp + 0x40], r12d
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x38], r15
mov r15, qword [rsp + 0x58]
jmp 0x140018f64
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call fcn.14005e430
test eax, eax
je 0x14001906a
cdqe
add rbp, rax
mov qword [rsp + 0x38], rbp
sub ebp, ebx
cmp ebp, 5
jb 0x140018f43
cmp dword [rsp + 0x40], edi
ja 0x14001906a
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x80]
jbe 0x140018f83
int3
mov al, byte [rsp + 0x30]
lea rcx, [rsi + 0x20]
mov r8d, ebp
mov rdx, rbx
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x3e], bpl
mov edi, ebp
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, 0x19
jbe 0x140018fb1
mov edi, 6
xor ebp, ebp
jmp 0x140019079
movzx edx, byte [rsi + 0x1e]
lea rax, [rbx + rbp]
mov qword [rsi + 0x48], rax
add rdx, rsi
mov rax, qword [rsp + 0x50]
mov ebp, 0
mov qword [rsi + 0x50], rax
mov eax, esi
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 + 0x80]
sub r8, rcx
cmp rcx, qword [rsp + 0x80]
cmova r8, rbp
test r8, r8
je 0x140019008
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x88]
mov dword [rsp + 0x88], ebp
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140019035
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x140019079
mov rax, qword [rsp + 0x48]
mov qword [r14 + 0x10], rax
mov dword [r14 + 8], ebp
mov qword [r14 + 0x20], rsi
mov qword [r14 + 0x18], rbx
mov eax, dword [rsp + 0x88]
mov dword [r14 + 0x28], eax
mov rax, qword [0x140093740]
mov qword [r14], rax
xor eax, eax
mov qword [0x140093740], r14
jmp 0x1400190e4
xor ebp, ebp
mov edi, 9
cmp dword [0x140094b90], ebp
jne 0x140019084
mov dword [0x14009372c], edi
test rsi, rsi
je 0x1400190b1
xor edx, edx
mov rbx, rsi
mov rcx, rsi
and rbx, 0xffffffffffff0000
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
test r13, r13
je 0x1400190b1
mov qword [r13], rbp
test r14, r14
je 0x1400190c3
mov edx, 0x30
mov rcx, r14
call fcn.140002ef0
mov rbp, qword [rsp + 0x48]
xor esi, esi
test r12, r12
je 0x1400190d3
mov qword [r12], rsi
test r15, r15
je 0x1400190db
mov qword [r15], rsi
mov eax, edi
mov qword [0x140093730], rbp
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140001020
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret