Function at 0x140180260
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 + 0x40]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14018062a
mov rbp, qword [rsp + 0x310]
test rbp, rbp
je 0x1401805b7
mov rsi, r9
xor r12d, r12d
xorps xmm6, xmm6
lea rdi, [rsp + 0xe0]
lea rbx, [rsp + 0x1b8]
jmp 0x1401802e2
add rsi, r13
inc r12
test rbp, rbp
mov rbx, r14
je 0x1401805b7
mov r13, qword [rsp + 0x30]
cmp rbp, r13
cmovb r13, rbp
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
lea rax, [rsp + 0x160]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1b0], 0
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.14017d700
movabs rax, 0x100000000
cmp r12, rax
je 0x1401805d3
mov eax, r12d
bswap eax
mov dword [rsp + 0x1b8], eax
mov r8d, 4
mov rcx, rdi
mov rdx, rbx
call fcn.14017d700
mov r8d, 0xd8
mov rcx, rbx
mov r15, rdi
mov rdx, rdi
call fcn.1401d84a0
mov rax, qword [rsp + 0x280]
mov r9, qword [rax + 0x50]
lea rax, [rsp + 0x238]
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0xc0], xmm3
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
cmp r9, 0x81
jae 0x140180601
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov r14, rbx
mov r8, rbx
call fcn.14017d3f0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x40]
cmp rcx, 0x41
jae 0x140180617
sub rbp, r13
cmp r13, rcx
cmovb rcx, r13
test rcx, rcx
mov rdi, r15
je 0x1401802d0
cmp rcx, 8
jae 0x140180490
xor eax, eax
jmp 0x140180590
cmp rcx, 0x20
jae 0x14018049d
xor eax, eax
jmp 0x140180559
mov rax, rcx
and rax, 0xffffffffffffffe0
lea rdx, [rax - 0x20]
mov r8, rdx
shr r8, 5
inc r8
test rdx, rdx
je 0x1401805a9
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebx, ebx
nop word cs:[rax + rax]
movups xmm0, xmmword [rsp + rbx + 0x48]
movups xmm1, xmmword [rsp + rbx + 0x58]
movups xmm2, xmmword [rsi + rbx]
xorps xmm2, xmm0
movups xmm0, xmmword [rsi + rbx + 0x10]
xorps xmm0, xmm1
movups xmm1, xmmword [rsi + rbx + 0x20]
movups xmm3, xmmword [rsi + rbx + 0x30]
movups xmmword [rsi + rbx], xmm2
movups xmmword [rsi + rbx + 0x10], xmm0
movups xmm0, xmmword [rsp + rbx + 0x68]
xorps xmm0, xmm1
movups xmm1, xmmword [rsp + rbx + 0x78]
xorps xmm1, xmm3
movups xmmword [rsi + rbx + 0x20], xmm0
movups xmmword [rsi + rbx + 0x30], xmm1
add rbx, 0x40
add rdx, 0xfffffffffffffffe
jne 0x1401804d0
test r8b, 1
je 0x140180548
movups xmm0, xmmword [rsp + rbx + 0x48]
movups xmm1, xmmword [rsp + rbx + 0x58]
movups xmm2, xmmword [rsi + rbx]
xorps xmm2, xmm0
movups xmm0, xmmword [rsi + rbx + 0x10]
xorps xmm0, xmm1
movups xmmword [rsi + rbx], xmm2
movups xmmword [rsi + rbx + 0x10], xmm0
cmp rcx, rax
mov rdi, r15
je 0x1401802d0
test cl, 0x18
je 0x140180590
mov rdx, rax
mov rax, rcx
and rax, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov rbx, qword [rsp + rdx + 0x48]
xor qword [rsi + rdx], rbx
add rdx, 8
cmp rax, rdx
jne 0x140180570
cmp rcx, rax
je 0x1401802d0
nop dword [rax + rax]
movzx edx, byte [rsp + rax + 0x48]
xor byte [rsi + rax], dl
lea rdx, [rax + 1]
mov rax, rdx
cmp rcx, rdx
jne 0x140180590
jmp 0x1401802d0
xor ebx, ebx
test r8b, 1
jne 0x140180526
jmp 0x140180548
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_test.cargo_registry_srcgithub.com_1ecc6299db9ec823_ring_0.17.8_src_rsapadding.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140284570]
lea r9, fcn.140001020
lea r8, [rsp + 0x1b8]
mov edx, 0x2b
call fcn.1401f2d90
ud2
lea r8, [0x140283bd0]
mov edx, 0x80
mov rcx, r9
call fcn.1401f2e40
ud2
lea r8, str.PF__
mov edx, 0x40
call fcn.1401f2e40
ud2
lea rax, str._E__
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0x1d0], 1
mov qword [rsp + 0x1b8], 0
lea rax, str.chunk_size_must_be_non_zero
mov qword [rsp + 0x1d8], rax
mov qword [rsp + 0x1e0], 0
lea rdx, str.C:Users_test.cargo_registry_srcgithub.com_1ecc6299db9ec823_ring_0.17.8_src_rsapadding.rs
lea rcx, [rsp + 0x1b8]
call fcn.1401f2940
ud2