Function at 0x14041d6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14042e980
mov r8d, 0x1b
mov edx, 1
lea rcx, str.fBEL_w64
mov r9, rax
call fcn.14042f100
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14042e980
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14042f258
call fcn.14042f070
nop
nop dword [rax]
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140a3e844]
mov rbx, rcx
test esi, esi
jle 0x14041d810
mov rax, qword [0x140a3e848]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14041d72b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14041d7b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14041d710
mov rcx, rbx
call fcn.14041e160
mov rdi, rax
test rax, rax
je 0x14041d832
mov rax, qword [0x140a3e848]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14041e2a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140a3e848]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14041d817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14041d7ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14041d7c0
add dword [0x140a3e844], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140a3e848]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14041d7ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect
mov edx, eax
call fcn.14041d670
nop dword [rax]
xor esi, esi
jmp 0x14041d738
mov rax, qword [0x140a3e848]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery
mov r8, qword [rax + rbx + 0x18]
call fcn.14041d670
mov rdx, rbx
lea rcx, str.Address__p_has_no
call fcn.14041d670
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov r12d, dword [0x140a3e840]
test r12d, r12d
je 0x14041d888
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [0x140a3e840], 1
call fcn.14041e1e0
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.14041e440
mov r13, qword [0x140692860]
mov rbx, qword [0x140692870]
sub rsp, rax
mov dword [0x140a3e844], 0
lea rax, [rsp + 0x30]
mov qword [0x140a3e848], rax
mov rax, r13
sub rax, rbx
cmp rax, 7
jle 0x14041d871
cmp rax, 0xb
jg 0x14041da48
mov eax, dword [rbx]
test eax, eax
jne 0x14041db50
mov eax, dword [rbx + 4]
test eax, eax
jne 0x14041db50
mov edx, dword [rbx + 8]
cmp edx, 1
jne 0x14041dba6
add rbx, 0xc
cmp rbx, r13
jae 0x14041d871
mov r14, qword [0x140692850]
mov r15d, 0xffffffff
jmp 0x14041d993
cmp ecx, 8
je 0x14041da70
cmp ecx, 0x10
jne 0x14041db82
movzx esi, word [rdi]
and edx, 0xc0
test si, si
jns 0x14041db38
or rsi, 0xffffffffffff0000
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x14041d97f
cmp rsi, 0xffff
jg 0x14041db90
cmp rsi, 0xffffffffffff8000
jl 0x14041db90
mov rcx, rdi
call 0x14041d6e0
mov word [rdi], si
add rbx, 0xc
cmp rbx, r13
jae 0x14041d9f0
mov eax, dword [rbx]
mov edx, dword [rbx + 8]
mov edi, dword [rbx + 4]
add rax, r14
movzx ecx, dl
mov r9, qword [rax]
add rdi, r14
cmp ecx, 0x20
je 0x14041dac0
jbe 0x14041d930
cmp ecx, 0x40
jne 0x14041db82
mov rsi, qword [rdi]
sub rsi, rax
add rsi, r9
and edx, 0xc0
jne 0x14041d9d9
test rsi, rsi
jns 0x14041db90
mov rcx, rdi
add rbx, 0xc
call 0x14041d6e0
mov qword [rdi], rsi
cmp rbx, r13
jb 0x14041d993
nop dword [rax]
mov ecx, dword [0x140a3e844]
test ecx, ecx
jle 0x14041d871
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea rdi, [rbp - 4]
nop dword [rax + rax]
mov rax, qword [0x140a3e848]
add rax, rbx
mov r8d, dword [rax]
test r8d, r8d
je 0x14041da2f
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov r9, rdi
call rsi
add r12d, 1
add rbx, 0x28
cmp r12d, dword [0x140a3e844]
jl 0x14041da10
jmp 0x14041d871
mov edx, dword [rbx]
test edx, edx
jne 0x14041db50
mov eax, dword [rbx + 4]
mov ecx, eax
or ecx, dword [rbx + 8]
jne 0x14041d8f8
add rbx, 0xc
jmp 0x14041d8eb
movzx esi, byte [rdi]
and edx, 0xc0
test sil, sil
jns 0x14041db20
or rsi, 0xffffffffffffff00
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x14041daaa
cmp rsi, 0xff
jg 0x14041db90
cmp rsi, 0xffffffffffffff80
jl 0x14041db90
mov rcx, rdi
call 0x14041d6e0
mov byte [rdi], sil
jmp 0x14041d98a
mov esi, dword [rdi]
and edx, 0xc0
test esi, esi
jns 0x14041db10
movabs r11, 0xffffffff00000000
or rsi, r11
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x14041daff
cmp rsi, r15
jg 0x14041db90
movabs rax, 0xffffffff7fffffff
cmp rsi, rax
jle 0x14041db90
mov rcx, rdi
call 0x14041d6e0
mov dword [rdi], esi
jmp 0x14041d98a
sub rsi, rax
add rsi, r9
test edx, edx
je 0x14041dae3
jmp 0x14041daff
sub rsi, rax
add rsi, r9
test edx, edx
je 0x14041da93
jmp 0x14041daaa
sub rsi, rax
add rsi, r9
test edx, edx
je 0x14041d965
jmp 0x14041d97f
cmp rbx, r13
jae 0x14041d871
mov r14, qword [0x140692850]
mov esi, dword [rbx + 4]
mov edi, dword [rbx]
add rbx, 8
add rsi, r14
add edi, dword [rsi]
mov rcx, rsi
call 0x14041d6e0
mov dword [rsi], edi
cmp rbx, r13
jb 0x14041db60
jmp 0x14041d9f0
mov edx, ecx
lea rcx, [0x140690298]
call fcn.14041d670
mov qword [rsp + 0x20], rsi
mov edx, ecx
mov r8, rdi
lea rcx, str._d_bit
call fcn.14041d670
lea rcx, [0x140690260]
call fcn.14041d670
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x58
mov rax, qword [0x140a3e850]
unpcklpd xmm2, xmm3
test rax, rax
je 0x14041dbf9
movsd xmm0, qword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rdx
movups xmmword [rsp + 0x30], xmm2
movsd qword [rsp + 0x40], xmm0
call rax
nop
add rsp, 0x58
ret