Function at 0x650450
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov r14, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov qword [rsp + 0xf0], r8
mov rdi, rcx
mov ebp, r9d
lea ebx, [rdx - 1]
test r14, r14
je 0x6508d8
test r12, r12
mov rcx, r14
cmove r12, r14
call sym.EVP_MD_get_size
mov esi, eax
test eax, eax
jle 0x650920
lea r11d, [rax + rax]
mov r10d, ebx
sub r10d, r11d
cmp ebp, r10d
jge 0x6508e8
cmp ebx, r11d
jle 0x650850
movsxd r15, eax
mov byte [rdi], 0
xor r9d, r9d
movsxd rdx, dword [rsp + 0x108]
lea rax, [r15 + 1]
mov qword [rsp + 0x20], r14
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x28], 0
lea r13, [rdi + rax]
mov r8, r13
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x40], rax
call sym.EVP_Digest
mov r11d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x38]
test eax, eax
je 0x6508a0
mov r9d, ebx
xor edx, edx
lea r14, [rdi + 1]
mov dword [rsp + 0x4c], r10d
sub r9d, ebp
lea rcx, [r13 + r15]
mov qword [rsp + 0x38], r14
sub r9d, r11d
lea r8d, [r9 - 1]
mov dword [rsp + 0x30], r9d
movsxd r8, r8d
call sym.memset
mov r9d, dword [rsp + 0x30]
movsxd rax, ebp
movsxd rcx, ebx
sub rcx, rax
mov rdx, qword [rsp + 0xf0]
mov r8d, ebp
add r9d, esi
sub rcx, r15
movsxd r9, r9d
add rcx, r13
mov byte [r13 + r9 - 1], 1
call sym.memcpy
xor r9d, r9d
xor ecx, ecx
mov r8, r15
mov rdx, r14
call sym.RAND_bytes_ex
test eax, eax
jle 0x6508a0
mov r10d, dword [rsp + 0x4c]
mov r8d, 0x72
lea rdx, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
lea ebx, [rsi + r10]
movsxd r14, ebx
mov rcx, r14
call sym.CRYPTO_malloc
mov r15, rax
test rax, rax
je 0x65097f
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov edx, ebx
mov rcx, rax
call sym.PKCS1_MGF1
test eax, eax
js 0x650960
test ebx, ebx
jle 0x6506ec
lea ecx, [rbx - 1]
cmp ecx, 0xe
jbe 0x65096d
mov edx, ebx
xor eax, eax
shr edx, 4
shl rdx, 4
nop dword [rax]
movdqu xmm0, xmmword [r13 + rax]
movdqu xmm2, xmmword [r15 + rax]
pxor xmm0, xmm2
movups xmmword [r13 + rax], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x650600
mov eax, ebx
and eax, 0xfffffff0
mov edx, eax
cmp ebx, eax
je 0x6506ec
mov r8d, ebx
sub ecx, eax
sub r8d, eax
cmp ecx, 6
jbe 0x65066c
mov ecx, eax
mov rax, qword [rsp + 0x40]
movq xmm0, qword [r15 + rcx]
add rax, rcx
add rax, rdi
movq xmm1, qword [rax]
pxor xmm0, xmm1
movq qword [rax], xmm0
mov eax, r8d
and eax, 0xfffffff8
add edx, eax
cmp r8d, eax
je 0x6506ec
movsxd rax, edx
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
lea eax, [rdx + 1]
cmp ebx, eax
jle 0x6506ec
cdqe
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
lea eax, [rdx + 2]
cmp ebx, eax
jle 0x6506ec
cdqe
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
lea eax, [rdx + 3]
cmp ebx, eax
jle 0x6506ec
cdqe
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
lea eax, [rdx + 4]
cmp ebx, eax
jle 0x6506ec
cdqe
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
lea eax, [rdx + 5]
cmp ebx, eax
jle 0x6506ec
cdqe
add edx, 6
movzx ecx, byte [r15 + rax]
xor byte [r13 + rax], cl
cmp ebx, edx
jle 0x6506ec
movsxd rdx, edx
movzx eax, byte [r15 + rdx]
xor byte [r13 + rdx], al
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x50]
mov r9d, ebx
mov r8, r13
mov edx, esi
mov qword [rsp + 0x30], rcx
xor r12d, r12d
call sym.PKCS1_MGF1
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x6508ae
lea r8d, [rsi - 1]
cmp r8d, 0xe
jbe 0x650976
movdqu xmm0, xmmword [rdi + 1]
mov eax, esi
pxor xmm0, xmmword [rsp + 0x50]
shr eax, 4
movups xmmword [rdi + 1], xmm0
cmp eax, 1
je 0x650779
movdqu xmm0, xmmword [rdi + 0x11]
pxor xmm0, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x11], xmm0
cmp eax, 2
je 0x650779
movdqu xmm0, xmmword [rdi + 0x21]
pxor xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x21], xmm0
cmp eax, 3
je 0x650779
movdqu xmm0, xmmword [rdi + 0x31]
pxor xmm0, xmmword [rsp + 0x80]
movups xmmword [rdi + 0x31], xmm0
mov edx, esi
and edx, 0xfffffff0
mov eax, edx
cmp edx, esi
je 0x650848
mov r9d, esi
sub r8d, edx
sub r9d, edx
cmp r8d, 6
jbe 0x6507c1
lea r8d, [rdx + 1]
movq xmm1, qword [rsp + rdx + 0x50]
mov edx, r9d
add rdi, r8
and edx, 0xfffffff8
movq xmm0, qword [rdi]
add eax, edx
pxor xmm0, xmm1
movq qword [rdi], xmm0
cmp r9d, edx
je 0x650848
mov rdi, qword [rsp + 0x38]
movsxd rdx, eax
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
lea edx, [rax + 1]
cmp esi, edx
jle 0x650848
movsxd rdx, edx
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
lea edx, [rax + 2]
cmp esi, edx
jle 0x650848
movsxd rdx, edx
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
lea edx, [rax + 3]
cmp esi, edx
jle 0x650848
movsxd rdx, edx
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
lea edx, [rax + 4]
cmp esi, edx
jle 0x650848
movsxd rdx, edx
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
lea edx, [rax + 5]
cmp esi, edx
jle 0x650848
movsxd rdx, edx
add eax, 6
movzx r8d, byte [rsp + rdx + 0x50]
xor byte [rdi + rdx], r8b
cmp esi, eax
jle 0x650848
cdqe
movzx edx, byte [rsp + rax + 0x50]
xor byte [rdi + rax], dl
mov r12d, 1
jmp 0x6508ae
call sym.ERR_new
lea r8, str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
mov edx, 0x5c
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x78
mov ecx, 4
call sym.ERR_set_error
mov eax, r12d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
xor r15d, r15d
lea rcx, [rsp + 0x50]
xor r12d, r12d
mov edx, 0x40
call sym.OPENSSL_cleanse
mov r9d, 0x89
mov rdx, r14
mov rcx, r15
lea r8, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
call sym.CRYPTO_clear_free
jmp 0x650882
call sym.EVP_sha1
mov r14, rax
jmp 0x65048d
call sym.ERR_new
lea r8, str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
mov edx, 0x57
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x6e
mov ecx, 4
call sym.ERR_set_error
jmp 0x650882
call sym.ERR_new
lea r8, str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
mov edx, 0x51
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0xb5
mov ecx, 4
call sym.ERR_set_error
jmp 0x650882
xor r12d, r12d
lea rcx, [rsp + 0x50]
jmp 0x6508ae
xor eax, eax
xor edx, edx
jmp 0x65062f
xor edx, edx
xor eax, eax
jmp 0x650788
call sym.ERR_new
lea r8, str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
mov edx, 0x74
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_rsa_rsa_oaep.c
call sym.ERR_set_debug
mov ecx, 4
xor r8d, r8d
mov edx, 0xc0100
call sym.ERR_set_error
lea rcx, [rsp + 0x50]
jmp 0x6508ae