Function at 0x140005be0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r12, r9
mov r15, r8
mov qword [rsp + 0x50], rdx
mov rsi, qword [rsp + 0xc8]
mov ebx, esi
and ebx, 0xf
mov edi, 0x10
sub rdi, rbx
mov r13, rdi
add r13, rsi
mov qword [rsp + 0x48], rcx
je 0x140005c53
setns al
js 0x140005f4a
movzx ebp, al
mov rax, qword [0x14017f268]
movzx eax, byte [rax]
mov rcx, r13
mov rdx, rbp
call sym.__rust_alloc
mov r14, rax
test rax, rax
jne 0x140005c59
mov rcx, rbp
mov rdx, r13
call dbg.handle_alloc_error
ud2
mov r14d, 1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], 0
cmp r13, rsi
jae 0x140005c8a
lea rcx, [rsp + 0x28]
mov rdx, rsi
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h4591fabb37e03175
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
jmp 0x140005c8d
xor r13d, r13d
mov rdx, qword [rsp + 0xc0]
lea rcx, [r14 + r13]
mov r8, rsi
call sym.memcpy
add r13, rsi
mov qword [rsp + 0x38], r13
or rbx, 0xfffffffffffffff0
lea rsi, [rsp + 0x28]
jmp 0x140005cd5
mov rbp, r13
mov byte [r14 + rbp], dil
lea r13, [rbp + 1]
mov qword [rsp + 0x38], r13
inc rbx
je 0x140005cf3
cmp r13, qword [rsp + 0x30]
jne 0x140005cc0
mov rcx, rsi
mov rdx, r13
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h0d3fca1784224711
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x140005cc3
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
cmp r13, 0x10
mov rdi, qword [rsp + 0x50]
jb 0x140005ead
test r12, r12
je 0x140005ece
movzx eax, byte [r15]
xor byte [r14], al
cmp r12, 1
je 0x140005ed2
movzx eax, byte [r15 + 1]
xor byte [r14 + 1], al
cmp r12, 2
je 0x140005ed9
movzx eax, byte [r15 + 2]
xor byte [r14 + 2], al
cmp r12, 3
je 0x140005ee0
movzx eax, byte [r15 + 3]
xor byte [r14 + 3], al
cmp r12, 4
je 0x140005ee7
movzx eax, byte [r15 + 4]
xor byte [r14 + 4], al
cmp r12, 5
je 0x140005eee
movzx eax, byte [r15 + 5]
xor byte [r14 + 5], al
cmp r12, 6
je 0x140005ef5
movzx eax, byte [r15 + 6]
xor byte [r14 + 6], al
cmp r12, 7
je 0x140005efc
movzx eax, byte [r15 + 7]
xor byte [r14 + 7], al
cmp r12, 8
je 0x140005f03
movzx eax, byte [r15 + 8]
xor byte [r14 + 8], al
cmp r12, 9
je 0x140005f0a
movzx eax, byte [r15 + 9]
xor byte [r14 + 9], al
cmp r12, 0xa
je 0x140005f11
movzx eax, byte [r15 + 0xa]
xor byte [r14 + 0xa], al
cmp r12, 0xb
je 0x140005f18
movzx eax, byte [r15 + 0xb]
xor byte [r14 + 0xb], al
cmp r12, 0xc
je 0x140005f1f
movzx eax, byte [r15 + 0xc]
xor byte [r14 + 0xc], al
cmp r12, 0xd
je 0x140005f26
movzx eax, byte [r15 + 0xd]
xor byte [r14 + 0xd], al
cmp r12, 0xe
je 0x140005f2d
movzx eax, byte [r15 + 0xe]
xor byte [r14 + 0xe], al
cmp r12, 0xf
je 0x140005f34
movzx eax, byte [r15 + 0xf]
xor byte [r14 + 0xf], al
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov rdx, rdi
call sym.libaes::aes_encrypt::hc1b31e6afa34f92e
add rbp, 0xfffffffffffffff1
cmp rbp, 0x10
jb 0x140005ead
lea rsi, [r14 + 0x10]
lea r15, [rsp + 0x28]
movups xmm0, xmmword [rsi - 0x10]
movups xmm1, xmmword [rsi]
xorps xmm1, xmm0
movups xmmword [rsi], xmm1
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x28], 0
mov rcx, r15
mov rdx, rdi
call sym.libaes::aes_encrypt::hc1b31e6afa34f92e
add rbp, 0xfffffffffffffff0
add rsi, 0x10
cmp rbp, 0xf
ja 0x140005e70
mov rax, qword [rsp + 0x48]
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r13
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140005f39
mov ecx, 1
jmp 0x140005f39
mov ecx, 2
jmp 0x140005f39
mov ecx, 3
jmp 0x140005f39
mov ecx, 4
jmp 0x140005f39
mov ecx, 5
jmp 0x140005f39
mov ecx, 6
jmp 0x140005f39
mov ecx, 7
jmp 0x140005f39
mov ecx, 8
jmp 0x140005f39
mov ecx, 9
jmp 0x140005f39
mov ecx, 0xa
jmp 0x140005f39
mov ecx, 0xb
jmp 0x140005f39
mov ecx, 0xc
jmp 0x140005f39
mov ecx, 0xd
jmp 0x140005f39
mov ecx, 0xe
jmp 0x140005f39
mov ecx, 0xf
lea r8, str._Users_mrx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.6.5_src_lib.rs
mov rdx, rcx
call dbg.panic_bounds_check
ud2
call dbg.capacity_overflow
ud2