Function at 0x51e240
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x328
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
lea r12, [rdx + 0x30]
movups xmm0, xmmword [rdx + 0x30]
movups xmm1, xmmword [rdx + 0x40]
movups xmm2, xmmword [rdx + 0x50]
movups xmm3, xmmword [rdx + 0x60]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [0x009bf180]
cmp al, 2
jne 0x51e745
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x198], xmm3
movups xmmword [rsp + 0x188], xmm2
movups xmmword [rsp + 0x178], xmm1
movups xmmword [rsp + 0x168], xmm0
movzx eax, byte [0x009bf180]
cmp al, 2
jne 0x51e74f
mov qword [rsp + 0x1a8], 0
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x110], r15
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm3, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x118], xmm0
movups xmmword [rsp + 0x128], xmm1
movups xmmword [rsp + 0x138], xmm2
movups xmmword [rsp + 0x148], xmm3
mov qword [rsp + 0x158], 0
mov rdi, qword [r15 + 0x20]
cmp rdi, rbx
jae 0x51e4c2
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x240], xmm3
movups xmmword [rsp + 0x230], xmm2
movups xmmword [rsp + 0x220], xmm1
movups xmmword [rsp + 0x210], xmm0
movzx eax, byte [0x009bf180]
cmp al, 2
jne 0x51e759
xorps xmm0, xmm0
movups xmmword [rsp + 0x2c8], xmm0
movups xmmword [rsp + 0x2b8], xmm0
movups xmmword [rsp + 0x2a8], xmm0
movups xmmword [rsp + 0x298], xmm0
movups xmmword [rsp + 0x288], xmm0
movups xmmword [rsp + 0x278], xmm0
movups xmmword [rsp + 0x268], xmm0
movups xmmword [rsp + 0x258], xmm0
mov qword [rsp + 0x208], r15
mov qword [rsp + 0x250], 0
mov qword [rsp + 0x2d8], 0
lea r15, [rsp + 0x208]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.00526430
lea rcx, [rsp + 0x30]
mov r8d, 0xd8
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x248]
movaps xmmword [rsp + 0x1f0], xmm0
movups xmm0, xmmword [rsp + 0x208]
movups xmm1, xmmword [rsp + 0x218]
movups xmm2, xmmword [rsp + 0x228]
movups xmm3, xmmword [rsp + 0x238]
movaps xmmword [rsp + 0x1e0], xmm3
movaps xmmword [rsp + 0x1d0], xmm2
movaps xmmword [rsp + 0x1c0], xmm1
movaps xmmword [rsp + 0x1b0], xmm0
cmp r9, 0x81
jae 0x51e8a9
lea r8, [rsp + 0x80]
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x2e0]
lea rdx, [rsp + 0x1b0]
call fcn.00526210
mov rax, qword [rsp + 0x2e0]
mov rbx, qword [rax + 0x10]
cmp rbx, 0x41
jae 0x51e8bf
lea r14, [rsp + 0x2e8]
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp rdi, 0x81
jae 0x51e879
cmp rdi, rbx
cmovb rbx, rdi
test rbx, rbx
je 0x51e625
cmp rbx, 8
jae 0x51e524
xor eax, eax
jmp 0x51e610
cmp rbx, 0x20
jae 0x51e531
xor eax, eax
jmp 0x51e5dd
mov rax, rbx
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
xorps xmm0, xmmword [rsp + 0x30]
xorps xmm1, xmmword [rsp + 0x40]
and rax, 0xffffffffffffffe0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
cmp rax, 0x20
je 0x51e5d3
movups xmm0, xmmword [r14 + 0x20]
movups xmm1, xmmword [r14 + 0x30]
xorps xmm0, xmmword [rsp + 0x50]
xorps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
cmp rax, 0x40
je 0x51e5d3
movups xmm0, xmmword [r14 + 0x40]
movups xmm1, xmmword [r14 + 0x50]
xorps xmm0, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
cmp rax, 0x60
je 0x51e5d3
movups xmm0, xmmword [r14 + 0x60]
movups xmm1, xmmword [r14 + 0x70]
xorps xmm0, xmmword [rsp + 0x90]
xorps xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm1
cmp rbx, rax
je 0x51e625
test bl, 0x18
je 0x51e610
mov rcx, rax
mov rax, rbx
and rax, 0xfffffffffffffff8
nop word [rax + rax]
mov rdx, qword [r14 + rcx]
xor qword [rsp + rcx + 0x30], rdx
add rcx, 8
cmp rax, rcx
jne 0x51e5f0
cmp rbx, rax
je 0x51e625
nop word [rax + rax]
movzx ecx, byte [r14 + rax]
xor byte [rsp + rax + 0x30], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rbx, rcx
jne 0x51e610
mov r9, qword [rsp + 0x110]
mov rcx, qword [r9 + 0x20]
test rcx, rcx
je 0x51e830
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x51e653
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
jmp 0x51e65b
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x1b0], rdi
cmp rax, rdi
jne 0x51e84a
cmp rcx, rdi
ja 0x51e6a6
lea rcx, [rsp + 0x118]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r9]
add rbx, qword [rsp + 0x158]
jb 0x51e88f
mov qword [rsp + 0x158], rbx
test rdi, rdi
je 0x51e78b
cmp rdi, 8
jae 0x51e6bf
lea rcx, [rsp + 0x30]
jmp 0x51e76b
cmp rdi, 0x20
jae 0x51e6c9
xor eax, eax
jmp 0x51e712
mov rax, rdi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movaps xmm0, xmmword [0x0086e7c0]
nop dword [rax]
movaps xmm1, xmmword [rsp + rcx + 0x30]
xorps xmm1, xmm0
movaps xmm2, xmmword [rsp + rcx + 0x40]
xorps xmm2, xmm0
movaps xmmword [rsp + rcx + 0x30], xmm1
movaps xmmword [rsp + rcx + 0x40], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x51e6e0
cmp rdi, rax
je 0x51e78b
test dil, 0x18
je 0x51e763
mov rdx, rdi
and rdx, 0xfffffffffffffff8
lea rcx, [rsp + rdx]
add rcx, 0x30
movabs r8, 0x6a6a6a6a6a6a6a6a
nop dword [rax + rax]
xor qword [rsp + rax + 0x30], r8
add rax, 8
cmp rdx, rax
jne 0x51e730
cmp rdi, rdx
jne 0x51e76b
jmp 0x51e78b
call fcn.005e8ac0
jmp 0x51e293
call fcn.005e8ac0
jmp 0x51e2d9
call fcn.005e8ac0
jmp 0x51e388
lea rcx, [rsp + rax]
add rcx, 0x30
lea rax, [rsp + rdi]
add rax, 0x30
nop word cs:[rax + rax]
xor byte [rcx], 0x6a
inc rcx
cmp rcx, rax
jne 0x51e780
mov r9, qword [rsp + 0x160]
mov rcx, qword [r9 + 0x20]
test rcx, rcx
je 0x51e830
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x51e7b9
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
jmp 0x51e7c1
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x1b0], rdi
cmp rax, rdi
jne 0x51e84a
cmp rcx, rdi
ja 0x51e808
lea rcx, [rsp + 0x168]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r9]
add rbx, qword [rsp + 0x1a8]
jb 0x51e88f
mov qword [rsp + 0x1a8], rbx
lea rdx, [rsp + 0x110]
mov r8d, 0xa0
mov rcx, rsi
call sub.msvcrt.dll_memcpy
nop
add rsp, 0x328
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.attempt_to_divide_by_zero_root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.7_src_ec_suite_b_private_key.rs
lea r8, [0x00909bd8]
mov edx, 0x19
call fcn.0044fe30
ud2
mov qword [rsp + 0x208], 0
lea r9, [0x00909c10]
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x1b0]
lea r8, [rsp + 0x208]
call fcn.00526e40
ud2
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.7_src_hmac.rs
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.0044fa90
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_untrusted_0.9.0_src_reader.rsinternal_error:_entered_unreachable_code_root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_src_calendar.rs
lea r8, [0x00909c28]
mov edx, 0x2b
call fcn.0044fe30
ud2
lea r8, [0x00909d90]
mov edx, pe_nt_image_headers64
mov rcx, r9
call fcn.0044fa90
ud2
lea r8, [0x0090d680]
mov edx, 0x40
mov rcx, rbx
call fcn.0044fa90
ud2