Function at 0x10035c90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc8]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xe0]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xdc]
cmp eax, ebx
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
jne 0x10035d1c
call sym.LIBEAY32.dll_EVP_sha1
mov dword [esp + 0x14], eax
cmp esi, ebx
jne 0x10035d24
mov dword [esp + 0x28], eax
push eax
call sym.LIBEAY32.dll_EVP_MD_size
add esp, 4
cmp dword [esp + 0xc8], ebx
mov esi, eax
jle 0x10035feb
cmp edi, ebx
jle 0x10035feb
cmp ebp, edi
jl 0x10035fe2
lea eax, [esi + esi + 2]
cmp ebp, eax
jl 0x10035fe2
mov edi, ebp
push 0x9b
sub edi, esi
sub edi, 1
push str..crypto_rsa_rsa_oaep.c
push edi
call sym.LIBEAY32.dll_CRYPTO_malloc
push 0x9c
push str..crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x28], eax
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0x18
cmp dword [esp + 0x10], 0
mov ebx, eax
mov dword [esp + 0x2c], ebx
je 0x10035fc5
test ebx, ebx
je 0x10035fc5
push ebp
push 0
push ebx
call fcn.100d7a80
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push eax
sub ebp, eax
push ecx
add ebp, ebx
push ebp
call fcn.100d73f0
movzx eax, byte [ebx]
lea ebp, [eax - 1]
not eax
shr eax, 0x1f
shr ebp, 0x1f
and ebp, eax
mov eax, dword [esp + 0x40]
push eax
lea edx, [ebx + 1]
push edi
lea ebx, [esi + ebx + 1]
push ebx
lea ecx, [esp + 0x60]
push esi
push ecx
neg ebp
mov dword [esp + 0x44], edx
call sym.LIBEAY32.dll_PKCS1_MGF1
add esp, 0x2c
test eax, eax
jne 0x10035f8b
xor ecx, ecx
test esi, esi
jle 0x10035e24
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
sub edx, eax
mov dword [esp + 0x18], edx
jmp 0x10035e14
mov edx, dword [esp + 0x18]
lea eax, [esp + ecx + 0x3c]
mov dl, byte [edx + eax]
xor byte [eax], dl
add ecx, 1
cmp ecx, esi
jl 0x10035e10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
call sym.LIBEAY32.dll_PKCS1_MGF1
add esp, 0x14
test eax, eax
jne 0x10035f8b
test edi, edi
jle 0x10035e60
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
add eax, 1
sub edx, 1
jne 0x10035e53
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xdc]
push 0
push eax
mov eax, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x10035f8b
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x80]
push ecx
push edx
call sym.LIBEAY32.dll_CRYPTO_memcmp
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ecx
and ebp, ecx
add esp, 0xc
xor ebx, ebx
cmp esi, edi
mov dword [esp + 0x14], ebp
jge 0x10035f16
nop
mov edx, dword [esp + 0x10]
movzx ecx, byte [esi + edx]
mov eax, ecx
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, ebx
not eax
neg edx
and eax, edx
mov ebp, eax
and eax, esi
not ebp
and ebp, dword [esp + 0x20]
or ebx, edx
or ebp, eax
lea eax, [ecx - 1]
shr eax, 0x1f
not ecx
shr ecx, 0x1f
and eax, ecx
neg eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x14]
or eax, ebx
and ebp, eax
add esi, 1
cmp esi, edi
mov dword [esp + 0x14], ebp
jl 0x10035ec0
test ebp, ebx
je 0x10035f55
mov ecx, dword [esp + 0x20]
add ecx, 1
mov eax, edi
sub eax, ecx
cmp dword [esp + 0xc8], eax
mov dword [esp + 0x24], eax
jge 0x10035f76
push 0xe1
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov dword [esp + 0x24], 0xffffffff
mov ebp, dword [esp + 0x1c]
push 0xee
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10035f8f
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x34]
add ecx, edx
push ecx
push eax
call fcn.100d73f0
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10035fa7
push edi
push esi
call sym.LIBEAY32.dll_OPENSSL_cleanse
push esi
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 0xc
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10035fbf
push ebp
push esi
call sym.LIBEAY32.dll_OPENSSL_cleanse
push esi
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 0xc
mov eax, dword [esp + 0x24]
jmp 0x10035fee
push 0x9e
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10035f8f
mov edi, dword [esp + 0x30]
jmp 0x10035f59
or eax, 0xffffffff
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d6528
add esp, 0xb0
ret