Function at 0x554170
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.0059eec0
cmp dword [esp + 0x28], 0
push esi
mov dword [esp + 8], 0
jle 0x554561
mov esi, dword [esp + 0x34]
test esi, esi
jle 0x554561
push ebp
mov ebp, dword [esp + 0x3c]
cmp esi, ebp
jg 0x554534
cmp ebp, 0xb
jl 0x554534
push ebx
push 0x5b
push str.crypto_rsa_rsa_ssl.c
push ebp
call fcn.004964c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5541f4
call fcn.00499720
push str.RSA_padding_check_SSLv23
push 0x5d
push str.crypto_rsa_rsa_ssl.c
call fcn.004997d0
push ebx
push 0x41
push 4
call fcn.00499810
add esp, 0x18
or eax, 0xffffffff
pop ebx
pop ebp
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 0x38]
push edi
add edx, esi
mov edi, ebp
add ebx, ebp
nop
mov eax, esi
mov dword [esp + 0x28], ebx
not eax
lea ecx, [esi - 1]
shr eax, 0x1f
dec ebx
shr ecx, 0x1f
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 [ebx], al
sub edi, 1
jne 0x554200
movzx ecx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov edi, 2
mov dword [esp + 0x1c], ebx
movzx edx, byte [eax]
lea eax, [ecx - 1]
xor edx, 2
shr eax, 0x1f
neg eax
lea edx, [edx - 1]
shr edx, 0x1f
neg edx
and edx, eax
or esi, 0xffffffff
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov eax, edx
mov dword [esp + 0x10], edx
not eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
movzx edx, byte [ebx + edi]
dec edx
shr edx, 0x1f
neg edx
and esi, edx
mov dword [esp + 0x2c], esi
not esi
mov ecx, dword [esp + 0x2c]
and ecx, edi
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x2c]
and eax, dword [esp + 0x14]
or ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
or eax, edx
movzx ecx, byte [ebx + edi]
mov esi, eax
xor ecx, 3
mov dword [esp + 0x24], eax
dec ecx
not esi
shr ecx, 0x1f
inc edi
neg ecx
or ecx, eax
mov eax, esi
and eax, 1
add eax, dword [esp + 0x18]
and ecx, eax
mov dword [esp + 0x18], ecx
cmp edi, ebp
jl 0x554278
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
shr eax, 0x1f
dec eax
and edx, eax
mov eax, edx
mov ecx, edx
or eax, dword [esp + 0x28]
not ecx
mov dword [esp + 0x2c], eax
not eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [esi - 8]
mov ebp, dword [esp + 0x2c]
or eax, esi
xor eax, esi
and ebp, 0x71
shr eax, 0x1f
dec eax
and edx, eax
mov eax, edx
mov dword [esp + 0x10], edx
or eax, ecx
not edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
not eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
dec eax
sub ecx, eax
mov dword [esp + 0x18], eax
xor ecx, eax
and esi, 0x73
xor eax, dword [esp + 0x38]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x38]
shr ecx, 0x1f
dec ecx
and eax, ecx
mov dword [esp + 0x10], eax
or eax, edx
mov edx, dword [esp + 0x20]
and edx, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
and edx, 0x6b
or edx, ebp
not eax
mov ebp, dword [esp + 0x38]
and edx, edi
mov edi, dword [esp + 0x44]
or edx, esi
mov dword [esp + 0x2c], eax
and edx, ecx
mov eax, dword [esp + 0x2c]
and eax, 0x6d
or edx, eax
lea ebx, [edi - 0xb]
mov dword [esp + 0x20], edx
mov eax, ebx
mov edx, ebx
mov dword [esp + 0x24], ebx
sub edx, ebp
xor eax, ebp
xor edx, ebp
or edx, eax
xor edx, ebx
shr edx, 0x1f
neg edx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x38]
not edx
mov esi, 1
mov dword [esp + 0x38], edx
mov edx, ebx
mov eax, dword [esp + 0x38]
and edx, ecx
and eax, ebp
mov ebp, dword [esp + 0x1c]
or edx, eax
mov dword [esp + 0x38], edx
cmp ebx, esi
jle 0x554466
mov eax, edi
sub eax, dword [esp + 0x18]
add eax, 0xfffffff5
mov dword [esp + 0x14], eax
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x554454
movzx ecx, cl
add edi, 0xfffffff5
mov eax, ecx
mov dword [esp + 0x28], ecx
not eax
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0xb]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
lea eax, [eax + 1]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x2c]
mov bl, byte [esi + eax - 1]
and bl, cl
mov cl, byte [eax - 1]
and cl, dl
or bl, cl
mov ecx, dword [esp + 0x28]
mov byte [eax - 1], bl
sub edi, 1
jne 0x554420
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
add esi, esi
mov eax, dword [esp + 0x14]
cmp esi, ebx
jl 0x5543f0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
xor esi, esi
test edx, edx
jle 0x5544ce
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
shr ecx, 0x1f
neg edi
mov dword [esp + 0x28], ecx
mov eax, edi
inc edi
shr eax, 0x1f
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
mov dword [esp + 0x2c], ecx
not ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov dl, byte [esi + ebp + 0xb]
and dl, al
mov eax, dword [esp + 0x34]
mov al, byte [eax + esi]
and al, cl
mov ecx, dword [esp + 0x28]
or dl, al
mov eax, dword [esp + 0x34]
mov byte [eax + esi], dl
inc esi
cmp esi, dword [esp + 0x38]
jl 0x554481
mov edi, dword [esp + 0x44]
push 0xb2
push str.crypto_rsa_rsa_ssl.c
push edi
push ebp
call fcn.004965c0
call fcn.00499720
push str.RSA_padding_check_SSLv23
push 0xb3
push str.crypto_rsa_rsa_ssl.c
call fcn.004997d0
mov eax, dword [esp + 0x3c]
push 0
push eax
push 4
call fcn.00499810
mov eax, ebx
and eax, 1
push eax
call fcn.0049a530
add esp, 0x2c
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x38]
not ebx
and eax, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x38]
or eax, ecx
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x20
ret
call fcn.00499720
push str.RSA_padding_check_SSLv23
push 0x57
push str.crypto_rsa_rsa_ssl.c
call fcn.004997d0
push 0
push 0x6f
push 4
call fcn.00499810
add esp, 0x18
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x20
ret
or eax, 0xffffffff
pop esi
add esp, 0x20
ret