Function at 0x5e04c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.004e53e0
cmp dword [esp + 0x20], 0
push esi
mov dword [esp + 8], 0
jle 0x5e07a3
mov esi, dword [esp + 0x2c]
test esi, esi
jle 0x5e07a3
push ebp
mov ebp, dword [esp + 0x34]
cmp esi, ebp
jg 0x5e077f
cmp ebp, 0xb
jl 0x5e077f
push ebx
push 0xb2
push str.crypto_rsa_rsa_pk1.c
push ebp
call fcn.00560990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5e053c
push 0xb4
push str.crypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.0056fc30
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop ebp
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
add ebx, ebp
add edx, esi
mov dword [esp + 0x18], ebx
push edi
test ebp, ebp
jle 0x5e0579
mov edi, ebp
nop
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebx
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 0x5e0550
mov dword [esp + 0x1c], ebx
movzx eax, byte [ebx + 1]
mov esi, 2
movzx ecx, byte [ebx]
xor eax, 2
xor edi, edi
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
lea eax, [ecx - 1]
shr eax, 0x1f
not ecx
shr ecx, 0x1f
neg edx
and eax, ecx
neg eax
and edx, eax
mov dword [esp + 0x10], edx
cmp ebp, esi
jle 0x5e05e8
movzx eax, byte [esi + ebx]
mov ecx, edi
not ecx
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
or edi, edx
mov eax, ecx
and ecx, esi
not eax
inc esi
and eax, dword [esp + 0x14]
or eax, ecx
mov dword [esp + 0x14], eax
cmp esi, ebp
jl 0x5e05b2
mov edx, dword [esp + 0x10]
jmp 0x5e05ea
xor eax, eax
mov edi, dword [esp + 0x30]
mov esi, ebp
sub esi, eax
mov ecx, edi
dec esi
sub ecx, esi
mov dword [esp + 0x18], esi
xor ecx, esi
mov eax, esi
mov esi, dword [esp + 0x14]
xor eax, edi
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
lea eax, [esi - 0xa]
dec ecx
or eax, esi
xor eax, esi
shr eax, 0x1f
dec eax
and ecx, eax
and edx, ecx
lea ecx, [ebp - 0xb]
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, ecx
xor eax, edi
sub edx, edi
xor edx, edi
or edx, eax
xor edx, ecx
lea ecx, [ebp - 0xb]
shr edx, 0x1f
mov eax, ecx
neg edx
mov esi, edx
and eax, edx
not esi
and esi, edi
or esi, eax
mov dword [esp + 0x30], esi
mov esi, 1
cmp ecx, esi
jle 0x5e06b6
mov eax, ebp
sub eax, dword [esp + 0x18]
add eax, 0xfffffff5
mov dword [esp + 0x20], eax
nop
and eax, esi
mov edi, ebp
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x5e06a9
movzx eax, cl
add edi, 0xfffffff5
mov ch, al
mov dword [esp + 0x14], eax
not ch
lea eax, [ebx + 0xb]
nop word [eax + eax]
mov dl, byte [eax + esi]
lea eax, [eax + 1]
and dl, byte [esp + 0x14]
mov cl, ch
and cl, byte [eax - 1]
or dl, cl
mov byte [eax - 1], dl
sub edi, 1
jne 0x5e0690
lea eax, [ebp - 0xb]
add esi, esi
cmp esi, eax
mov eax, dword [esp + 0x20]
jl 0x5e0660
xor esi, esi
cmp dword [esp + 0x30], esi
jle 0x5e0732
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
shr eax, 0x1f
neg edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
movzx eax, al
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x24], eax
nop dword [eax]
mov ecx, esi
mov edx, edi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
mov al, cl
xor al, bl
xor dl, bl
or dl, al
mov eax, dword [esp + 0x24]
xor dl, cl
neg dl
movzx ecx, dl
mov al, byte [eax + esi]
and ecx, ebp
mov edx, dword [esp + 0x2c]
and al, cl
not cl
and cl, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
cmp esi, dword [esp + 0x30]
jl 0x5e06f0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
push 0xfa
push str.crypto_rsa_rsa_pk1.c
push ebp
push ebx
call fcn.00560a80
push 0xfb
push str.crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.0056fc30
mov ebx, dword [esp + 0x34]
mov eax, ebx
and eax, 1
push eax
call fcn.005700b0
add esp, 0x28
mov eax, ebx
and eax, dword [esp + 0x18]
not ebx
or eax, ebx
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x18
ret
push 0xae
push str.crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.0056fc30
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret