Function at 0x41d490
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 rbp, qword [rsp + 0xc0]
mov ebx, dword [rsp + 0xc8]
test rbp, rbp
mov r13, rcx
mov rcx, r9
cmove rbp, r9
mov rdi, rdx
mov qword [rsp + 0xb0], r8
mov r12, r9
call sym.EVP_MD_size
mov esi, eax
test eax, eax
js 0x41d61c
cmp ebx, 0xffffffff
je 0x41d920
cmp ebx, 0xfffffffe
je 0x41d630
cmp ebx, 0xfffffffd
jl 0x41d930
mov rcx, qword [r13 + 0x18]
call sym.BN_num_bits
mov rcx, r13
sub eax, 1
and eax, 7
mov dword [rsp + 0x44], eax
mov r15d, eax
call sym.RSA_size
mov r13d, eax
test r15d, r15d
jne 0x41d525
mov byte [rdi], 0
sub r13d, 1
add rdi, 1
lea eax, [rsi + 1]
cmp eax, r13d
jge 0x41d5f8
mov eax, r13d
sub eax, esi
mov dword [rsp + 0x38], eax
cmp ebx, 0xfffffffd
je 0x41d910
sub eax, 1
movsxd r15, ebx
cmp eax, ebx
jle 0x41d950
test ebx, ebx
jle 0x41d900
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 0x41d988
mov edx, ebx
mov rcx, rax
call sym.RAND_bytes
test eax, eax
jle 0x41d8f0
call sym.EVP_MD_CTX_new
mov r10, rax
xor eax, eax
test r10, r10
je 0x41d5bb
xor r8d, r8d
mov rcx, r10
mov rdx, r12
mov qword [rsp + 0x48], r10
call sym.EVP_DigestInit_ex
mov r10, qword [rsp + 0x48]
test eax, eax
jne 0x41d640
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 0x41d5bb
mov ebx, 0xfffffffd
jmp 0x41d4f4
mov rcx, r10
mov r8d, 8
lea rdx, [0x005ce478]
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x48]
test eax, eax
je 0x41d5bb
mov rdx, qword [rsp + 0xb0]
mov rcx, r10
movsxd r8, esi
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x48]
test eax, eax
je 0x41d5bb
test ebx, ebx
je 0x41d6a6
mov rcx, r10
mov r8, r15
mov rdx, r14
mov qword [rsp + 0x48], r10
call sym.EVP_DigestUpdate
mov r10, qword [rsp + 0x48]
test eax, eax
je 0x41d5bb
mov r12d, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, r10
mov qword [rsp + 0x38], r10
sub r12d, 1
movsxd rdx, r12d
add rdx, rdi
mov qword [rsp + 0x48], rdx
call sym.EVP_DigestFinal_ex
mov r10, qword [rsp + 0x38]
test eax, eax
je 0x41d5bb
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbp
mov r9d, esi
mov rcx, rdi
mov qword [rsp + 0x38], r10
mov r8, rdx
mov edx, r12d
call sym.PKCS1_MGF1
mov r10, qword [rsp + 0x38]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x41d5bb
mov eax, r13d
sub eax, ebx
sub eax, esi
cdqe
lea rcx, [rdi + rax - 2]
xor byte [rcx], 1
test ebx, ebx
jle 0x41d8c0
lea rdx, [rdi + rax - 1]
lea rax, [rdi + rax + 0xf]
cmp r14, rax
lea rax, [r14 + 0x10]
lea r8d, [rbx - 1]
setae r9b
cmp rdx, rax
setae al
or r9b, al
je 0x41d9b6
cmp r8d, 0xe
jbe 0x41d9b6
mov r8d, ebx
xor eax, eax
shr r8d, 4
shl r8, 4
nop word [rax + 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 0x41d768
mov edx, ebx
and edx, 0xfffffff0
mov r8d, edx
lea rax, [rcx + r8 + 1]
cmp ebx, edx
je 0x41d8c0
movzx ecx, byte [r14 + r8]
xor byte [rax], cl
lea ecx, [rdx + 1]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 1], cl
lea ecx, [rdx + 2]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 2], cl
lea ecx, [rdx + 3]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 3], cl
lea ecx, [rdx + 4]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 4], cl
lea ecx, [rdx + 5]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 5], cl
lea ecx, [rdx + 6]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 6], cl
lea ecx, [rdx + 7]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 7], cl
lea ecx, [rdx + 8]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 8], cl
lea ecx, [rdx + 9]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 9], cl
lea ecx, [rdx + 0xa]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xa], cl
lea ecx, [rdx + 0xb]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xb], cl
lea ecx, [rdx + 0xc]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xc], cl
lea ecx, [rdx + 0xd]
cmp ebx, ecx
jle 0x41d8c0
movsxd rcx, ecx
add edx, 0xe
movzx ecx, byte [r14 + rcx]
xor byte [rax + 0xd], cl
cmp ebx, edx
jle 0x41d8c0
movsxd rdx, edx
movzx edx, byte [r14 + rdx]
xor byte [rax + 0xe], dl
nop dword [rax + rax]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x41d8da
mov ecx, 8
mov eax, 0xff
sub ecx, dword [rsp + 0x44]
sar eax, cl
and byte [rdi], al
movsxd r13, r13d
mov eax, 1
mov byte [rdi + r13 - 1], 0xbc
jmp 0x41d5bb
xor r10d, r10d
xor eax, eax
jmp 0x41d5bb
xor r14d, r14d
jmp 0x41d58c
lea ebx, [rax - 2]
movsxd r15, ebx
jmp 0x41d551
mov ebx, eax
jmp 0x41d4f4
mov dword [rsp + 0x20], 0xae
lea r9, str.crypto_rsa_rsa_pss.c
mov r8d, 0x88
jmp 0x41d60d
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 0x41d5bb
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 0x41d5bb
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 0x41d9c2
jmp 0x41d8c0