Function at 0x549fb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.005ae090
cmp dword [esp + 0x24], 0
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
jle 0x54a29b
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x54a29b
mov ebp, dword [esp + 0x3c]
cmp esi, ebp
jg 0x54a271
cmp ebp, 0xb
jl 0x54a271
push 0xc2
push str.crypto_rsa_rsa_pk1.c
push ebp
call fcn.0045ef50
mov edi, eax
add esp, 0xc
test edi, edi
je 0x54a29b
mov edx, dword [esp + 0x34]
push ebx
add edx, esi
mov ebx, ebp
add edi, ebp
nop dword [eax]
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 0x54a020
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 + 0x10], 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 dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
and ecx, esi
and eax, dword [esp + 0x14]
inc esi
or eax, ecx
mov dword [esp + 0x14], eax
cmp esi, ebp
jl 0x54a073
mov esi, dword [esp + 0x34]
mov edx, ebp
sub edx, eax
mov ebx, dword [esp + 0x10]
dec edx
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x18], edx
xor ecx, edx
mov eax, edx
mov edx, dword [esp + 0x14]
xor eax, esi
or ecx, eax
xor ecx, esi
shr ecx, 0x1f
dec ecx
lea eax, [edx - 0xa]
or eax, edx
xor eax, edx
lea edx, [ebp - 0xb]
shr eax, 0x1f
dec eax
mov dword [esp + 0x24], edx
and ecx, eax
mov eax, edx
and ebx, ecx
xor eax, esi
mov ecx, edx
mov dword [esp + 0x10], ebx
sub ecx, esi
xor ecx, esi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
mov dword [esp + 0x34], ecx
not ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
and eax, edx
and ecx, esi
mov esi, 1
or ecx, eax
mov dword [esp + 0x34], ecx
cmp edx, esi
jle 0x54a1a4
mov eax, ebp
sub eax, dword [esp + 0x18]
add eax, 0xfffffff5
mov dword [esp + 0x28], eax
and eax, esi
mov ebx, ebp
sub ebx, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp ebx, 0xb
jle 0x54a192
movzx ebp, cl
lea eax, [edi + 0xb]
mov dword [esp + 0x1c], ebp
add ebx, 0xfffffff5
mov edi, dword [esp + 0x1c]
not ebp
nop
mov dword [esp + 0x1c], edi
lea eax, [eax + 1]
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [esp + 0x14]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
sub ebx, 1
jne 0x54a160
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esi, esi
cmp esi, edx
jl 0x54a132
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
xor edx, edx
test ecx, ecx
jle 0x54a20b
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
shr ecx, 0x1f
neg esi
mov dword [esp + 0x24], ecx
nop
mov eax, esi
inc esi
shr eax, 0x1f
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
mov ebx, dword [esp + 0x30]
and ecx, eax
mov dword [esp + 0x34], ecx
not ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x34]
mov cl, byte [edx + edi + 0xb]
and cl, al
mov eax, dword [esp + 0x28]
and al, byte [ebx + edx]
or al, cl
mov ecx, ebx
mov ebx, dword [esp + 0x10]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esp + 0x24]
cmp edx, ebp
jl 0x54a1c0
mov ebp, dword [esp + 0x40]
push 0x108
push str.crypto_rsa_rsa_pk1.c
push ebp
push edi
call fcn.0045f070
call fcn.004648b0
push str.RSA_padding_check_PKCS1_type_2
push 0x10f
push str.crypto_rsa_rsa_pk1.c
call fcn.004649b0
push 0
push 0x9f
push 4
call fcn.00464ac0
mov eax, ebx
and eax, 1
push eax
call fcn.0047c090
add esp, 0x2c
mov dword [esp + 0x34], ebx
not ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x34]
and ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop ebx
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0x1c
ret
call fcn.004648b0
push str.RSA_padding_check_PKCS1_type_2
push 0xbe
push str.crypto_rsa_rsa_pk1.c
call fcn.004649b0
push 0
push 0x9f
push 4
call fcn.00464ac0
add esp, 0x18
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x1c
ret