Function at 0x593be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
push esi
mov dword [ebp - 0xc], 0
jl 0x593e9b
mov esi, dword [ebp + 0x14]
test esi, esi
js 0x593e9b
push edi
mov edi, dword [ebp + 0x18]
cmp esi, edi
jg 0x593e77
cmp edi, 0xb
jl 0x593e77
push ebx
push 0xe3
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pk1.c
push edi
call fcn.00513040
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x593c54
push 0xe5
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.00529440
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 0x593c8b
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
dec edi
jne 0x593c62
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 0x593cfd
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 eax, ecx
and ecx, esi
not eax
inc esi
and eax, dword [ebp - 0xc]
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 0x593cc6
mov edx, dword [ebp - 4]
jmp 0x593cff
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
xor eax, esi
mov edx, ecx
sub edx, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
neg edx
mov dword [ebp - 0x14], ecx
mov eax, edx
not eax
and eax, esi
mov esi, 1
mov dword [ebp + 0xc], eax
mov eax, ecx
and eax, edx
mov edx, dword [ebp + 0xc]
or edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, esi
jle 0x593dcd
mov eax, edi
sub eax, dword [ebp - 8]
add eax, 0xfffffff5
mov dword [ebp - 0x18], eax
lea ebx, [ebx]
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 0x593dbd
movzx eax, cl
add edi, 0xfffffff5
mov ch, al
mov dword [ebp - 0xc], eax
not ch
lea eax, [ebx + 0xb]
mov dl, byte [eax + esi]
lea eax, [eax + 1]
mov cl, byte [eax - 1]
and dl, byte [ebp - 0xc]
and cl, ch
or dl, cl
mov byte [eax - 1], dl
dec edi
jne 0x593da7
mov edi, dword [ebp + 0x18]
add esi, esi
mov eax, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x14]
jl 0x593d80
mov edx, dword [ebp + 0xc]
xor esi, esi
test edx, edx
jle 0x593e31
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
shr eax, 0x1f
neg edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
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
mov eax, dword [ebp - 0xc]
xor dl, cl
neg dl
movzx ecx, dl
and ecx, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov edx, dword [ebp + 8]
and al, cl
not cl
and cl, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x593df3
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
push edi
push ebx
call fcn.00401360
push ebx
call fcn.00512fc0
push 0x12d
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.00529440
mov ebx, dword [ebp - 4]
mov eax, ebx
and eax, 1
push eax
call fcn.005296f0
add esp, 0x24
mov eax, ebx
and eax, dword [ebp - 8]
not ebx
or eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xdf
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.00529440
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