Function at 0x60d0b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebx, dword [rsp + 0xc0]
mov r13, rcx
mov rcx, r9
mov rbp, rdx
mov rdi, r9
mov qword [rsp + 0xb0], r8
call sym.EVP_MD_size
mov esi, eax
test eax, eax
js 0x60d22c
cmp ebx, 0xffffffff
je 0x60d530
cmp ebx, 0xfffffffe
je 0x60d240
cmp ebx, 0xfffffffd
jl 0x60d540
mov rcx, qword [r13 + 0x18]
call sym.BN_num_bits
mov rcx, r13
lea r12d, [rax - 1]
call sym.RSA_size
and r12d, 7
mov r13d, eax
test r12d, r12d
jne 0x60d132
mov byte [rbp], 0
sub r13d, 1
add rbp, 1
lea eax, [rsi + 1]
cmp eax, r13d
jge 0x60d208
mov eax, r13d
sub eax, esi
mov dword [rsp + 0x38], eax
cmp ebx, 0xfffffffd
je 0x60d520
sub eax, 1
movsxd r15, ebx
cmp ebx, eax
jge 0x60d560
test ebx, ebx
jle 0x60d510
mov r8d, 0xc5
lea rdx, str.crypto_rsa_rsa_pss.c
mov rcx, r15
call sym.CRYPTO_malloc
mov r14, rax
test rax, rax
je 0x60d598
mov edx, ebx
mov rcx, rax
call sym.RAND_bytes
test eax, eax
jle 0x60d500
call sym.EVP_MD_CTX_new
mov r10, rax
xor eax, eax
test r10, r10
je 0x60d1c8
xor r8d, r8d
mov rcx, r10
mov rdx, rdi
mov qword [rsp + 0x40], r10
call sym.EVP_DigestInit_ex
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x60d250
mov rcx, r10
mov dword [rsp + 0x38], eax
call sym.EVP_MD_CTX_free
mov r9d, 0xf7
mov rdx, r15
mov rcx, r14
lea r8, str.crypto_rsa_rsa_pss.c
call sym.CRYPTO_clear_free
mov eax, dword [rsp + 0x38]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], 0xb9
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x6e
mov edx, 0x98
mov ecx, 4
call sym.ERR_put_error
movsxd r15, ebx
xor r10d, r10d
xor r14d, r14d
xor eax, eax
jmp 0x60d1c8
mov ebx, 0xfffffffd
jmp 0x60d105
mov rcx, r10
mov r8d, 8
lea rdx, [0x009599b8]
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x60d1c8
mov rdx, qword [rsp + 0xb0]
mov rcx, r10
movsxd r8, esi
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x60d1c8
test ebx, ebx
je 0x60d2b6
mov rcx, r10
mov r8, r15
mov rdx, r14
mov qword [rsp + 0x40], r10
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x60d1c8
mov r11d, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, r10
mov qword [rsp + 0x38], r10
sub r11d, 1
movsxd rdx, r11d
mov dword [rsp + 0x4c], r11d
add rdx, rbp
mov qword [rsp + 0x40], rdx
call sym.EVP_DigestFinal_ex
mov r10, qword [rsp + 0x38]
test eax, eax
je 0x60d1c8
mov rdx, qword [rsp + 0x40]
mov r11d, dword [rsp + 0x4c]
mov r9d, esi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
mov r8, rdx
mov edx, r11d
mov qword [rsp + 0x38], r10
call sym.PKCS1_MGF1
mov r10, qword [rsp + 0x38]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x60d1c8
mov eax, r13d
sub eax, ebx
sub eax, esi
cdqe
lea rcx, [rbp + rax - 2]
xor byte [rcx], 1
test ebx, ebx
jle 0x60d4d0
lea rdx, [rbp + rax - 1]
lea rax, [rbp + rax + 0xf]
cmp r14, rax
lea rax, [r14 + 0x10]
lea r8d, [rbx - 1]
setae r9b
cmp rdx, rax
setae al
or r9b, al
je 0x60d5c6
cmp r8d, 0xe
jbe 0x60d5c6
mov r8d, ebx
xor eax, eax
shr r8d, 4
shl r8, 4
nop dword [rax]
movdqu xmm0, xmmword [rdx + rax]
movdqu xmm1, xmmword [r14 + rax]
pxor xmm0, xmm1
movups xmmword [rdx + rax], xmm0
add rax, 0x10
cmp rax, r8
jne 0x60d380
mov edx, ebx
and edx, 0xfffffff0
mov r8d, edx
lea rax, [rcx + r8 + 1]
cmp ebx, edx
je 0x60d4d0
movzx ecx, byte [r14 + r8]
xor byte [rax], cl
lea ecx, [rdx + 1]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 1], cl
lea ecx, [rdx + 2]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 2], cl
lea ecx, [rdx + 3]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 3], cl
lea ecx, [rdx + 4]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 4], cl
lea ecx, [rdx + 5]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 5], cl
lea ecx, [rdx + 6]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 6], cl
lea ecx, [rdx + 7]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 7], cl
lea ecx, [rdx + 8]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 8], cl
lea ecx, [rdx + 9]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 9], cl
lea ecx, [rdx + 0xa]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xa], cl
lea ecx, [rdx + 0xb]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xb], cl
lea ecx, [rdx + 0xc]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xc], cl
lea ecx, [rdx + 0xd]
cmp ebx, ecx
jle 0x60d4d0
movsxd rcx, ecx
add edx, 0xe
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xd], cl
cmp ebx, edx
jle 0x60d4d0
movsxd rdx, edx
movzx edx, byte [r14 + rdx]
xor byte [rax + 0xe], dl
test r12d, r12d
je 0x60d4e7
mov ecx, 8
mov eax, 0xff
sub ecx, r12d
sar eax, cl
and byte [rbp], al
movsxd r13, r13d
mov eax, 1
mov byte [rbp + r13 - 1], 0xbc
jmp 0x60d1c8
xor r10d, r10d
xor eax, eax
jmp 0x60d1c8
xor r14d, r14d
jmp 0x60d199
lea ebx, [rax - 2]
movsxd r15, ebx
jmp 0x60d15e
mov ebx, eax
jmp 0x60d105
mov dword [rsp + 0x20], 0xae
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x88
jmp 0x60d21d
mov dword [rsp + 0x20], 0xc0
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x6e
xor r14d, r14d
mov edx, 0x98
mov ecx, 4
call sym.ERR_put_error
xor r10d, r10d
xor eax, eax
jmp 0x60d1c8
mov r8d, 0x41
mov edx, 0x98
mov ecx, 4
mov dword [rsp + 0x20], 0xc7
lea r9, str.crypto_rsa_rsa_pss.c
call sym.ERR_put_error
xor r10d, r10d
xor eax, eax
jmp 0x60d1c8
mov edx, r8d
mov eax, 1
add rdx, 2
movzx r8d, byte [r14 + rax - 1]
xor byte [rcx + rax], r8b
add rax, 1
cmp rax, rdx
jne 0x60d5d2
jmp 0x60d4d0