Function at 0x10035630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call sym.LIBEAY32.dll_RSA_get_method
mov esi, dword [esp + 0x40]
add esp, 4
cmp esi, 0xffffffff
mov ebx, eax
jne 0x1003570c
mov esi, ebx
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x10]
push ebp
push ecx
call sym.LIBEAY32.dll_BN_num_bits
mov ebp, eax
dec ebp
and ebp, 7
push edi
mov dword [esp + 0x20], ebp
call sym.LIBEAY32.dll_RSA_size
add esp, 8
mov edi, eax
test ebp, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x40], edi
jne 0x1003569e
mov byte [ebp], 0
inc ebp
dec edi
mov dword [esp + 0x40], edi
cmp esi, 0xfffffffe
jne 0x10035740
mov esi, edi
sub esi, ebx
sub esi, 2
test esi, esi
jle 0x10035782
push 0xd5
push str..crypto_rsa_rsa_pss.c
push esi
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10035770
push 0xd9
push str..crypto_rsa_rsa_pss.c
push 0x41
push 0x7d
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10035702
push eax
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
cmp esi, 0xfffffffe
jne 0x10035716
jmp 0x10035665
jge 0x10035665
push 0xbe
push str..crypto_rsa_rsa_pss.c
push 0x88
push 0x7d
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea edx, [ebx + esi + 2]
cmp edi, edx
jge 0x100356ae
push 0xd0
push str..crypto_rsa_rsa_pss.c
push 0x6e
push 0x7d
push 4
call sym.LIBEAY32.dll_ERR_put_error
mov eax, dword [esp + 0x28]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push esi
push eax
call sym.LIBEAY32.dll_RAND_bytes
add esp, 8
test eax, eax
je 0x100356ed
lea eax, [esp + 0x1c]
push eax
sub edi, ebx
call sym.LIBEAY32.dll_EVP_MD_CTX_init
mov ecx, dword [esp + 0x40]
push 0
push ecx
lea edx, [esp + 0x28]
push edx
call sym.LIBEAY32.dll_EVP_DigestInit_ex
push 8
lea eax, [esp + 0x30]
push 0x100aa1a4
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
mov ecx, dword [esp + 0x54]
push ebx
push ecx
lea edx, [esp + 0x40]
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x28
test esi, esi
je 0x100357da
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
push 0
lea eax, [edi + ebp - 1]
push eax
lea edx, [esp + 0x24]
push edx
call sym.LIBEAY32.dll_EVP_DigestFinal
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
mov ecx, dword [esp + 0x4c]
push ecx
push ebx
lea eax, [edi + ebp - 1]
push eax
lea eax, [edi - 1]
push eax
push ebp
call sym.LIBEAY32.dll_PKCS1_MGF1
sub edi, esi
mov bl, byte [edi + ebp - 2]
lea eax, [edi + ebp - 2]
xor bl, 1
add esp, 0x24
mov byte [eax], bl
inc eax
test esi, esi
jle 0x10035836
xor ecx, ecx
test esi, esi
jle 0x10035836
mov edx, dword [esp + 0x10]
mov dl, byte [ecx + edx]
xor byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jl 0x10035827
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1003584f
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebp], al
mov ecx, dword [esp + 0x40]
mov byte [ecx + ebp - 1], 0xbc
mov esi, 1
jmp 0x100356f1