Function at 0x596f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
push esi
mov dword [ebp - 0xc], 0
jle 0x597262
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x597262
push edi
mov edi, dword [ebp + 0x18]
cmp esi, edi
jg 0x59723e
cmp edi, 0xb
jl 0x59723e
push ebx
push 0xb2
push str.....crypto_rsa_rsa_pk1.c
push edi
call fcn.00519fb0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x596fd4
push 0xb4
push str.....crypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.005288a0
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
add ebx, edi
add edx, esi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x59700d
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 0x596fe2
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
movzx eax, byte [ebx + 1]
mov esi, 2
movzx ecx, byte [ebx]
xor eax, 2
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
neg edx
and eax, ecx
xor ecx, ecx
neg eax
mov dword [ebp - 8], ecx
and edx, eax
mov dword [ebp - 4], edx
cmp edi, esi
jle 0x597091
nop dword [eax + eax]
movzx eax, byte [esi + ebx]
not ecx
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov dword [ebp - 0x14], ecx
not ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
and ecx, esi
and eax, dword [ebp - 0xc]
inc esi
or eax, ecx
mov ecx, dword [ebp - 8]
or ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp esi, edi
jl 0x597050
mov edx, dword [ebp - 4]
jmp 0x597093
xor eax, eax
mov esi, dword [ebp + 0xc]
mov ecx, edi
sub ecx, eax
dec ecx
mov dword [ebp - 8], ecx
mov ecx, esi
mov eax, dword [ebp - 8]
sub ecx, eax
xor ecx, eax
xor eax, esi
or ecx, eax
xor ecx, esi
mov esi, dword [ebp - 0xc]
shr ecx, 0x1f
dec ecx
lea eax, [esi - 0xa]
or eax, esi
xor eax, esi
mov esi, dword [ebp + 0xc]
shr eax, 0x1f
dec eax
and ecx, eax
and edx, ecx
lea ecx, [edi - 0xb]
mov dword [ebp - 4], edx
mov eax, ecx
mov edx, ecx
xor eax, esi
sub edx, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
neg edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], edx
not edx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
and eax, ecx
and edx, esi
mov esi, 1
or edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, esi
jle 0x597178
mov eax, edi
sub eax, dword [ebp - 8]
add eax, 0xfffffff5
mov dword [ebp - 0x20], eax
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x597168
movzx ecx, cl
add edi, 0xfffffff5
mov eax, ecx
mov dword [ebp - 0xc], ecx
not eax
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x18]
nop dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [eax + 1]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [ebp - 0x14]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0xc]
sub edi, 1
jne 0x597140
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
add esi, esi
mov eax, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x1c]
jl 0x597110
mov edx, dword [ebp + 0xc]
xor esi, esi
test edx, edx
jle 0x5971ea
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
shr eax, 0x1f
neg edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
nop
mov ecx, esi
mov edx, edi
shr ecx, 0x1f
mov al, bl
xor al, cl
shr edx, 0x1f
xor dl, bl
inc edi
or dl, al
xor dl, cl
mov ecx, dword [ebp - 0x18]
neg dl
movzx eax, dl
and eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
not eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov cl, byte [ecx + esi]
and cl, al
mov eax, dword [ebp - 0x14]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x5971a0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
push 0xfa
push str.....crypto_rsa_rsa_pk1.c
push edi
push ebx
call fcn.00519e90
push 0xfb
push str.....crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.005288a0
mov ebx, dword [ebp - 4]
mov eax, ebx
and eax, 1
push eax
call fcn.00528c90
add esp, 0x28
mov dword [ebp + 0xc], ebx
not ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
and ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
pop ebx
pop edi
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xae
push str.....crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.005288a0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret