Function at 0x2a9586e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.2a8cb5a0
cmp dword [esp + 0x1c], 0
push esi
mov dword [esp + 4], 0
jle 0x2a958a07
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x2a958a07
push edi
mov edi, dword [esp + 0x30]
cmp esi, edi
jg 0x2a9589e9
cmp edi, 0xb
jl 0x2a9589e9
push ebp
push 0x4e
push str.crypto_rsa_rsa_ssl.c
push edi
call fcn.2a8ccee0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x2a958756
push 0x50
push str.crypto_rsa_rsa_ssl.c
push 0x41
push 0x72
push 4
call fcn.2a8d0840
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x2c]
add ebp, edi
add edx, esi
push ebx
test edi, edi
jle 0x2a95878b
mov ebx, edi
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebp
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
and al, cl
mov byte [ebp], al
sub ebx, 1
jne 0x2a958765
movzx eax, byte [ebp + 1]
xor edx, edx
xor eax, 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edx
lea ebx, [eax - 1]
not eax
shr eax, 0x1f
shr ebx, 0x1f
and ebx, eax
movzx eax, byte [ebp]
dec eax
neg ebx
shr eax, 0x1f
neg eax
and ebx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
not eax
mov dword [esp + 0x20], eax
cmp edi, 2
jle 0x2a95882c
or esi, 0xffffffff
mov ebx, 2
movzx edx, byte [ebx + ebp]
lea ecx, [edx - 1]
xor edx, 3
shr ecx, 0x1f
neg ecx
and esi, ecx
mov eax, esi
and esi, ebx
not eax
inc ebx
and eax, dword [esp + 0x10]
or eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
or eax, ecx
lea ecx, [edx - 1]
not edx
shr ecx, 0x1f
shr edx, 0x1f
mov esi, eax
and edx, ecx
mov dword [esp + 0x18], eax
neg edx
not esi
or edx, eax
mov eax, esi
and eax, 1
add eax, dword [esp + 0x1c]
and edx, eax
mov dword [esp + 0x1c], edx
cmp ebx, edi
jl 0x2a9587d4
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
shr eax, 0x1f
dec eax
and ebx, eax
lea eax, [edx - 8]
or eax, edx
mov edi, ebx
xor eax, edx
or edi, dword [esp + 0x20]
shr eax, 0x1f
mov ecx, ebx
dec eax
not ecx
and ebx, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x10]
mov esi, ebx
or esi, ecx
dec eax
mov ecx, dword [esp + 0x2c]
mov edx, ebx
sub ecx, eax
mov dword [esp + 0x10], eax
xor ecx, eax
not edx
xor eax, dword [esp + 0x2c]
or ecx, eax
xor ecx, dword [esp + 0x2c]
shr ecx, 0x1f
dec ecx
and ebx, ecx
mov ecx, dword [esp + 0x20]
and ecx, edi
mov dword [esp + 0x14], ebx
mov eax, ebx
and ecx, 0x6b
or eax, edx
mov edx, edi
mov edi, dword [esp + 0x38]
not edx
and edx, 0x71
or edx, ecx
and edx, esi
not esi
and esi, 0x73
lea ecx, [edi - 0xb]
or edx, esi
mov esi, dword [esp + 0x2c]
and edx, eax
not eax
and eax, 0x6d
or edx, eax
mov eax, ecx
mov dword [esp + 0x18], edx
xor eax, esi
mov edx, ecx
sub edx, esi
xor edx, esi
or edx, eax
lea eax, [edi - 0xb]
xor edx, ecx
mov dword [esp + 0x20], eax
shr edx, 0x1f
neg edx
mov ecx, edx
and eax, edx
not ecx
and ecx, esi
mov esi, 1
or ecx, eax
lea eax, [edi - 0xb]
mov dword [esp + 0x2c], ecx
cmp eax, esi
jle 0x2a958950
mov eax, edi
sub eax, dword [esp + 0x10]
add eax, 0xfffffff5
mov dword [esp + 0x1c], eax
nop dword [eax]
and eax, esi
sub edi, esi
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
dec ebx
cmp edi, 0xb
jle 0x2a958938
mov ch, bl
lea eax, [ebp + 0xb]
not ch
add edi, 0xfffffff5
mov dl, byte [eax + esi]
lea eax, [eax + 1]
mov cl, byte [eax - 1]
and dl, bl
and cl, ch
or dl, cl
mov byte [eax - 1], dl
sub edi, 1
jne 0x2a958921
mov edi, dword [esp + 0x38]
add esi, esi
mov eax, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jl 0x2a958900
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
xor esi, esi
test ecx, ecx
jle 0x2a9589a1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
shr eax, 0x1f
neg edi
mov dword [esp + 0x20], eax
mov edx, edi
mov ecx, esi
shr edx, 0x1f
inc edi
xor dl, al
shr ecx, 0x1f
xor al, cl
or dl, al
mov al, byte [esi + ebp + 0xb]
xor dl, cl
mov ecx, dword [esp + 0x28]
neg dl
and dl, bl
and al, dl
not dl
and dl, byte [esi + ecx]
or al, dl
mov byte [esi + ecx], al
inc esi
mov eax, dword [esp + 0x20]
cmp esi, dword [esp + 0x2c]
jl 0x2a958967
mov edi, dword [esp + 0x38]
push 0xa5
push str.crypto_rsa_rsa_ssl.c
push edi
push ebp
call fcn.2a8ccfd0
push 0xa6
push str.crypto_rsa_rsa_ssl.c
push dword [esp + 0x30]
push 0x72
push 4
call fcn.2a8d0840
mov eax, ebx
and eax, 1
push eax
call fcn.2a8d0a20
add esp, 0x28
mov eax, ebx
and eax, dword [esp + 0x10]
not ebx
or eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x14
ret
push 0x4a
push str.crypto_rsa_rsa_ssl.c
push 0x6f
push 0x72
push 4
call fcn.2a8d0840
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret