Function at 0x7ffbf1ca3198
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7ffbf1d68270]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14d, 0x269ec3
lea r11, [0x7ffbf1ca0000]
mov r12, qword [rcx + 0x10]
mov eax, dword [0x7ffbf1cb6330]
mov r13d, 0x8000
mov r15, rdx
mov qword [rsp + 0x40], rdx
mov edx, dword [r12 + 1]
mov qword [rsp + 0x48], rcx
mov rcx, rax
shr rdx, 4
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
mov eax, dword [0x7ffbf1cb6330]
sub rsi, rdx
mov r10d, dword [0x7ffbf1d46a58]
mov eax, dword [0x7ffbf1cb6330]
mov eax, dword [0x7ffbf1d46a58]
test eax, eax
je 0x7ffbf1ca32af
xor r8d, r8d
xor eax, eax
mov edi, dword [0x7ffbf1d46a58]
dec edi
inc rdi
mov r9, rdi
je 0x7ffbf1ca3269
mov rcx, qword [0x7ffbf1d6a520]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r14
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x7ffbf1ca323e
mov qword [0x7ffbf1d6a520], rcx
xor edx, edx
div rdi
test r10, r10
je 0x7ffbf1ca32a4
mov ecx, 0xffff3cd2
mov eax, 0xc32d
inc r8
lock cmpxchg dword [r11 + rdx*4 + 0xcb084], ecx
je 0x7ffbf1ca3510
mov ecx, dword [0x7ffbf1d46a58]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x7ffbf1ca3273
xor ebx, ebx
test rbx, rbx
jne 0x7ffbf1ca33d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
xor edi, edi
mov rcx, qword [0x7ffbf1d690d0]
mov r8, rcx
mov r9, rcx
inc rdi
xor eax, eax
test rcx, rcx
je 0x7ffbf1ca3302
mov rcx, qword [0x7ffbf1d6a520]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r14
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x7ffbf1ca32d7
mov qword [0x7ffbf1d6a520], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov r8d, 0x3000
mov rdx, rsi
shl rcx, 0x10
add rcx, qword [0x7ffbf1d68290]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x7ffbf1ca336a
mov rdx, rax
mov rcx, rax
mov r8d, esi
lea r9, [0x7ffbf1d42740]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x7ffbf1ca337e
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x7ffbf1ca32b9
xor ebx, ebx
cmp qword [0x7ffbf1d690c8], rbx
ja 0x7ffbf1ca338c
test bl, 3
je 0x7ffbf1ca33ae
test rbx, rbx
je 0x7ffbf1ca33ac
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
xor edx, edx
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [0x7ffbf1ca0000]
test rbx, rbx
je 0x7ffbf1ca3207
mov rcx, rsi
mov rdi, rbx
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x23f9f402
mov r13d, dword [r12 + 1]
mov r10d, dword [0x7ffbf1cb6330]
mov rax, r13
shr r13, 4
xor edi, edi
shr rax, 1
mov qword [rsp + 0x58], r13
sub r10, r13
and eax, 7
lea rbp, [rax + r12 + 9]
lea r12, [0x7ffbf1ca0000]
mov qword [rsp + 0x60], rbp
mov r9d, ebp
sub r9d, r12d
inc r10
mov r8, r10
je 0x7ffbf1ca3449
mov rdx, qword [0x7ffbf1d6a520]
imul rdx, rdx, 0x343fd
shl rdi, 0x10
shr r8, 0x10
add rdx, r14
mov rcx, rdx
shr rcx, 0x10
movzx eax, cx
or rdi, rax
test r8, r8
jne 0x7ffbf1ca341e
mov qword [0x7ffbf1d6a520], rdx
mov ecx, r9d
xor edx, edx
mov rax, rdi
div r10
lea r14, [rdx + rbx]
mov r8, r14
mov rdx, r13
mov qword [rsp + 0x50], r14
mov eax, 0xb737fe53
xor dl, dl
test r13, r13
je 0x7ffbf1ca36dd
lea rbx, [r13 - 1]
mov eax, dword [r13 + rbp]
lea rcx, [rsp + 0x34]
mov dword [rcx], eax
movzx eax, word [r13 + rbp + 4]
mov word [rcx + 4], ax
mov sil, byte [rsp + 0x35]
mov r10b, byte [rsp + 0x38]
mov r12b, byte [rsp + 0x34]
mov al, byte [rsp + 0x36]
or al, 1
mov byte [rsp + 0x32], al
or r10b, 1
or r12b, 1
mov al, byte [rsp + 0x39]
mov byte [rsp + 0x30], r10b
or al, 1
test rbx, rbx
je 0x7ffbf1ca3644
mov r15, r14
mov r13b, byte [rsp + 0x32]
lea r11, [rbx + rbp]
sub r15, rbp
mov r14b, al
mov bpl, r10b
test bl, 1
mov cl, byte [r11]
movzx r8d, cl
je 0x7ffbf1ca3576
xor cl, byte [rsp + 0x37]
and cl, 1
movzx r9d, byte [rsp + 0x37]
je 0x7ffbf1ca3527
movzx edi, r13b
mov eax, r9d
shr eax, 1
shr edi, 1
xor edi, eax
mov eax, r8d
btc eax, 8
sar eax, 1
xor edi, eax
jmp 0x7ffbf1ca352f
mov ecx, dword [0x7ffbf1cb6330]
imul rcx, rdx
lea rbx, [rcx + r11 + 0xae000]
jmp 0x7ffbf1ca32a6
mov edi, r8d
xor edi, r9d
shr edi, 1
movzx r10d, byte [r11 - 1]
mov eax, r10d
xor eax, edi
test al, 1
je 0x7ffbf1ca3568
test cl, cl
je 0x7ffbf1ca355a
movzx ecx, r13b
btc r8d, 8
shr r9d, 1
shr ecx, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1ca3562
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
movzx eax, r14b
jmp 0x7ffbf1ca35db
test cl, cl
je 0x7ffbf1ca3609
movzx ecx, r13b
jmp 0x7ffbf1ca35f4
movzx r9d, sil
xor cl, sil
and cl, 1
je 0x7ffbf1ca359c
movzx edi, r12b
mov eax, r9d
shr eax, 1
shr edi, 1
xor edi, eax
mov eax, r8d
btc eax, 8
sar eax, 1
xor edi, eax
jmp 0x7ffbf1ca35a4
mov edi, r8d
xor edi, r9d
shr edi, 1
movzx r10d, byte [r11 - 1]
mov eax, r10d
xor eax, edi
test al, 1
je 0x7ffbf1ca35ec
test cl, cl
je 0x7ffbf1ca35cf
movzx ecx, r12b
btc r8d, 8
shr r9d, 1
shr ecx, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1ca35d7
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
movzx eax, bpl
shr eax, 1
xor r10d, ecx
btc eax, 7
sar r10d, 1
xor eax, r10d
jmp 0x7ffbf1ca3618
test cl, cl
je 0x7ffbf1ca3609
movzx ecx, r12b
btc r8d, 8
shr ecx, 1
shr r9d, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1ca3611
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
mov eax, r10d
xor eax, ecx
sar eax, 1
mov byte [r11 + r15], al
xor dl, al
dec r11
sub rbx, 1
jne 0x7ffbf1ca34d7
mov r13, qword [rsp + 0x58]
mov r10b, byte [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
movzx ecx, byte [rbp]
mov r9b, byte [rbp]
movzx r8d, sil
xor r9b, sil
and r9b, 1
je 0x7ffbf1ca3672
mov eax, r8d
shr eax, 1
movzx edi, r12b
shr edi, 1
xor edi, eax
mov eax, ecx
btc eax, 8
sar eax, 1
xor edi, eax
jmp 0x7ffbf1ca3679
mov edi, ecx
xor edi, r8d
shr edi, 1
test dil, 1
je 0x7ffbf1ca36ad
test r9b, r9b
je 0x7ffbf1ca369a
movzx edi, r12b
btc ecx, 8
shr r8d, 1
shr edi, 1
sar ecx, 1
xor edi, r8d
xor edi, ecx
jmp 0x7ffbf1ca36a1
mov edi, ecx
xor edi, r8d
shr edi, 1
movzx eax, r10b
xor eax, edi
btc eax, 8
jmp 0x7ffbf1ca36cf
test r9b, r9b
je 0x7ffbf1ca36c8
btc ecx, 8
movzx eax, r12b
shr r8d, 1
shr eax, 1
sar ecx, 1
xor eax, r8d
xor eax, ecx
jmp 0x7ffbf1ca36cf
mov eax, ecx
xor eax, r8d
shr eax, 1
lea r12, [0x7ffbf1ca0000]
sar eax, 1
xor dl, al
mov byte [r14], al
cmp dl, byte [r13 + rbp + 6]
je 0x7ffbf1ca37a3
call fcn.7ffbf1d47140
mov r10d, 0xffff
mov r11, rax
mov rbx, qword [rsp + 0x48]
lea rdi, [rbx + 0x18]
and rdi, 0xfffffffffffffff8
lea r9, [rdi + 0xfff]
mov rax, 0xfffffffffffff000
lea r14, [fcn.7ffbf1cb7480]
mov qword [rbx + 0x10], r14
and r11, rax
and r9, rax
mov rax, qword [0x7ffbf1d6a520]
xor r8d, r8d
imul rax, rax, 0x343fd
shl r8, 0x10
shr r10, 0x10
add rax, 0x269ec3
mov rcx, rax
shr rcx, 0x10
movzx edx, cx
or r8, rdx
test r10, r10
jne 0x7ffbf1ca372c
mov qword [0x7ffbf1d6a520], rax
mov qword [r15 + 0x98], r11
movabs rax, 0x8000800080008001
mul r8
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub r8, rdx
inc r8
mov qword [r15 + 0xb0], r8
mov qword [rsp + 0x40], r10
jmp 0x7ffbf1ca3799
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
add rdi, 8
cmp rdi, r9
jb 0x7ffbf1ca378d
jmp 0x7ffbf1ca38b3
mov rsi, r12
mov r11, rbp
sub r11, r14
mov rax, qword [0x7ffbf1cf0238]
sub rsi, rax
jne 0x7ffbf1ca37c1
test r11, r11
je 0x7ffbf1ca38a3
xor edi, edi
mov rbx, r14
mov rcx, qword [0x7ffbf1cac1e8]
lea r8d, [rcx - 1]
lea r15, [0x7ffbf1ca0000]
sub rbx, rbp
sub ebp, r12d
lea r12d, [rbp + r13]
test r8d, r8d
mov r13d, 0xfffffff
js 0x7ffbf1ca381a
lea eax, [rdi + r8]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0xc1ec]
and r9d, r13d
cmp ebp, r9d
jae 0x7ffbf1ca3810
lea r8d, [rax - 1]
jmp 0x7ffbf1ca3815
jbe 0x7ffbf1ca386e
lea edi, [rax + 1]
cmp r8d, edi
jge 0x7ffbf1ca37ee
movsxd r9, edi
mov eax, ecx
cmp r9, rax
jae 0x7ffbf1ca38a3
lea rbp, [0x7ffbf1ca0000]
mov edx, dword [r15 + r9*4 + 0xc1ec]
mov eax, edx
and eax, r13d
cmp eax, r12d
jae 0x7ffbf1ca38a3
mov r10, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r10, r13
and edx, 3
sar edi, 0x1e
add r10, rbp
xor r8d, r8d
and edi, 3
sub edi, 1
je 0x7ffbf1ca3878
sub edi, 1
je 0x7ffbf1ca3873
cmp edi, 1
jne 0x7ffbf1ca387e
mov r8, rsi
jmp 0x7ffbf1ca387e
movsxd r9, eax
jmp 0x7ffbf1ca381d
mov r8, r11
jmp 0x7ffbf1ca387e
mov r8, rsi
sub r8, r11
sub edx, 2
je 0x7ffbf1ca388e
cmp edx, 1
jne 0x7ffbf1ca3899
add qword [r10 + rbx], r8
jmp 0x7ffbf1ca3892
add dword [r10 + rbx], r8d
mov rcx, qword [0x7ffbf1cac1e8]
inc r9
mov eax, ecx
cmp r9, rax
jb 0x7ffbf1ca382b
mov eax, dword [0x7ffbf1cb6330]
mov eax, 0xee4a651c
mov rbx, qword [rsp + 0x48]
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.7ffbf1d2cc34
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret