Function at 0x7ffbf1cd159c
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
lea rsi, [0x7ffbf1ca0000]
mov eax, 0xfffffff
mov qword [rsp + 0x40], rdx
lea r13, [rcx + 0x18]
lea r11, [0x7ffbf1ca0000]
mov r15d, 0x8000
mov r12, qword [r13]
mov qword [rsp + 0x48], rcx
mov r14d, dword [r12 + 5]
inc r12
and r14, rax
mov qword [rsp + 0x50], r13
mov edx, dword [r12]
shr rdx, 1
add r14, rsi
and rdx, rax
mov eax, dword [0x7ffbf1cb6330]
mov rcx, rax
lea rbp, [rax + rdx - 1]
mov rax, rbp
xor edx, edx
div rcx
sub rbp, rdx
mov eax, dword [0x7ffbf1cb6330]
mov eax, dword [0x7ffbf1cb6330]
mov eax, dword [0x7ffbf1d46a58]
test eax, eax
mov r10d, dword [0x7ffbf1d46a58]
je 0x7ffbf1cd16d2
mov edi, dword [0x7ffbf1d46a58]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x7ffbf1cd168c
mov rcx, qword [0x7ffbf1d6a520]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x7ffbf1cd165d
mov qword [0x7ffbf1d6a520], rcx
xor edx, edx
div rdi
test r10, r10
je 0x7ffbf1cd16c7
inc r8
mov ecx, 0xffff3cd2
mov eax, 0xc32d
lock cmpxchg dword [r11 + rdx*4 + 0xcb084], ecx
je 0x7ffbf1cd1933
mov ecx, dword [0x7ffbf1d46a58]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x7ffbf1cd1696
xor ebx, ebx
test rbx, rbx
jne 0x7ffbf1cd17f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
inc rdi
mov rcx, qword [0x7ffbf1d690d0]
mov r9, rcx
xor eax, eax
test rcx, rcx
mov r8, rcx
je 0x7ffbf1cd1729
mov rcx, qword [0x7ffbf1d6a520]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x7ffbf1cd16fa
mov qword [0x7ffbf1d6a520], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov rcx, rdx
shl rcx, 0x10
mov rdx, rbp
mov r8d, 0x3000
add rcx, qword [0x7ffbf1d68290]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x7ffbf1cd1791
mov rdx, rax
mov rcx, rax
mov r8d, ebp
and qword [rsp + 0x28], 0
lea r9, [0x7ffbf1d42740]
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x7ffbf1cd17a5
xor edx, edx
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x7ffbf1cd16dc
xor ebx, ebx
cmp qword [0x7ffbf1d690c8], rbx
ja 0x7ffbf1cd17b3
test bl, 3
je 0x7ffbf1cd17d5
test rbx, rbx
je 0x7ffbf1cd17d3
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
lea r11, [0x7ffbf1ca0000]
je 0x7ffbf1cd1626
mov rdi, rbx
mov rcx, rbp
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0xbc0ba679
lea rsi, [0x7ffbf1ca0000]
add qword [r13], 9
mov r10d, dword [0x7ffbf1cb6330]
mov r9d, r14d
mov ebp, dword [r12]
shr rbp, 1
and ebp, 0xfffffff
mov qword [rsp + 0x58], rbp
xor edi, edi
sub r10, rbp
sub r9d, esi
inc r10
mov r8, r10
je 0x7ffbf1cd186a
mov rdx, qword [0x7ffbf1d6a520]
imul rdx, rdx, 0x343fd
shl rdi, 0x10
shr r8, 0x10
add rdx, 0x269ec3
mov rcx, rdx
shr rcx, 0x10
movzx eax, cx
or rdi, rax
test r8, r8
jne 0x7ffbf1cd183b
mov qword [0x7ffbf1d6a520], rdx
mov ecx, r9d
xor edx, edx
mov rax, rdi
div r10
lea r15, [rdx + rbx]
mov r8, r15
mov rdx, rbp
mov eax, 0x7ff8bdb5
xor dl, dl
test rbp, rbp
je 0x7ffbf1cd1aec
lea rcx, [rsp + 0x34]
lea rbx, [rbp - 1]
mov eax, dword [r14 + rbp]
mov dword [rcx], eax
movzx eax, word [r14 + rbp + 4]
mov word [rcx + 4], ax
mov r12b, byte [rsp + 0x35]
mov r8b, byte [rsp + 0x38]
mov al, byte [rsp + 0x36]
or al, 1
mov sil, byte [rsp + 0x34]
mov byte [rsp + 0x32], al
or r8b, 1
mov al, byte [rsp + 0x39]
mov byte [rsp + 0x30], r8b
or al, 1
or sil, 1
test rbx, rbx
mov byte [rsp + 0x31], al
je 0x7ffbf1cd1a7c
mov rax, r15
lea r11, [rbx + r14]
sub rax, r14
mov r13b, byte [rsp + 0x32]
mov bpl, byte [rsp + 0x31]
mov qword [rsp + 0x60], rax
test bl, 1
mov cl, byte [r11]
movzx r8d, cl
je 0x7ffbf1cd19ae
movzx r9d, byte [rsp + 0x37]
xor cl, byte [rsp + 0x37]
and cl, 1
je 0x7ffbf1cd194a
mov eax, r9d
movzx edi, r13b
shr eax, 1
shr edi, 1
xor edi, eax
mov eax, r8d
btc eax, 8
sar eax, 1
xor edi, eax
jmp 0x7ffbf1cd1952
mov ecx, dword [0x7ffbf1cb6330]
imul rcx, rdx
lea rbx, [rcx + r11 + 0xae000]
jmp 0x7ffbf1cd16c9
mov edi, r8d
xor edi, r9d
shr edi, 1
movzx r10d, byte [r11 - 1]
mov eax, r10d
xor eax, edi
test al, 1
je 0x7ffbf1cd199d
test cl, cl
je 0x7ffbf1cd197d
btc r8d, 8
movzx ecx, r13b
shr r9d, 1
shr ecx, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1cd1985
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
movzx eax, bpl
xor r10d, ecx
shr eax, 1
sar r10d, 1
btc eax, 7
xor eax, r10d
jmp 0x7ffbf1cd1a55
test cl, cl
je 0x7ffbf1cd1a46
movzx ecx, r13b
jmp 0x7ffbf1cd1a31
xor cl, r12b
movzx r9d, r12b
and cl, 1
je 0x7ffbf1cd19d4
movzx edi, sil
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 0x7ffbf1cd19dc
mov edi, r8d
xor edi, r9d
shr edi, 1
movzx r10d, byte [r11 - 1]
mov eax, r10d
xor eax, edi
test al, 1
je 0x7ffbf1cd1a29
test cl, cl
je 0x7ffbf1cd1a07
btc r8d, 8
movzx ecx, sil
shr r9d, 1
shr ecx, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1cd1a0f
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
xor r10d, ecx
movzx r8d, byte [rsp + 0x30]
sar r10d, 1
mov eax, r8d
shr eax, 1
btc eax, 7
xor eax, r10d
jmp 0x7ffbf1cd1a5a
test cl, cl
je 0x7ffbf1cd1a46
movzx ecx, sil
btc r8d, 8
shr ecx, 1
shr r9d, 1
sar r8d, 1
xor ecx, r9d
xor ecx, r8d
jmp 0x7ffbf1cd1a4e
mov ecx, r8d
xor ecx, r9d
shr ecx, 1
mov eax, r10d
xor eax, ecx
sar eax, 1
mov r8b, byte [rsp + 0x30]
xor dl, al
mov rcx, qword [rsp + 0x60]
mov byte [r11 + rcx], al
dec r11
sub rbx, 1
jne 0x7ffbf1cd18fa
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
movzx eax, r12b
mov dil, byte [r14]
movzx ecx, byte [r14]
xor ecx, eax
xor dil, r12b
shr ecx, 1
and dil, 1
je 0x7ffbf1cd1aa2
movzx eax, sil
btc eax, 8
sar eax, 1
xor eax, ecx
jmp 0x7ffbf1cd1aa4
mov eax, ecx
test al, 1
je 0x7ffbf1cd1ac9
test dil, dil
je 0x7ffbf1cd1abb
movzx edi, sil
btc edi, 8
sar edi, 1
xor edi, ecx
jmp 0x7ffbf1cd1abd
mov edi, ecx
movzx eax, r8b
xor eax, edi
btc eax, 8
jmp 0x7ffbf1cd1ade
test dil, dil
je 0x7ffbf1cd1adc
movzx eax, sil
btc eax, 8
sar eax, 1
xor eax, ecx
jmp 0x7ffbf1cd1ade
mov eax, ecx
sar eax, 1
xor dl, al
lea rsi, [0x7ffbf1ca0000]
mov byte [r15], al
cmp dl, byte [r14 + rbp + 6]
je 0x7ffbf1cd1bb3
call fcn.7ffbf1d47140
mov r9d, 0xffff
and r13, 0xfffffffffffffff8
lea r8, [r13 + 0xfff]
mov r10, rax
lea r15, [fcn.7ffbf1cb7480]
mov r11, qword [rsp + 0x48]
mov rax, 0xfffffffffffff000
and r10, rax
mov qword [r11 + 0x10], r15
and r8, rax
xor edi, edi
mov rax, qword [0x7ffbf1d6a520]
imul rax, rax, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rax, 0x269ec3
mov rcx, rax
shr rcx, 0x10
movzx edx, cx
or rdi, rdx
test r9, r9
jne 0x7ffbf1cd1b36
mov qword [0x7ffbf1d6a520], rax
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
mov rax, qword [rsp + 0x40]
sub rdi, rdx
inc rdi
mov qword [rax + 0x98], r10
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x40], r9
jmp 0x7ffbf1cd1ba9
mov rax, qword [rsp + 0x40]
mov qword [r13], rax
add r13, 8
cmp r13, r8
jb 0x7ffbf1cd1b9c
jmp 0x7ffbf1cd1cba
mov rax, qword [0x7ffbf1cf0238]
mov rbx, r14
sub rbx, r15
sub rsi, rax
jne 0x7ffbf1cd1bce
test rbx, rbx
je 0x7ffbf1cd1caa
lea r12, [0x7ffbf1ca0000]
mov r11, r15
mov rcx, qword [0x7ffbf1cac1e8]
sub r11, r14
lea r13, [0x7ffbf1ca0000]
lea r8d, [rcx - 1]
sub r14d, r13d
xor edi, edi
add ebp, r14d
test r8d, r8d
js 0x7ffbf1cd1c2a
lea eax, [rdi + r8]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r12 + rdx*4 + 0xc1ec]
and r9d, 0xfffffff
cmp r14d, r9d
jae 0x7ffbf1cd1c20
lea r8d, [rax - 1]
jmp 0x7ffbf1cd1c25
jbe 0x7ffbf1cd1c2f
lea edi, [rax + 1]
cmp r8d, edi
jge 0x7ffbf1cd1bfa
movsxd r9, edi
jmp 0x7ffbf1cd1ca3
movsxd r9, eax
jmp 0x7ffbf1cd1ca3
mov edx, dword [r12 + r9*4 + 0xc1ec]
mov eax, edx
mov edi, 0xfffffff
and eax, edi
cmp eax, ebp
jae 0x7ffbf1cd1caa
xor r8d, r8d
mov r10, rdx
and r10, rdi
mov edi, edx
sar edx, 0x1e
shl edi, 2
add r10, r13
and edx, 3
sar edi, 0x1e
and edi, 3
sub edi, 1
je 0x7ffbf1cd1c7f
sub edi, 1
je 0x7ffbf1cd1c7a
cmp edi, 1
jne 0x7ffbf1cd1c85
mov r8, rsi
jmp 0x7ffbf1cd1c85
mov r8, rbx
jmp 0x7ffbf1cd1c85
mov r8, rsi
sub r8, rbx
sub edx, 2
je 0x7ffbf1cd1c95
cmp edx, 1
jne 0x7ffbf1cd1ca0
add qword [r10 + r11], r8
jmp 0x7ffbf1cd1c99
add dword [r10 + r11], r8d
mov rcx, qword [0x7ffbf1cac1e8]
inc r9
mov eax, ecx
cmp r9, rax
jb 0x7ffbf1cd1c34
mov eax, dword [0x7ffbf1cb6330]
mov eax, 0x782c2b33
mov r11, qword [rsp + 0x48]
mov qword [r11 + 0x10], r15
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