Function at 0x576e10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r12, qword [rsp + 0xf0]
mov rbx, rcx
mov qword [rsp + 0xd8], rdx
mov r14, r8
mov rdi, r9
call fcn.0052b0b0
mov r13, rax
test rax, rax
je 0x577254
test rdi, rdi
mov rcx, r14
cmove rdi, r14
call fcn.0053d670
mov r15d, eax
test eax, eax
js 0x577254
cmp dword [rsp + 0xf8], 0xffffffff
je 0x5772c0
cmp dword [rsp + 0xf8], 0xfffffffd
jl 0x5772f0
mov rcx, qword [rbx + 0x18]
mov esi, 0xff
call fcn.004f9710
mov rcx, rbx
lea ebp, [rax - 1]
call fcn.00570990
and ebp, 7
movzx edx, byte [r12]
mov ecx, ebp
shl esi, cl
and esi, edx
jne 0x577230
test ebp, ebp
jne 0x576ebb
add r12, 1
sub eax, 1
lea edx, [r15 + 1]
cmp edx, eax
jge 0x577310
mov r10d, eax
sub r10d, r15d
cmp dword [rsp + 0xf8], 0xfffffffd
je 0x5772d0
lea edx, [r10 - 1]
cmp edx, dword [rsp + 0xf8]
jle 0x577340
cdqe
cmp byte [r12 + rax - 1], 0xbc
jne 0x577290
lea r11d, [r10 - 1]
mov r8d, 0x5d
mov dword [rsp + 0x34], r10d
lea rdx, str.crypto_rsa_rsa_pss.c
movsxd rcx, r11d
mov dword [rsp + 0x30], r11d
lea rax, [r12 + rcx]
mov qword [rsp + 0x38], rax
call fcn.0054a030
mov r11d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x34]
test rax, rax
mov rbx, rax
je 0x5773a0
mov qword [rsp + 0x20], rdi
mov r8, qword [rsp + 0x38]
mov r9d, r15d
mov edx, r11d
mov rcx, rax
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x30], r11d
call fcn.00669c10
test eax, eax
js 0x577258
mov r11d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x34]
test r11d, r11d
jle 0x577110
lea rdx, [rbx + 0x10]
lea eax, [r10 - 2]
cmp r12, rdx
lea rdx, [r12 + 0x10]
setae cl
cmp rbx, rdx
setae dl
or cl, dl
je 0x5773d0
cmp eax, 0xe
jbe 0x5773d0
mov edx, r11d
xor eax, eax
shr edx, 4
shl rdx, 4
nop
movdqu xmm0, xmmword [rbx + rax]
movdqu xmm1, xmmword [r12 + rax]
pxor xmm0, xmm1
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x576fb0
mov eax, r11d
and eax, 0xfffffff0
cmp r11d, eax
je 0x577110
movsxd rdx, eax
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 1]
cmp edx, r11d
jge 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 2]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 3]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 4]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 5]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 6]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 7]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 8]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 9]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xa]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xb]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xc]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xd]
cmp r11d, edx
jle 0x577110
movsxd rdx, edx
add eax, 0xe
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
cmp r11d, eax
jle 0x577110
cdqe
movzx edx, byte [r12 + rax]
xor byte [rbx + rax], dl
nop
movzx edx, byte [rbx]
test ebp, ebp
jne 0x577350
test dl, dl
jne 0x577429
cmp r10d, 2
jle 0x577370
lea ecx, [r10 - 3]
mov eax, 1
add rcx, 2
jmp 0x57714d
add rax, 1
cmp rax, rcx
je 0x577370
movzx edx, byte [rbx + rax]
mov edi, eax
test dl, dl
je 0x577140
add edi, 1
cmp dl, 1
jne 0x577370
cmp dword [rsp + 0xf8], 0xfffffffe
je 0x57717f
mov eax, r11d
sub eax, edi
cmp eax, dword [rsp + 0xf8]
jne 0x577400
xor r8d, r8d
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x30], r11d
call fcn.0052b330
test eax, eax
je 0x577256
mov r8d, 8
lea rdx, [0x008d1858]
mov rcx, r13
call fcn.0052b5b0
test eax, eax
je 0x577256
movsxd rbp, r15d
mov rdx, qword [rsp + 0xd8]
mov rcx, r13
mov r8, rbp
call fcn.0052b5b0
test eax, eax
je 0x577256
mov r11d, dword [rsp + 0x30]
cmp r11d, edi
je 0x5771f7
sub r11d, edi
movsxd rdx, edi
mov rcx, r13
add rdx, rbx
movsxd r8, r11d
call fcn.0052b5b0
test eax, eax
je 0x577256
lea rdi, [rsp + 0x40]
xor r8d, r8d
mov rcx, r13
mov rdx, rdi
call fcn.0052b650
test eax, eax
je 0x577256
mov rdx, qword [rsp + 0x38]
mov r8, rbp
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x577433
mov esi, 1
jmp 0x577258
mov dword [rsp + 0x20], 0x46
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x85
mov edx, 0x7e
mov ecx, 4
call fcn.00528f20
xor ebx, ebx
xor esi, esi
mov r8d, 0x83
lea rdx, str.crypto_rsa_rsa_pss.c
mov rcx, rbx
call fcn.0054a000
mov rcx, r13
call fcn.0052b0d0
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], 0x58
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x86
xor ebx, ebx
mov edx, 0x7e
mov ecx, 4
call fcn.00528f20
jmp 0x577258
mov dword [rsp + 0xf8], eax
jmp 0x576e83
cdqe
lea ebx, [r10 - 2]
cmp byte [r12 + rax - 1], 0xbc
mov dword [rsp + 0xf8], ebx
je 0x576efa
jmp 0x577290
mov dword [rsp + 0x20], 0x3f
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x88
jmp 0x577245
mov dword [rsp + 0x20], 0x4e
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x6d
mov edx, 0x7e
xor ebx, ebx
mov ecx, 4
call fcn.00528f20
jmp 0x577258
mov dword [rsp + 0x20], 0x54
jmp 0x577318
mov ecx, 8
mov eax, 0xff
sub ecx, ebp
sar eax, cl
and edx, eax
mov byte [rbx], dl
jmp 0x57711b
mov r8d, 0x87
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x6a
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.00528f20
jmp 0x577258
mov r8d, 0x41
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x5f
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.00528f20
jmp 0x577258
mov edx, eax
xor eax, eax
jmp 0x5773e3
mov rax, rcx
movzx ecx, byte [r12 + rax]
xor byte [rbx + rax], cl
lea rcx, [rax + 1]
cmp rax, rdx
jne 0x5773e0
jmp 0x577110
mov r8d, 0x88
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x6e
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.00528f20
jmp 0x577258
mov edi, 1
jmp 0x57715a
mov r8d, 0x68
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x7c
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.00528f20
jmp 0x577258