Function at 0x140021b17
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movzx eax, byte [rcx + 0xa0]
test eax, eax
je 0x140021b5c
cmp eax, 3
je 0x140021d0c
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.windows_encrypt_src_main.rs
mov edx, 0x23
call fcn.140096040
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
lea rbx, [rsi + 0x20]
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x20], rax
lea rax, [0x140097573]
lea r14, [rsp + 0x50]
mov qword [r14], rax
mov rcx, qword [r14]
movabs rax, 0x5b868cafd72d5ab0
mov qword [r14], rax
mov rdx, qword [r14]
call fcn.140017c02
xorps xmm0, xmm0
movaps xmmword [r14], xmm0
mov cl, 1
xor ebp, ebp
lea r8, [0x14009cc68]
movzx r10d, byte [rbp + r8]
mov r9, rbp
or r9, 1
movzx r9d, byte [r9 + r8]
mov r11, rbp
or r11, 2
movzx r11d, byte [r11 + r8]
mov r14, rbp
or r14, 3
movzx r14d, byte [r14 + r8]
mov r15, rbp
or r15, 4
movzx r15d, byte [r15 + r8]
mov r12, rbp
or r12, 5
movzx r12d, byte [r12 + r8]
mov r13, rbp
or r13, 6
mov rdx, rbp
or rdx, 7
movzx r13d, byte [r13 + r8]
movzx edx, byte [rdx + r8]
shl rdx, 0x38
shl r13, 0x30
or r13, rdx
shl r12, 0x28
shl r15, 0x20
shl r14, 0x18
shl r11, 0x10
shl r9, 8
or r9, r10
or r9, r11
or r9, r14
or r9, r15
or r9, r12
or r9, r13
xor r9, qword [rax + rbp]
mov qword [rsp + rbp + 0x50], r9
mov ebp, 8
test cl, 1
mov ecx, 0
jne 0x140021bbb
mov ecx, 0xf45c1375
xor ecx, dword [rax + 0x10]
mov dword [rsp + 0x30], ecx
lea r14, [rsp + 0x50]
movaps xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 0x14
call fcn.14003f100
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov ecx, dword [rsp + 0x30]
mov dword [rdx + 0x10], ecx
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rdx
mov qword [r14 + 0x18], 0x14
movabs rax, 0x8000000000000009
mov qword [r14], rax
lea r15, [rsp + 0x80]
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1400071ba
mov rcx, r15
call fcn.140001922
mov rax, qword [rbx]
lock inc qword [rax + 0x1d0]
lock inc qword [rax]
jle 0x140021ea9
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x28], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsi + 0x30], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0x40], rax
mov byte [rsi + 0x80], 0
lea r14, [rsi + 0x28]
mov rcx, r14
mov rdx, rdi
call fcn.140022267
mov ebx, eax
mov al, 3
test bl, bl
jne 0x140021e8d
mov rcx, r14
call fcn.14000448c
lea rax, [0x14009d238]
lea rdi, [rsp + 0x50]
mov qword [rdi], rax
mov rcx, qword [rdi]
movabs rax, 0x63cb9f30250d45af
mov qword [rdi], rax
mov dword [rdi], eax
mov rdx, qword [rdi]
call fcn.140017752
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
mov cl, 1
xor edx, edx
lea r8, [0x14009cc98]
scasd eax, dword [rdi]
invalid
invalid
movzx r10d, byte [rdx + r8]
mov r9, rdx
or r9, 1
movzx r9d, byte [r9 + r8]
mov r11, rdx
or r11, 2
movzx r11d, byte [r11 + r8]
mov rdi, rdx
or rdi, 3
movzx edi, byte [rdi + r8]
mov r14, rdx
or r14, 4
movzx r14d, byte [r14 + r8]
mov r15, rdx
or r15, 5
movzx r15d, byte [r15 + r8]
movzx edi, byte [rdi + rax]
mov r12, rdx
or r12, 6
mov r13, rdx
or r13, 7
int 7
movzx r12d, byte [r12 + r8]
movzx r13d, byte [r13 + r8]
shl r13, 0x38
shl r12, 0x30
or r12, r13
shl r15, 0x28
shl r14, 0x20
out 0x20, al
shl rdi, 0x18
shl r11, 0x10
shl r9, 8
or r9, r10
or r9, r11
or ecx, ebx
or r9, rdi
or r9, r14
or r9, r15
or ecx, edi
or r9, r12
xor r9, qword [rax + rdx]
mov qword [rsp + rdx + 0x50], r9
mov edx, 8
test cl, 1
mov ecx, 0
add byte [rax], al
invalid
jne 0x140021d67
lea rdi, [rsi + 0x20]
mov ecx, 0x33e1ab0f
xor ecx, dword [rax + 0x10]
mov dword [rsp + 0x30], ecx
lea r14, [rsp + 0x50]
push rax
movaps xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 0x14
call fcn.14003f100
retf 0x1d2
invalid
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov ecx, dword [rsp + 0x30]
mov dword [rdx + 0x10], ecx
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rdx
mov qword [r14 + 0x18], 0x14
movabs rax, 0x8000000000000009
inc rax
mov qword [r14], rax
lea r15, [rsp + 0x80]
mov rcx, r15
mov rdx, rdi
mov r8, r14
mov eax, esi
call fcn.1400071ba
mov rcx, r15
call fcn.140001922
dec dword [rax - 0x77]
stc
call fcn.140004b35
mov al, 1
mov byte [rsi + 0xa0], al
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2