Function at 0x180148470
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180148470
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc8
call fcn.180001055
sub rsp, rax
mov rax, qword [0x1802946b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r13, qword [rsp + 0x140]
lea ebx, [rdx - 1]
mov rax, qword [rsp + 0x130]
xor esi, esi
mov rdi, qword [rsp + 0x148]
mov r15, rcx
mov dword [rsp + 0x30], r9d
mov r12d, esi
mov qword [rsp + 0x60], r8
mov r14d, esi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], ebx
test r13, r13
jne 0x1801484e7
call sym.libcrypto_1_1_x64.dll_EVP_sha1
mov r13, rax
test rdi, rdi
mov rcx, r13
cmove rdi, r13
mov qword [rsp + 0x48], rdi
call sym.libcrypto_1_1_x64.dll_EVP_MD_size
movsxd rdi, eax
mov ebp, ebx
lea eax, [rdi + rdi]
sub ebp, eax
lea ecx, [rbp - 1]
cmp dword [rsp + 0x30], ecx
jle 0x180148537
mov edx, 0x9a
mov dword [rsp + 0x20], 0x3e
lea r9, str.crypto_rsa_rsa_oaep.c
mov ecx, 4
lea r8d, [rdx - 0x2c]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
xor eax, eax
jmp 0x1801488ee
inc eax
cmp ebx, eax
jge 0x180148566
mov edx, 0x9a
mov dword [rsp + 0x20], 0x44
lea r9, str.crypto_rsa_rsa_oaep.c
mov ecx, 4
lea r8d, [rdx - 0x22]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
xor eax, eax
jmp 0x1801488ee
mov rcx, qword [rsp + 0x50]
mov rbx, rdi
movsxd rdx, dword [rsp + 0x138]
add rcx, rdi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov byte [r15], sil
inc r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
lea r13, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov r8, r13
mov qword [rsp + 0x68], rbx
call sym.libcrypto_1_1_x64.dll_EVP_Digest
test eax, eax
je 0x1801488c5
sub ebp, dword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
dec ebp
inc rcx
movsxd r8, ebp
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
movsxd rcx, dword [rsp + 0x30]
movsxd rbp, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov eax, ebp
sub eax, ecx
mov r8d, ecx
sub eax, edi
cdqe
mov byte [rax + rdx], 1
mov rax, rcx
inc rdx
mov rcx, rbp
sub rcx, rax
sub rcx, rbx
add rcx, rdx
mov rdx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r15
call sym.libcrypto_1_1_x64.dll_RAND_bytes
test eax, eax
jle 0x1801488c5
mov r14d, ebp
lea rdx, str.crypto_rsa_rsa_oaep.c
sub r14d, edi
mov r8d, 0x55
movsxd rbp, r14d
mov rcx, rbp
call sym.libcrypto_1_1_x64.dll_CRYPTO_malloc
mov r12, rax
test rax, rax
jne 0x180148661
lea r9, str.crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0x57
mov edx, 0x9a
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
jmp 0x1801488c5
mov rax, qword [rsp + 0x48]
mov r9d, edi
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, r12
call sym.libcrypto_1_1_x64.dll_PKCS1_MGF1
test eax, eax
js 0x1801488c5
mov r8d, esi
test r14d, r14d
jle 0x180148751
cmp r14d, 0x40
jb 0x180148751
lea eax, [r14 - 1]
movsxd rcx, eax
lea rax, [rcx + r12]
lea rdx, [rcx + r13]
cmp r13, rax
ja 0x1801486b7
cmp rdx, r12
jae 0x180148751
mov ecx, r14d
and ecx, 0x8000003f
jge 0x1801486c9
dec ecx
or ecx, 0xffffffc0
inc ecx
mov r9, qword [rsp + 0x38]
mov eax, r14d
sub eax, ecx
mov r10, r9
mov rdx, r12
movsxd r11, eax
sub rdx, r13
not r10
mov rcx, r13
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
add r8d, 0x40
movdqu xmm1, xmmword [rdx + rcx]
lea rcx, [rcx + 0x40]
lea rax, [rcx + r10]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [rdx + rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [rdx + rcx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [rdx + rcx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp rax, r11
jl 0x1801486f0
jmp 0x180148756
mov r9, qword [rsp + 0x38]
movsxd rax, r8d
cmp rax, rbp
jge 0x180148780
lea rcx, [r9 + 1]
mov rdx, r12
add rcx, rax
sub rdx, r13
sub rbp, rax
nop
movzx eax, byte [rdx + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rbp, 1
jne 0x180148770
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov r9d, r14d
mov qword [rsp + 0x20], rax
mov r8, r13
mov edx, edi
call sym.libcrypto_1_1_x64.dll_PKCS1_MGF1
test eax, eax
js 0x1801488c5
test edi, edi
jle 0x180148896
cmp edi, 0x40
jb 0x180148896
lea eax, [rdi - 1]
movsxd rcx, eax
lea rax, [rsp + 0x70]
add rax, rcx
lea rdx, [rcx + r15]
cmp r15, rax
ja 0x1801487da
lea rax, [rsp + 0x70]
cmp rdx, rax
jae 0x180148896
mov eax, edi
and eax, 0x8000003f
jge 0x1801487ea
dec eax
or eax, 0xffffffc0
inc eax
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
sub edi, eax
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x90]
movsxd r11, edi
sub rdx, r15
lea r10, [rsp + 0xa0]
sub r8, r15
sub r9, r15
sub r10, r15
mov rcx, r15
not rbx
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
add esi, 0x40
movdqu xmm1, xmmword [rdx + rcx]
lea rcx, [rcx + 0x40]
lea rax, [rbx + rcx]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [r8 + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [r9 + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [r10 + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp rax, r11
jl 0x180148830
mov rbx, qword [rsp + 0x68]
movsxd rcx, esi
cmp rcx, rbx
jge 0x1801488c0
lea rdx, [rsp + 0x70]
sub rdx, r15
lea rax, [rcx + r15]
sub rbx, rcx
nop dword [rax]
movzx ecx, byte [rax + rdx]
xor byte [rax], cl
lea rax, [rax + 1]
sub rbx, 1
jne 0x1801488b0
mov esi, 1
mov edx, 0x40
lea rcx, [rsp + 0x70]
call sym.libcrypto_1_1_x64.dll_OPENSSL_cleanse
movsxd rdx, r14d
lea r8, str.crypto_rsa_rsa_oaep.c
mov r9d, 0x68
mov rcx, r12
call sym.libcrypto_1_1_x64.dll_CRYPTO_clear_free
mov eax, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800028c4
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret