Function at 0x552ce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.0059eec0
cmp dword [esp + 0x24], 0
push esi
mov dword [esp + 4], 0
jle 0x55300b
mov esi, dword [esp + 0x30]
test esi, esi
jle 0x55300b
push ebp
mov ebp, dword [esp + 0x38]
cmp esi, ebp
jg 0x552fd8
cmp ebp, 0xb
jl 0x552fd8
push edi
push 0xc3
push str.crypto_rsa_rsa_pk1.c
push ebp
call fcn.004964c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x552d6a
call fcn.00499720
push str.RSA_padding_check_PKCS1_type_2
push 0xc5
push str.crypto_rsa_rsa_pk1.c
call fcn.004997d0
push edi
push 0x41
push 4
call fcn.00499810
add esp, 0x18
or eax, 0xffffffff
pop edi
pop ebp
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
push ebx
add edx, esi
mov ebx, ebp
add edi, ebp
mov eax, esi
mov dword [esp + 0x18], edi
not eax
lea ecx, [esi - 1]
shr eax, 0x1f
dec edi
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 [edi], al
sub ebx, 1
jne 0x552d75
mov eax, dword [esp + 0x18]
mov esi, 2
mov dword [esp + 0x20], edi
movzx ebx, byte [eax]
movzx eax, byte [edi]
xor ebx, 2
dec ebx
dec eax
shr ebx, 0x1f
shr eax, 0x1f
neg ebx
neg eax
and ebx, eax
mov dword [esp + 0x14], ebx
xor ebx, ebx
movzx edx, byte [edi + esi]
mov eax, ebx
dec edx
not eax
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x18], eax
not eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], eax
and ecx, esi
mov eax, dword [esp + 0x18]
inc esi
and eax, dword [esp + 0x10]
or eax, ecx
mov dword [esp + 0x10], eax
cmp esi, ebp
jl 0x552dc8
mov esi, dword [esp + 0x34]
mov edx, ebp
sub edx, eax
mov ebx, dword [esp + 0x14]
dec edx
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x18], edx
xor ecx, edx
mov eax, edx
mov edx, dword [esp + 0x10]
xor eax, esi
or ecx, eax
xor ecx, esi
shr ecx, 0x1f
lea eax, [edx - 0xa]
dec ecx
or eax, edx
xor eax, edx
shr eax, 0x1f
dec eax
and ecx, eax
and ebx, ecx
lea ecx, [ebp - 0xb]
mov edx, ecx
mov dword [esp + 0x24], ecx
sub edx, esi
mov dword [esp + 0x14], ebx
xor edx, esi
mov eax, ecx
xor eax, esi
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [esp + 0x34], edx
not edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
lea edx, [ebp - 0xb]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], edx
and eax, esi
and dword [esp + 0x34], ecx
mov esi, 1
mov ecx, dword [esp + 0x34]
or ecx, eax
mov dword [esp + 0x34], ecx
cmp edx, esi
jle 0x552f0e
mov eax, ebp
sub eax, dword [esp + 0x18]
add eax, 0xfffffff5
mov dword [esp + 0x28], eax
and eax, esi
sub ebp, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp ebp, 0xb
jle 0x552ef8
movzx ecx, cl
add ebp, 0xfffffff5
mov eax, ecx
mov dword [esp + 0x1c], ecx
not eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0xb]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
lea eax, [eax + 1]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov bl, byte [eax + esi - 1]
and bl, cl
mov cl, byte [eax - 1]
and cl, dl
or bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [eax - 1], bl
sub ebp, 1
jne 0x552ec4
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
add esi, esi
mov eax, dword [esp + 0x28]
cmp esi, edx
jl 0x552e94
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x552f72
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
shr ecx, 0x1f
neg ebp
mov dword [esp + 0x24], ecx
mov eax, ebp
inc ebp
shr eax, 0x1f
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
mov dword [esp + 0x28], ecx
not ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov dl, byte [esi + edi + 0xb]
and dl, al
mov eax, dword [esp + 0x30]
mov al, byte [eax + esi]
and al, cl
mov ecx, dword [esp + 0x24]
or dl, al
mov eax, dword [esp + 0x30]
mov byte [eax + esi], dl
inc esi
cmp esi, dword [esp + 0x34]
jl 0x552f25
mov ebp, dword [esp + 0x40]
push 0x10b
push str.crypto_rsa_rsa_pk1.c
push ebp
push edi
call fcn.004965c0
call fcn.00499720
push str.RSA_padding_check_PKCS1_type_2
push 0x112
push str.crypto_rsa_rsa_pk1.c
call fcn.004997d0
push 0
push 0x9f
push 4
call fcn.00499810
mov eax, ebx
and eax, 1
push eax
call fcn.0049a530
add esp, 0x2c
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x34]
not ebx
and eax, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x34]
or eax, ecx
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x1c
ret
call fcn.00499720
push str.RSA_padding_check_PKCS1_type_2
push 0xbf
push str.crypto_rsa_rsa_pk1.c
call fcn.004997d0
push 0
push 0x9f
push 4
call fcn.00499810
add esp, 0x18
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x1c
ret
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret