Function at 0x1003ae80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.100b1990
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call sym.LIBEAY32_smt.dll_RSA_get_method
mov esi, dword [esp + 0x40]
add esp, 4
cmp esi, 0xffffffff
mov ebx, eax
jne 0x1003aef6
mov esi, ebx
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x10]
push ecx
call sym.LIBEAY32_smt.dll_BN_num_bits
mov ebp, eax
push edi
dec ebp
and ebp, 7
mov dword [esp + 0x34], ebp
call sym.LIBEAY32_smt.dll_RSA_size
add esp, 8
mov dword [esp + 0x3c], eax
test ebp, ebp
mov ebp, dword [esp + 0x30]
jne 0x1003aee8
mov byte [ebp], 0
inc ebp
dec eax
mov dword [esp + 0x3c], eax
cmp esi, 0xfffffffe
jne 0x1003af24
mov esi, eax
sub esi, ebx
sub esi, 2
jmp 0x1003af50
cmp esi, 0xfffffffe
jne 0x1003aefd
jmp 0x1003aeb2
jge 0x1003aeb2
push 0xbe
push str..crypto_rsa_rsa_pss.c
push 0x88
push 0x7d
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea edx, [ebx + esi + 2]
cmp eax, edx
jge 0x1003af50
push 0xd0
push str..crypto_rsa_rsa_pss.c
push 0x6e
push 0x7d
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
mov eax, dword [esp + 0x28]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
test esi, esi
jle 0x1003afa4
push 0xd5
push str..crypto_rsa_rsa_pss.c
push esi
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x10], edi
jne 0x1003af8e
push 0xd9
push str..crypto_rsa_rsa_pss.c
push 0x41
push 0x7d
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
jmp 0x1003b097
push esi
push edi
call sym.LIBEAY32_smt.dll_RAND_bytes
add esp, 8
test eax, eax
je 0x1003b093
mov eax, dword [esp + 0x3c]
mov edi, eax
lea ecx, [esp + 0x18]
sub edi, ebx
push ecx
lea eax, [edi + ebp - 1]
mov dword [esp + 0x34], eax
call sym.LIBEAY32_smt.dll_EVP_MD_CTX_init
mov edx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0x20]
push edx
push eax
call sym.LIBEAY32_smt.dll_EVP_DigestInit_ex
push 8
lea ecx, [esp + 0x2c]
push 0x100bd13c
push ecx
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
mov edx, dword [esp + 0x50]
push ebx
lea eax, [esp + 0x38]
push edx
push eax
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
add esp, 0x28
test esi, esi
je 0x1003b006
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
add esp, 0xc
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
call sym.LIBEAY32_smt.dll_EVP_DigestFinal
lea edx, [esp + 0x24]
push edx
call sym.LIBEAY32_smt.dll_EVP_MD_CTX_cleanup
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push eax
push ebx
lea eax, [edi - 1]
push ecx
push eax
push ebp
call sym.LIBEAY32_smt.dll_PKCS1_MGF1
sub edi, esi
add esp, 0x24
mov bl, byte [edi + ebp - 2]
lea eax, [edi + ebp - 2]
xor bl, 1
mov byte [eax], bl
inc eax
test esi, esi
jle 0x1003b066
xor ecx, ecx
test esi, esi
jle 0x1003b066
mov edx, dword [esp + 0x10]
mov bl, byte [eax]
mov dl, byte [ecx + edx]
xor bl, dl
mov byte [eax], bl
inc eax
inc ecx
cmp ecx, esi
jl 0x1003b053
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1003b07f
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebp], al
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov esi, 1
mov byte [ecx + ebp - 1], 0xbc
jmp 0x1003b09b
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x1003b0a8
push edi
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret