Function at 0x5771d0
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.0052b470
mov r13, rax
test rax, rax
je 0x577614
test rdi, rdi
mov rcx, r14
cmove rdi, r14
call fcn.0053da30
mov r15d, eax
test eax, eax
js 0x577614
cmp dword [rsp + 0xf8], 0xffffffff
je 0x577680
cmp dword [rsp + 0xf8], 0xfffffffd
jl 0x5776b0
mov rcx, qword [rbx + 0x18]
mov esi, 0xff
call fcn.004f9ad0
mov rcx, rbx
lea ebp, [rax - 1]
call fcn.00570d50
and ebp, 7
movzx edx, byte [r12]
mov ecx, ebp
shl esi, cl
and esi, edx
jne 0x5775f0
test ebp, ebp
jne 0x57727b
add r12, 1
sub eax, 1
lea edx, [r15 + 1]
cmp edx, eax
jge 0x5776d0
mov r10d, eax
sub r10d, r15d
cmp dword [rsp + 0xf8], 0xfffffffd
je 0x577690
lea edx, [r10 - 1]
cmp edx, dword [rsp + 0xf8]
jle 0x577700
cdqe
cmp byte [r12 + rax - 1], 0xbc
jne 0x577650
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.0054a3f0
mov r11d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x34]
test rax, rax
mov rbx, rax
je 0x577760
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 0x577618
mov r11d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x34]
test r11d, r11d
jle 0x5774d0
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 0x577790
cmp eax, 0xe
jbe 0x577790
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 0x577370
mov eax, r11d
and eax, 0xfffffff0
cmp r11d, eax
je 0x5774d0
movsxd rdx, eax
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 1]
cmp edx, r11d
jge 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 2]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 3]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 4]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 5]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 6]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 7]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 8]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 9]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xa]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xb]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xc]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
lea edx, [rax + 0xd]
cmp r11d, edx
jle 0x5774d0
movsxd rdx, edx
add eax, 0xe
movzx ecx, byte [r12 + rdx]
xor byte [rbx + rdx], cl
cmp r11d, eax
jle 0x5774d0
cdqe
movzx edx, byte [r12 + rax]
xor byte [rbx + rax], dl
nop
movzx edx, byte [rbx]
test ebp, ebp
jne 0x577710
test dl, dl
jne 0x5777e9
cmp r10d, 2
jle 0x577730
lea ecx, [r10 - 3]
mov eax, 1
add rcx, 2
jmp 0x57750d
add rax, 1
cmp rax, rcx
je 0x577730
movzx edx, byte [rbx + rax]
mov edi, eax
test dl, dl
je 0x577500
add edi, 1
cmp dl, 1
jne 0x577730
cmp dword [rsp + 0xf8], 0xfffffffe
je 0x57753f
mov eax, r11d
sub eax, edi
cmp eax, dword [rsp + 0xf8]
jne 0x5777c0
xor r8d, r8d
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x30], r11d
call fcn.0052b6f0
test eax, eax
je 0x577616
mov r8d, 8
lea rdx, [0x008d17d8]
mov rcx, r13
call fcn.0052b970
test eax, eax
je 0x577616
movsxd rbp, r15d
mov rdx, qword [rsp + 0xd8]
mov rcx, r13
mov r8, rbp
call fcn.0052b970
test eax, eax
je 0x577616
mov r11d, dword [rsp + 0x30]
cmp r11d, edi
je 0x5775b7
sub r11d, edi
movsxd rdx, edi
mov rcx, r13
add rdx, rbx
movsxd r8, r11d
call fcn.0052b970
test eax, eax
je 0x577616
lea rdi, [rsp + 0x40]
xor r8d, r8d
mov rcx, r13
mov rdx, rdi
call fcn.0052ba10
test eax, eax
je 0x577616
mov rdx, qword [rsp + 0x38]
mov r8, rbp
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x5777f3
mov esi, 1
jmp 0x577618
mov dword [rsp + 0x20], 0x46
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x85
mov edx, 0x7e
mov ecx, 4
call fcn.005292e0
xor ebx, ebx
xor esi, esi
mov r8d, 0x83
lea rdx, str.crypto_rsa_rsa_pss.c
mov rcx, rbx
call fcn.0054a3c0
mov rcx, r13
call fcn.0052b490
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.005292e0
jmp 0x577618
mov dword [rsp + 0xf8], eax
jmp 0x577243
cdqe
lea ebx, [r10 - 2]
cmp byte [r12 + rax - 1], 0xbc
mov dword [rsp + 0xf8], ebx
je 0x5772ba
jmp 0x577650
mov dword [rsp + 0x20], 0x3f
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x88
jmp 0x577605
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.005292e0
jmp 0x577618
mov dword [rsp + 0x20], 0x54
jmp 0x5776d8
mov ecx, 8
mov eax, 0xff
sub ecx, ebp
sar eax, cl
and edx, eax
mov byte [rbx], dl
jmp 0x5774db
mov r8d, 0x87
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x6a
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.005292e0
jmp 0x577618
mov r8d, 0x41
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x5f
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.005292e0
jmp 0x577618
mov edx, eax
xor eax, eax
jmp 0x5777a3
mov rax, rcx
movzx ecx, byte [r12 + rax]
xor byte [rbx + rax], cl
lea rcx, [rax + 1]
cmp rax, rdx
jne 0x5777a0
jmp 0x5774d0
mov r8d, 0x88
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x6e
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.005292e0
jmp 0x577618
mov edi, 1
jmp 0x57751a
mov r8d, 0x68
mov edx, 0x7e
mov ecx, 4
mov dword [rsp + 0x20], 0x7c
lea r9, str.crypto_rsa_rsa_pss.c
call fcn.005292e0
jmp 0x577618