Function at 0x140057e80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rdi, rdx
xor ecx, ecx
call fcn.140099830
cmp qword [rdi], rax
jne 0x1400580a0
xor edx, edx
mov qword [rsp + 0x70], rbx
mov rcx, rsi
call fcn.1400a4420
lea rax, [0x140169a58]
mov qword [rsp + 0x48], 0x20
xor ebx, ebx
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov qword [rsp + 0x58], 0x20
mov qword [rsp + 0x60], rbx
call fcn.1400a4240
test al, al
je 0x1400580ba
lea rcx, [rsp + 0x48]
call fcn.1400a4240
test al, al
je 0x1400580d4
mov r9, qword [rdi]
cmp r9, qword [rsp + 0x48]
je 0x140057f14
lea ecx, [rbx + 0x22]
call fcn.1400a32b0
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
pop rdi
pop rsi
ret
mov r10, qword [rdi + 8]
mov byte [rsp + 0xa0], bl
mov byte [rsp + 0x98], 1
test r9, r9
je 0x140057faf
mov r8, qword [rsp + 0x50]
sub r10, r8
nop dword [rax + rax]
movzx eax, byte [r10 + r8]
lea r8, [r8 + 1]
mov dword [rsp + 0x20], eax
movzx eax, byte [r8 - 1]
mov dword [rsp + 0xa8], eax
mov edx, dword [rsp + 0xa8]
mov eax, dword [rsp + 0x20]
sub edx, eax
movzx ecx, byte [rsp + 0x98]
movzx eax, byte [rsp + 0xa0]
sar edx, 0x1f
and ecx, edx
or al, cl
mov byte [rsp + 0xa0], al
mov ecx, dword [rsp + 0xa8]
mov eax, dword [rsp + 0x20]
xor ecx, eax
movzx eax, byte [rsp + 0x98]
dec ecx
sar ecx, 0x1f
and al, cl
and al, 1
mov byte [rsp + 0x98], al
sub r9, 1
jne 0x140057f40
movzx eax, byte [rsp + 0x98]
movzx ecx, byte [rsp + 0xa0]
add ecx, eax
movzx eax, byte [rsp + 0xa0]
add eax, ecx
cmp eax, 1
jbe 0x140057fe1
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x78
pop rdi
pop rsi
ret
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400a4b10
lea rdx, [rsp + 0x28]
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
call fcn.1400a3ba0
test eax, eax
je 0x140058018
mov rbx, qword [rsp + 0x70]
mov eax, 2
add rsp, 0x78
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.1400a4240
test al, al
je 0x1400580ee
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
mov dword [rsp + 0xa0], 1
test r8, r8
je 0x140058092
nop
mov rdx, r8
sub rdx, rbx
inc rbx
movzx eax, byte [rdx + r9 - 1]
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x98]
mov eax, dword [rsp + 0xa0]
add ecx, eax
mov dword [rsp + 0x98], ecx
mov eax, dword [rsp + 0x98]
shr eax, 8
and eax, 1
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x98]
mov byte [rdx + r9 - 1], al
cmp rbx, r8
jb 0x140058040
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x78
pop rdi
pop rsi
ret
mov r8d, 0xee
lea rdx, str.C:_vcpkg_buildtrees_aws_c_auth_src_v0.7.8_4e02d3264b.clean_sourcekey_derivation.c
lea rcx, str.k0__len__aws_ecc_key_coordinate_byte_size_from_curve_name_AWS_CAL_ECDSA_P256_
call fcn.1400a56f0
int3
mov r8d, 0x9d
lea rdx, str.C:_vcpkg_buildtrees_aws_c_auth_src_v0.7.8_4e02d3264b.clean_sourcekey_derivation.c
lea rcx, str.aws_byte_buf_is_valid_lhs_raw_be_bigint_
call fcn.1400a56f0
int3
mov r8d, 0x9e
lea rdx, str.C:_vcpkg_buildtrees_aws_c_auth_src_v0.7.8_4e02d3264b.clean_sourcekey_derivation.c
lea rcx, str.aws_byte_buf_is_valid_rhs_raw_be_bigint_
call fcn.1400a56f0
int3
mov r8d, 0xc6
lea rdx, str.C:_vcpkg_buildtrees_aws_c_auth_src_v0.7.8_4e02d3264b.clean_sourcekey_derivation.c
lea rcx, str.aws_byte_buf_is_valid_raw_be_bigint_
call fcn.1400a56f0
int3