Function at 0x10002699
Capabilities:
Encode data using xor

Disassembly:
jmp 0x101475d0
mov eax, 0x14
call fcn.101aa6d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push ebp
push esi
xor ebp, ebp
test eax, eax
push edi
cmove eax, ecx
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], eax
call sym.libcrypto_1_1.dll_EVP_MD_size
mov edi, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
js 0x10147817
cmp edi, 0xffffffff
jne 0x1014767e
mov edi, eax
mov esi, dword [esp + 0x28]
push dword [esi + 0x10]
call sym.libcrypto_1_1.dll_BN_num_bits
lea ebx, [eax - 1]
and ebx, 7
push esi
mov dword [esp + 0x28], ebx
call sym.libcrypto_1_1.dll_RSA_size
add esp, 8
mov edx, eax
test ebx, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
jne 0x10147653
mov byte [ebx], 0
inc ebx
dec edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 2]
cmp edx, eax
jge 0x101476b2
push 0xba
push str...crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x10147817
cmp edi, 0xfffffffe
jne 0x1014768a
mov edi, 0xfffffffd
jmp 0x1014761d
cmp edi, 0xfffffffd
jge 0x1014761d
push 0xae
push str...crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x10147817
mov esi, edx
sub esi, ecx
cmp edi, 0xfffffffd
jne 0x101476fb
lea edi, [esi - 2]
test edi, edi
jle 0x1014771e
push 0xc5
push str...crypto_rsa_rsa_pss.c
push edi
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1014770c
push 0xc8
push str...crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x10147817
lea eax, [esi - 2]
cmp edi, eax
jle 0x101476be
push 0xc1
jmp 0x10147663
push edi
push ebp
call sym.libcrypto_1_1.dll_RAND_bytes
add esp, 8
test eax, eax
jle 0x10147817
call sym.libcrypto_1_1.dll_EVP_MD_CTX_new
mov dword [esp + 0x10], eax
test eax, eax
je 0x10147817
push 0
push dword [esp + 0x38]
push eax
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x10147817
push 8
push 0x102361f0
push dword [esp + 0x18]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10147817
push dword [esp + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x18]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10147817
test edi, edi
je 0x10147797
push edi
push ebp
push dword [esp + 0x18]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x10147817
lea eax, [esi - 1]
push 0
add eax, ebx
push eax
push dword [esp + 0x18]
call sym.libcrypto_1_1.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x10147817
push dword [esp + 0x38]
lea ecx, [esi - 1]
push dword [esp + 0x18]
lea eax, [ecx + ebx]
push eax
push ecx
push ebx
call sym.libcrypto_1_1.dll_PKCS1_MGF1
add esp, 0x14
test eax, eax
jne 0x10147817
sub esi, edi
xor byte [esi + ebx - 2], 1
lea ecx, [esi + ebx]
dec ecx
test edi, edi
jle 0x101477ee
xor edx, edx
test edi, edi
jle 0x101477ee
mov al, byte [edx + ebp]
xor byte [ecx], al
inc edx
lea ecx, [ecx + 1]
cmp edx, edi
jl 0x101477e1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10147806
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov byte [eax + ebx - 1], 0xbc
push dword [esp + 0x10]
call sym.libcrypto_1_1.dll_EVP_MD_CTX_free
push 0xf7
push str...crypto_rsa_rsa_pss.c
push edi
push ebp
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
mov eax, dword [esp + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret