Function at 0x5a5b80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.004ed3f0
cmp dword [esp + 0x2c], 0
push esi
mov dword [esp + 8], 0
jle 0x5a5f3c
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x5a5f3c
push ebp
mov ebp, dword [esp + 0x40]
cmp esi, ebp
jg 0x5a5f1e
cmp ebp, 0xb
jl 0x5a5f1e
push ebx
push 0x7f
push str..crypto_rsa_rsa_ssl.c
push ebp
call fcn.0056fac0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5a5bf9
push 0x81
push str..crypto_rsa_rsa_ssl.c
push 0x41
push 0x72
push 4
call fcn.0056f540
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop ebp
pop esi
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
push edi
add edx, esi
mov edi, ebp
add ebx, ebp
mov eax, esi
mov dword [esp + 0x20], 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 0x5a5c04
movzx ecx, al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 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
mov dword [esp + 0x1c], edx
mov eax, edx
not eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and eax, 0x6b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
mov edi, 2
or esi, 0xffffffff
nop
movzx edx, byte [ebx + edi]
dec edx
shr edx, 0x1f
neg edx
and esi, edx
mov dword [esp + 0x28], esi
not esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
and ecx, edi
and eax, dword [esp + 0x14]
or eax, ecx
movzx ecx, byte [ebx + edi]
xor ecx, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
dec ecx
or eax, edx
shr ecx, 0x1f
mov esi, eax
mov dword [esp + 0x1c], eax
neg ecx
not esi
or ecx, eax
inc edi
mov eax, esi
and eax, 1
add eax, dword [esp + 0x18]
and ecx, eax
mov dword [esp + 0x18], ecx
cmp edi, ebp
jl 0x5a5c80
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 0x1f
dec eax
and ecx, eax
mov eax, ecx
mov dword [esp + 0x10], ecx
or eax, dword [esp + 0x20]
not ecx
mov dword [esp + 0x2c], eax
not eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
and eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
and edx, 0x71
or edx, eax
lea eax, [esi - 8]
or eax, esi
xor eax, esi
shr eax, 0x1f
dec eax
and edi, eax
mov eax, edi
mov dword [esp + 0x10], edi
or eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
not eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
and eax, edx
mov edx, edi
and esi, 0x73
or esi, eax
mov edi, ebp
sub edi, dword [esp + 0x14]
not edx
dec edi
sub ecx, edi
mov dword [esp + 0x20], edi
xor ecx, edi
mov eax, edi
xor eax, dword [esp + 0x3c]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x3c]
shr ecx, 0x1f
dec ecx
and eax, ecx
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x30], eax
not eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
and eax, esi
mov esi, dword [esp + 0x3c]
and ecx, 0x6d
or ecx, eax
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [esp + 0x3c], edx
not edx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x3c]
lea edx, [ebp - 0xb]
mov ecx, dword [esp + 0x30]
and eax, edx
and ecx, esi
mov dword [esp + 0x28], edx
or ecx, eax
mov esi, 1
mov dword [esp + 0x3c], ecx
cmp edx, esi
jle 0x5a5e64
mov eax, ebp
sub eax, edi
add eax, 0xfffffff5
mov dword [esp + 0x1c], eax
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 0x5a5e52
movzx ebp, cl
lea eax, [ebx + 0xb]
mov dword [esp + 0x30], ebp
add edi, 0xfffffff5
mov ebx, dword [esp + 0x30]
not ebp
nop
mov dword [esp + 0x30], ebx
lea eax, [eax + 1]
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x30]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [esp + 0x2c]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne 0x5a5e20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esi, esi
cmp esi, edx
jl 0x5a5df2
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
xor edx, edx
test ecx, ecx
jle 0x5a5ec8
mov ebp, dword [esp + 0x38]
mov ecx, edi
shr ecx, 0x1f
mov esi, edi
lea edi, [ebx + 0xb]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x10]
neg esi
mov eax, esi
inc esi
shr eax, 0x1f
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
mov dword [esp + 0x30], ecx
not ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x30]
mov cl, byte [edi + edx]
and cl, al
mov eax, dword [esp + 0x2c]
and al, byte [edx + ebp]
or al, cl
mov ecx, dword [esp + 0x28]
mov byte [edx + ebp], al
inc edx
cmp edx, dword [esp + 0x3c]
jl 0x5a5e82
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x48]
push ebp
push ebx
call fcn.00401360
push ebx
call fcn.0056fa40
push 0xd8
push str..crypto_rsa_rsa_ssl.c
push dword [esp + 0x2c]
push 0x72
push 4
call fcn.0056f540
mov ebx, dword [esp + 0x30]
mov eax, ebx
and eax, 1
push eax
call fcn.0056f660
add esp, 0x24
mov dword [esp + 0x3c], ebx
not ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x3c]
and ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
pop edi
pop ebx
pop ebp
or eax, ecx
pop esi
add esp, 0x24
ret
push 0x7b
push str..crypto_rsa_rsa_ssl.c
push 0x6f
push 0x72
push 4
call fcn.0056f540
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x24
ret
or eax, 0xffffffff
pop esi
add esp, 0x24
ret