Function at 0x101858b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10228380
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, dword [esp + 0x40]
mov edx, ecx
test eax, eax
mov dword [esp + 0x24], 0
push ecx
cmovne edx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edx
call sym.libcrypto_3.dll_EVP_MD_get_size
mov esi, dword [esp + 0x48]
mov ebp, eax
add esp, 4
test ebp, ebp
js 0x10185b97
cmp esi, 0xffffffff
jne 0x10185906
mov esi, ebp
jmp 0x10185919
cmp esi, 0xfffffffe
je 0x10185914
cmp esi, 0xfffffffc
jne 0x10185982
mov dword [esp + 0x14], ebp
mov esi, 0xfffffffd
mov ebx, dword [esp + 0x30]
push dword [ebx + 0x14]
call sym.libcrypto_3.dll_BN_num_bits
dec eax
and eax, 7
push ebx
mov dword [esp + 0x24], eax
call sym.libcrypto_3.dll_RSA_size
mov ebx, dword [esp + 0x3c]
add esp, 8
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x1c], edi
jne 0x1018594f
mov byte [ebx], 0
inc ebx
dec ecx
mov dword [esp + 0x20], ecx
lea eax, [ebp + 2]
cmp ecx, eax
jge 0x101859b3
call sym.libcrypto_3.dll_ERR_new
push 0x102dd718
push 0xcf
push str.crypto_rsa_rsa_pss.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x6e
push 4
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x10185b97
jge 0x10185919
call sym.libcrypto_3.dll_ERR_new
push 0x102dd718
push 0xc4
push str.crypto_rsa_rsa_pss.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x88
push 4
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x10185b97
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x18], eax
lea ecx, [eax - 2]
cmp esi, 0xfffffffd
jne 0x10185bc0
mov esi, ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
js 0x101859d7
cmp esi, ecx
jle 0x101859d7
mov esi, ecx
test esi, esi
jle 0x10185a17
push 0xdb
push str.crypto_rsa_rsa_pss.c
push esi
call sym.libcrypto_3.dll_CRYPTO_malloc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10185b97
mov eax, dword [esp + 0x30]
push 0
push esi
push edi
push dword [eax + 4]
call sym.libcrypto_3.dll_RAND_bytes_ex
add esp, 0x10
test eax, eax
jle 0x10185b97
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x40], eax
call sym.libcrypto_3.dll_EVP_MD_CTX_new
mov dword [esp + 0x10], eax
test eax, eax
je 0x10185b97
push 0
push dword [esp + 0x40]
push eax
call sym.libcrypto_3.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x10185b97
push 8
push 0x102dd6ac
push dword [esp + 0x18]
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10185b97
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x18]
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10185b97
test esi, esi
je 0x10185a92
push esi
push edi
push dword [esp + 0x18]
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10185b97
mov eax, dword [esp + 0x40]
push 0
add eax, ebx
push eax
push dword [esp + 0x18]
call sym.libcrypto_3.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x10185b97
mov ecx, dword [esp + 0x40]
push dword [esp + 0x28]
push ebp
lea eax, [ecx + ebx]
push eax
push ecx
push ebx
call sym.libcrypto_3.dll_PKCS1_MGF1
add esp, 0x14
test eax, eax
jne 0x10185b97
mov ecx, dword [esp + 0x18]
sub ecx, esi
add ecx, ebx
xor byte [ecx - 2], 1
lea eax, [ecx - 2]
dec ecx
test esi, esi
jle 0x10185b6e
xor edx, edx
cmp esi, 0x40
jb 0x10185b5b
lea ebp, [eax + esi]
lea eax, [esi - 1]
add eax, edi
cmp ecx, eax
ja 0x10185afd
cmp ebp, edi
jae 0x10185b5b
mov eax, esi
and eax, 0x8000003f
jns 0x10185b0b
dec eax
or eax, 0xffffffc0
inc eax
mov ebp, esi
sub ebp, eax
nop
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [edi + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [edi + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, ebp
jl 0x10185b10
cmp edx, esi
jge 0x10185b6e
nop
mov al, byte [edx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x10185b60
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10185b86
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 1
mov byte [eax + ebx - 1], 0xbc
push dword [esp + 0x10]
call sym.libcrypto_3.dll_EVP_MD_CTX_free
push 0x10a
push str.crypto_rsa_rsa_pss.c
push esi
push edi
call sym.libcrypto_3.dll_CRYPTO_clear_free
mov eax, dword [esp + 0x38]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp esi, ecx
jle 0x101859d7
call sym.libcrypto_3.dll_ERR_new
push 0x102dd718
push 0xd7
jmp 0x10185965