Function at 0x1400666c0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov rdi, rdx
mov r15, rcx
mov rsi, qword [rdx + 0x18]
mov r13, qword [rdx + 0x20]
test rsi, rsi
je 0x1400666fc
mov rax, qword [r13 + 0x30]
jmp 0x140066700
mov eax, dword [r13 + 0x34]
mov qword [rbp + 0x40], rax
mov eax, dword [r13 + 0x50]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.140067210
cmp eax, 0xb
je 0x140066754
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.140067210
cmp eax, 0xb
jne 0x140066dbb
mov qword [rbp - 0x20], rsi
mov r12, qword [rdi + 0x28]
mov r14, qword [rdi + 0x30]
test r14, r14
je 0x1400667a4
mov rsi, qword [rdi + 0x48]
lea rax, [r14*8]
lea rdi, [rax + rax*4]
xor ebx, ebx
nop word [rax + rax]
mov edx, dword [r12 + rbx + 0x14]
add rdx, rsi
mov ecx, dword [r12 + rbx + 0xc]
mov r8d, dword [r12 + rbx + 0x10]
add rcx, qword [rbp + 0x40]
call fcn.1400ac2e0
add rbx, 0x28
cmp rdi, rbx
jne 0x140066780
mov rsi, qword [rbp - 0x20]
mov rax, rsi
shl rax, 4
mov rdi, qword [rbp + 0x40]
test rsi, rsi
je 0x1400667be
mov rcx, qword [r13 + 0x30]
jmp 0x1400667c2
mov ecx, dword [r13 + 0x34]
mov qword [rbp - 0x18], r13
add r13, rax
add r13, 0x78
mov rax, rdi
sub rax, rcx
je 0x1400668ae
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x1400668ae
cmp dword [r13 + 0x2c], 0
je 0x1400668ae
add rcx, rdi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140066820
jmp 0x140066890
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x140066890
cmp r8d, 0xa
jb 0x140066814
lea r9, [r8 - 8]
shr r9, 0x3f
add r8, r9
add r8, 0xfffffffffffffff8
sar r8, 1
cmp r8, 2
cmovl r8, rdx
xor r9d, r9d
jmp 0x140066855
cmp r8, r9
je 0x140066810
movzx r10d, word [rcx + r9*2 + 8]
inc r9
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140066850
mov r11d, dword [rcx]
and r10d, 0xfff
add r10, r11
add qword [rdi + r10], rax
jmp 0x140066850
cmp dword [rcx], 0
je 0x1400668aa
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140066820
jmp 0x140066890
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0xc], 0
je 0x140066b73
mov eax, dword [r13 + 8]
test eax, eax
je 0x140066b73
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x40], r13
mov qword [rbp + 0x38], r15
add rax, rdi
lea r15, [rbp + 8]
mov rsi, rax
mov qword [rbp - 0x50], r12
mov r14d, dword [rsi + 0xc]
test r14, r14
jne 0x140066910
cmp dword [rsi + 0x10], 0
jne 0x140066910
cmp dword [rsi], 0
jne 0x140066910
cmp dword [rsi + 4], 0
jne 0x140066910
cmp dword [rsi + 8], 0
je 0x140066b5f
nop word cs:[rax + rax]
add r14, rdi
mov rcx, r14
call fcn.1400920a0
lea r8, [rax + 1]
mov rcx, r15
mov rdx, r14
call fcn.1400920b0
cmp qword [rbp + 8], 0
mov ecx, 5
jne 0x140066b22
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r15
call fcn.14008e7c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140066b38
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rcx
call sub.kernel32.dll_LoadLibraryA
mov r15, rax
test rax, rax
mov r14, rax
cmove r14, qword [rbp]
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140066995
mov r8d, 1
call fcn.140066670
test r15, r15
je 0x140066b50
mov eax, dword [rsi]
mov qword [rbp - 0x48], rsi
mov ecx, dword [rsi + 0x10]
add rcx, rdi
lea rdx, [rdi + rax]
test rax, rax
mov qword [rbp], rcx
cmove rdx, rcx
mov qword [rbp - 0x58], rdx
mov rcx, qword [rdx]
test rcx, rcx
je 0x140066ac0
xor esi, esi
jmp 0x140066a12
movzx edx, cx
mov rcx, r14
call sub.kernel32.dll_GetProcAddress
mov r15, r13
mov rcx, rax
test rax, rax
je 0x140066b18
mov rdx, qword [rbp]
mov qword [rdx + rsi], rcx
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + rsi + 8]
add rsi, 8
mov r13, r15
mov rbx, rax
test rcx, rcx
mov r12, qword [rbp - 0x50]
je 0x140066ac6
test rcx, rcx
js 0x1400669d0
cmp byte [rdi + rcx + 2], 0
je 0x140066ac0
mov r12, r13
mov r13, r14
lea r15, [rdi + rcx]
add r15, 2
mov rcx, r15
call fcn.1400920a0
lea r8, [rax + 1]
lea r14, [rbp + 8]
mov rcx, r14
mov rdx, r15
call fcn.1400920b0
cmp qword [rbp + 8], 0
jne 0x140066aee
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r14
call fcn.14008e7c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140066af9
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov r14, r13
mov rcx, r13
mov qword [rbp + 0x50], rdx
call sub.kernel32.dll_GetProcAddress
mov r15, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140066aac
mov r8d, 1
call fcn.140066670
mov rax, rbx
mov rcx, r15
test r15, r15
jne 0x1400669ea
jmp 0x140066b11
mov r15, r13
mov rax, rbx
mov rsi, qword [rbp - 0x48]
add rsi, 0x14
mov r13, r15
mov rbx, rax
mov qword [rbp], r14
lea r15, [rbp + 8]
mov r14d, dword [rsi + 0xc]
test r14, r14
jne 0x140066910
jmp 0x1400668e8
mov rax, qword [rbp + 0x38]
mov ecx, 5
jmp 0x140066b26
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140066b0d
mov r8d, 1
call fcn.140066670
xor ecx, ecx
jmp 0x140066b22
mov ecx, 2
jmp 0x140066b22
mov ecx, 2
mov r12d, ebx
jmp 0x140066b22
mov rax, qword [rbp + 0x38]
mov dword [rax + 4], ecx
mov dword [rax + 8], r12d
mov dword [rax], 1
jmp 0x140066e18
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140066b4c
mov r8d, 1
call fcn.140066670
xor ecx, ecx
jmp 0x140066b55
mov ecx, 1
mov rax, qword [rbp + 0x38]
mov r12, qword [rbp]
jmp 0x140066b26
mov rdi, qword [rbp + 0x40]
mov r15, qword [rbp + 0x38]
mov r13, qword [rbp - 0x40]
mov r14, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x20]
test rsi, rsi
je 0x140066d16
mov rax, qword [rbp - 0x18]
cmp dword [rax + 0xa4], 0
je 0x140066d16
lea rdx, str.kernel32.dllRtlAddFunctionTableRtlAddFunctionTable:__n
lea rcx, [rbp + 8]
mov r8d, 0xc
call fcn.14008e7c0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140066bc9
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140066d16
mov r8d, 1
call fcn.140066670
jmp 0x140066d16
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rcx
call sub.kernel32.dll_LoadLibraryA
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140066bfc
mov r8d, 1
call fcn.140066670
test rbx, rbx
je 0x140066d16
lea rdx, [0x140213f04]
lea rcx, [rbp + 8]
mov r8d, 0x13
call fcn.14008e7c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140066bac
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov rcx, rbx
mov qword [rbp + 0x50], rdx
call sub.kernel32.dll_GetProcAddress
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140066c5a
mov r8d, 1
call fcn.140066670
test rbx, rbx
je 0x140066d16
mov qword [rbp - 0x30], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [0x1400666b0]
mov qword [rbp - 8], rax
lea rsi, [0x140213f30]
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], 2
mov qword [rbp + 0x28], 0
lea rbx, [rbp - 0x10]
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 1
lea rcx, [rbp + 8]
call fcn.14007a410
mov rax, qword [rbp - 0x18]
mov ecx, dword [rax + 0xa0]
mov eax, dword [rax + 0xa4]
add rcx, rdi
mov edx, 0xaaaaaaab
imul rdx, rax
shr rdx, 0x23
mov r8, rdi
call qword [rbp - 0x30]
test eax, eax
setne byte [rbp + 0x5f]
lea rax, [rbp + 0x5f]
mov qword [rbp - 0x10], rax
lea rax, [0x140094d70]
mov qword [rbp - 8], rax
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], 2
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 1
lea rcx, [rbp + 8]
call fcn.14007a410
test r14, r14
je 0x140066dcc
shl r14, 3
lea rsi, [r14 + r14*4]
xor r14d, r14d
lea rdi, [rbp + 8]
lea rbx, [rbp - 0x10]
jmp 0x140066d59
mov rcx, rdi
mov rdx, rbx
call fcn.1400673d0
cmp eax, 0xb
jne 0x140066dbb
add r14, 0x28
cmp rsi, r14
je 0x140066dcc
mov eax, dword [r12 + r14 + 0x10]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140066d50
mov eax, dword [r12 + r14 + 0xc]
add rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
mov eax, dword [r12 + r14 + 0x24]
test eax, 0x20000000
jne 0x140066da0
mov r8d, 1
test eax, 0x40000000
je 0x140066d40
shr eax, 0x1f
lea r8d, [rax + rax]
add r8d, 2
jmp 0x140066d40
mov r8d, 0x10
test eax, 0x40000000
je 0x140066d40
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x140066d40
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
mov dword [r15], 1
jmp 0x140066e18
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0x4c], 0
je 0x140066e0d
mov eax, dword [r13 + 0x48]
test eax, eax
je 0x140066e0d
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x140066e0d
add rsi, 8
mov rcx, rdi
mov edx, 2
xor r8d, r8d
call rax
mov rax, qword [rsi]
add rsi, 8
test rax, rax
jne 0x140066df0
mov rdi, qword [rbp + 0x40]
mov qword [r15 + 8], rdi
mov dword [r15], 0
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret