Function at 0x598630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
push esi
mov dword [ebp - 0xc], 0
jle 0x5989da
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x5989da
push ebx
mov ebx, dword [ebp + 0x18]
cmp esi, ebx
jg 0x5989bc
cmp ebx, 0xb
jl 0x5989bc
push edi
push 0x4e
push str.....crypto_rsa_rsa_ssl.c
push ebx
call fcn.0051a710
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x59869e
push 0x50
push str.....crypto_rsa_rsa_ssl.c
push 0x41
push 0x72
push 4
call fcn.00528ff0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
add edi, ebx
add edx, esi
mov dword [ebp - 0x18], edi
test ebx, ebx
jle 0x5986db
nop dword [eax]
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec edi
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 0x5986b0
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edi
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
xor eax, 2
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 [ebp - 0x14], edx
mov eax, edx
not eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
and eax, 0x6b
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, 2
mov dword [ebp - 0x14], eax
cmp ebx, eax
jle 0x5987a5
or esi, 0xffffffff
movzx eax, byte [eax + edi]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and esi, edx
mov dword [ebp - 0x20], esi
not esi
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
and ecx, esi
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0xc]
or eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
or ecx, edx
movzx eax, byte [esi + edi]
mov esi, ecx
xor eax, 3
mov dword [ebp - 0x10], ecx
not esi
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, esi
and eax, 1
neg ecx
add eax, dword [ebp - 8]
or ecx, dword [ebp - 0x10]
and ecx, eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x598735
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
shr eax, 0x1f
dec eax
and edx, eax
mov dword [ebp - 4], edx
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
not edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
and edx, 0x71
or edx, eax
mov ecx, esi
mov eax, dword [ebp - 8]
not ecx
add eax, 0xfffffff8
or eax, dword [ebp - 8]
xor eax, dword [ebp - 8]
shr eax, 0x1f
neg eax
and esi, eax
mov dword [ebp - 4], esi
or esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
not esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
and eax, edx
mov edx, dword [ebp - 4]
and esi, 0x73
or esi, eax
not edx
mov eax, ebx
sub eax, dword [ebp - 0xc]
dec eax
sub ecx, eax
mov dword [ebp - 0x14], eax
xor ecx, eax
xor eax, dword [ebp + 0xc]
or ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [ebp + 0xc]
shr ecx, 0x1f
dec ecx
and eax, ecx
mov dword [ebp - 4], eax
or eax, edx
mov dword [ebp - 0x28], eax
not eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
and eax, esi
mov esi, dword [ebp + 0xc]
and ecx, 0x6d
or ecx, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebx - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [ebx - 0xb]
shr edx, 0x1f
neg edx
mov dword [ebp + 0xc], edx
not edx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0xc]
and eax, ecx
mov edx, dword [ebp - 0x28]
and edx, esi
mov esi, 1
or edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, esi
jle 0x5988fa
mov eax, ebx
sub eax, dword [ebp - 0x14]
add eax, 0xfffffff5
mov dword [ebp - 0x1c], eax
nop
and eax, esi
mov edx, ebx
sub edx, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, 0xb
jle 0x5988eb
movzx ecx, cl
lea eax, [edi + 0xb]
mov ebx, ecx
mov dword [ebp - 0x20], ecx
not ebx
lea edi, [edx - 0xb]
nop dword [eax]
mov dword [ebp - 0x28], ecx
lea eax, [eax + 1]
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [ebp - 0x24]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0x20]
sub edi, 1
jne 0x5988c0
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0x18]
lea eax, [ebx - 0xb]
add esi, esi
cmp esi, eax
mov eax, dword [ebp - 0x1c]
jl 0x598890
mov edx, dword [ebp + 0xc]
xor esi, esi
test edx, edx
jle 0x59896a
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
shr eax, 0x1f
neg ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 0x28], eax
lea eax, [edi + 0xb]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, ebx
shr edx, 0x1f
mov ecx, esi
xor dl, al
shr ecx, 0x1f
xor al, cl
inc ebx
or dl, al
xor dl, cl
mov ecx, dword [ebp - 0x20]
neg dl
movzx eax, dl
mov edx, dword [ebp + 8]
and eax, edi
mov dword [ebp - 0x28], eax
not eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
and cl, al
mov eax, dword [ebp - 0x1c]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x598920
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0x18]
push 0xab
push str.....crypto_rsa_rsa_ssl.c
push ebx
push edi
call fcn.0051a5f0
push 0xac
push str.....crypto_rsa_rsa_ssl.c
push dword [ebp - 0x10]
push 0x72
push 4
call fcn.00528ff0
mov ebx, dword [ebp - 4]
mov eax, ebx
and eax, 1
push eax
call fcn.005293e0
add esp, 0x28
mov dword [ebp + 0xc], ebx
not ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp + 0xc]
and ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
pop edi
pop ebx
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x4a
push str.....crypto_rsa_rsa_ssl.c
push 0x6f
push 0x72
push 4
call fcn.00528ff0
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret