Function at 0x140146130
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm6
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1401464bd
mov r15, qword [rsp + 0x310]
test r15, r15
je 0x14014644a
mov rsi, r9
mov rax, qword [rsp + 0x28]
lea rdi, [rax + 0x30]
lea rbx, [rsp + 0x1c0]
xor r13d, r13d
xorps xmm6, xmm6
lea r14, [rsp + 0x1b8]
jmp 0x1401461c2
add rsi, rbp
sub r15, rbp
inc r13
test r15, r15
je 0x14014644a
mov rbp, qword [rsp + 0x30]
cmp r15, rbp
cmovb rbp, r15
movzx ecx, byte [0x1404ecff4]
call fcn.14016e820
cmp al, 2
jne 0x140146439
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmm3, xmmword [rdi + 0x30]
movups xmmword [rbx + 0x30], xmm3
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0xb8], xmm6
movups xmmword [rbx + 0xa8], xmm6
movups xmmword [rbx + 0x98], xmm6
movups xmmword [rbx + 0x88], xmm6
movups xmmword [rbx + 0x78], xmm6
movups xmmword [rbx + 0x68], xmm6
movups xmmword [rbx + 0x58], xmm6
movups xmmword [rbx + 0x48], xmm6
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x200], 0
mov qword [rsp + 0x288], 0
mov rcx, r14
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.140139bd0
movabs rax, 0x100000000
cmp r13, rax
je 0x140146466
mov eax, r13d
bswap eax
mov dword [rsp + 0xe0], eax
mov r8d, 4
mov rcx, r14
lea r12, [rsp + 0xe0]
mov rdx, r12
call fcn.140139bd0
mov r8d, 0xd8
mov rcx, r12
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x1f8]
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rsp + 0x1b8]
movups xmm1, xmmword [rsp + 0x1c8]
movups xmm2, xmmword [rsp + 0x1d8]
movups xmm3, xmmword [rsp + 0x1e8]
movaps xmmword [rsp + 0xc0], xmm3
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
cmp r9, 0x81
jae 0x140146494
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x130]
call fcn.1401398d0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x10]
cmp rcx, 0x40
ja 0x1401464aa
cmp rbp, rcx
cmovb rcx, rbp
test rcx, rcx
je 0x1401461b0
cmp rcx, 8
jae 0x140146370
xor eax, eax
jmp 0x140146420
cmp rcx, 0x10
jae 0x1401463ac
xor eax, eax
mov rdx, rax
mov rax, rcx
and rax, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov r8, qword [rsp + rdx + 0x50]
xor qword [rsi + rdx], r8
add rdx, 8
cmp rax, rdx
jne 0x140146390
cmp rcx, rax
jne 0x140146420
jmp 0x1401461b0
mov rax, rcx
and rax, 0xfffffffffffffff0
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsi]
xorps xmm1, xmm0
movups xmmword [rsi], xmm1
cmp rax, 0x10
je 0x140146406
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsi + 0x10]
xorps xmm1, xmm0
movups xmmword [rsi + 0x10], xmm1
cmp rax, 0x20
je 0x140146406
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsi + 0x20]
xorps xmm1, xmm0
movups xmmword [rsi + 0x20], xmm1
cmp rax, 0x30
je 0x140146406
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsi + 0x30]
xorps xmm1, xmm0
movups xmmword [rsi + 0x30], xmm1
cmp rcx, rax
je 0x1401461b0
test cl, 8
jne 0x140146378
nop dword [rax + rax]
movzx edx, byte [rsp + rax + 0x50]
xor byte [rsi + rax], dl
lea rdx, [rax + 1]
mov rax, rdx
cmp rcx, rdx
jne 0x140146420
jmp 0x1401461b0
lea rcx, [0x1404ecff4]
call fcn.140343cd0
jmp 0x1401461e2
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.C:Users_antoi.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.5_src_rsapadding.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140379490]
lea r9, fcn.140003b60
lea r8, [rsp + 0xe0]
mov edx, 0x2b
call fcn.1403502c0
ud2
lea r8, [0x140376eb0]
mov edx, 0x80
mov rcx, r9
call fcn.1403503e0
ud2
lea r8, [0x1403797d0]
mov edx, 0x40
call fcn.1403503e0
ud2
lea rax, str.chunk_size_must_be_non_zero
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 1
lea rax, str.chunk_size_must_be_non_zero
mov qword [rsp + 0xf0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xf8], xmm0
lea rdx, str.C:Users_antoi.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.5_src_rsapadding.rs
lea rcx, [rsp + 0xe0]
call fcn.14034fe60
ud2