Function at 0x140004940
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rdx
mov r15, rcx
mov rbx, qword [rdx + 0x18]
mov r12, qword [rdx + 0x20]
test rbx, rbx
je 0x14000496d
mov rax, qword [r12 + 0x30]
jmp 0x140004972
mov eax, dword [r12 + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [r12 + 0x50]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x78]
mov r8d, 0x3000
mov r9d, 4
call sym.memexec::peloader::winapi::nt_alloc_vm::h81b7d4ecf65a58f0
cmp eax, 0xb
je 0x1400049ce
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x78]
mov r8d, 0x3000
mov r9d, 4
call sym.memexec::peloader::winapi::nt_alloc_vm::h81b7d4ecf65a58f0
cmp eax, 0xb
jne 0x140004e9b
mov rbp, qword [rdi + 0x28]
mov r13, qword [rdi + 0x30]
test r13, r13
je 0x140004a15
mov rsi, qword [rdi + 0x48]
lea rax, [r13*8]
lea rdi, [rax + rax*4]
xor r14d, r14d
nop
mov edx, dword [rbp + r14 + 0x14]
add rdx, rsi
mov ecx, dword [rbp + r14 + 0xc]
mov r8d, dword [rbp + r14 + 0x10]
add rcx, qword [rsp + 0x28]
call sym.memcpy
add r14, 0x28
cmp rdi, r14
jne 0x1400049f0
mov rsi, qword [rsp + 0x28]
test rbx, rbx
je 0x140004a41
lea rdx, [r12 + 0x88]
mov rcx, qword [r12 + 0x30]
mov rax, rsi
sub rax, rcx
mov qword [rsp + 0x88], r13
jne 0x140004a5f
jmp 0x140004b32
lea rdx, [r12 + 0x78]
mov ecx, dword [r12 + 0x34]
mov rax, rsi
sub rax, rcx
mov qword [rsp + 0x88], r13
je 0x140004b32
mov ecx, dword [rdx + 0x28]
test rcx, rcx
je 0x140004b32
cmp dword [rdx + 0x2c], 0
je 0x140004b32
add rcx, rsi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140004aa3
jmp 0x140004b24
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x140004b24
cmp r8d, 0xa
jb 0x140004b14
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 0x140004ad8
inc r9
cmp r8, r9
je 0x140004b10
movzx r10d, word [rcx + r9*2 + 8]
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140004ad0
mov r11d, dword [rcx]
and r10d, 0xfff
add r11, rsi
add qword [r10 + r11], rax
jmp 0x140004ad0
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140004aa3
cmp dword [rcx], 0
jne 0x140004a90
mov rsi, qword [rsp + 0x28]
shl ebx, 4
lea r14, [rbx + 0x78]
mov qword [rsp + 0x68], r12
cmp dword [r12 + rbx + 0x84], 0
je 0x140004dea
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + r14 + 8]
test rax, rax
je 0x140004dea
add rax, rsi
lea rcx, [rsi + 2]
mov qword [rsp + 0x90], rcx
lea r12, [rsp + 0x40]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x80], r14
mov ebx, dword [rax + 0xc]
test rbx, rbx
jne 0x140004bb0
cmp dword [rax + 0x10], 0
jne 0x140004bb0
cmp dword [rax], 0
jne 0x140004bb0
cmp dword [rax + 4], 0
jne 0x140004bb0
cmp dword [rax + 8], 0
je 0x140004dea
nop word cs:[rax + rax]
mov qword [rsp + 0x70], rax
add rbx, rsi
mov rcx, rbx
call sym.strlen
lea r8, [rax + 1]
mov rcx, r12
mov rdx, rbx
call sym.core::ffi::c_str::CStr::to_str::hcc59274ddb0f60e4
cmp qword [rsp + 0x40], 0
jne 0x140004f3a
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rcx, r12
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
mov rdx, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140004f41
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rcx, r14
call sub.KERNEL32.dll_LoadLibraryA
mov r12, rax
test rax, rax
mov rbx, qword [rsp + 0x38]
cmove rax, rbx
mov qword [rsp + 0x60], rax
mov byte [r14], 0
test r15, r15
je 0x140004c45
mov r8d, 1
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
test r12, r12
je 0x140004f5f
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
mov ecx, dword [rcx + 0x10]
add rcx, rsi
lea rdx, [rsi + rax]
test rax, rax
mov qword [rsp + 0x38], rcx
cmove rdx, rcx
mov qword [rsp + 0x98], rdx
mov r15, qword [rdx]
test r15, r15
je 0x140004d90
xor ebx, ebx
lea r12, [rsp + 0x40]
jmp 0x140004cd6
movzx edx, r15w
mov rcx, qword [rsp + 0x60]
call sub.KERNEL32.dll_GetProcAddress
mov r14, rdi
mov rcx, rax
test rax, rax
je 0x140004f30
mov rdx, qword [rsp + 0x38]
mov qword [rdx + rbx], rcx
mov rcx, qword [rsp + 0x98]
mov r15, qword [rcx + rbx + 8]
add rbx, 8
mov rdi, r14
mov r13, rax
test r15, r15
je 0x140004db0
test r15, r15
js 0x140004c90
mov rax, qword [rsp + 0x90]
cmp byte [rax + r15], 0
je 0x140004d9d
add r15, rax
mov rcx, r15
call sym.strlen
lea r8, [rax + 1]
mov rcx, r12
mov rdx, r15
call sym.core::ffi::c_str::CStr::to_str::hcc59274ddb0f60e4
cmp qword [rsp + 0x40], 0
jne 0x140004efb
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rcx, r12
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
mov rdx, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140004f02
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rdx, r15
call sub.KERNEL32.dll_GetProcAddress
mov r14, rax
mov byte [r15], 0
test r12, r12
je 0x140004d72
mov r8d, 1
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
mov rax, r13
mov rcx, r14
test r14, r14
lea r12, [rsp + 0x40]
jne 0x140004cad
jmp 0x140004f22
mov rax, r13
mov r14, rdi
lea r12, [rsp + 0x40]
jmp 0x140004db0
mov rax, r13
mov r14, rdi
nop word cs:[rax + rax]
mov rcx, qword [rsp + 0x70]
add rcx, 0x14
mov r13, rax
mov rax, rcx
mov rdi, r14
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rcx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x80]
mov ebx, dword [rax + 0xc]
test rbx, rbx
jne 0x140004bb0
jmp 0x140004b89
mov r13, r14
mov rax, qword [rsp + 0x88]
test rax, rax
mov r12, qword [rsp + 0x68]
je 0x140004ea8
shl rax, 3
lea rsi, [rax + rax*4]
xor r14d, r14d
lea rdi, [rsp + 0x40]
lea rbx, [rsp + 0xa0]
jmp 0x140004e39
mov rcx, rdi
mov rdx, rbx
call sym.memexec::peloader::winapi::nt_protect_vm::h5b966de134423d01
cmp eax, 0xb
jne 0x140004e9b
add r14, 0x28
cmp rsi, r14
je 0x140004ea8
mov eax, dword [rbp + r14 + 0x10]
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140004e30
mov eax, dword [rbp + r14 + 0xc]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + r14 + 0x24]
test eax, 0x20000000
jne 0x140004e80
mov r8d, 1
test eax, 0x40000000
je 0x140004e20
shr eax, 0x1f
lea r8d, [rax*2 + 2]
jmp 0x140004e20
mov r8d, 0x10
test eax, 0x40000000
je 0x140004e20
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x140004e20
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
jmp 0x140004f71
mov rdi, qword [rsp + 0x28]
cmp dword [r12 + r13 + 0x4c], 0
je 0x140004eee
mov eax, dword [r12 + r13 + 0x48]
test rax, rax
je 0x140004eee
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x140004eee
add rsi, 8
mov rcx, rdi
mov edx, 1
xor r8d, r8d
call rax
mov rax, qword [rsi]
add rsi, 8
test rax, rax
jne 0x140004ed0
mov rdi, qword [rsp + 0x28]
mov qword [r15 + 8], rdi
mov dword [r15], 0
jmp 0x140004f78
mov eax, 5
jmp 0x140004f64
test rdx, rdx
mov r15, qword [rsp + 0x30]
je 0x140004f1c
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call sym.__rust_dealloc
xor eax, eax
mov ebx, edi
jmp 0x140004f69
mov eax, 2
mov r15, qword [rsp + 0x30]
mov ebx, edi
jmp 0x140004f69
mov eax, 2
mov ebx, r13d
jmp 0x140004f64
mov eax, 5
jmp 0x140004f69
test rdx, rdx
mov rbx, qword [rsp + 0x38]
je 0x140004f5b
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call sym.__rust_dealloc
xor eax, eax
jmp 0x140004f69
mov eax, 1
mov r15, qword [rsp + 0x30]
mov dword [r15 + 4], eax
mov dword [r15 + 8], ebx
mov dword [r15], 1
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret