Function at 0x593b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
push esi
mov dword [ebp - 8], 0
jle 0x593e31
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x593e31
push edi
mov edi, dword [ebp + 0x18]
cmp esi, edi
jg 0x593e13
cmp edi, 0xb
jl 0x593e13
push ebx
push 0x7f
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_ssl.c
push edi
call fcn.00511fa0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x593b71
push 0x81
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_ssl.c
push 0x41
push 0x72
push 4
call fcn.005283a0
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 - 0x18], ebx
test edi, edi
jle 0x593ba9
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
dec edi
jne 0x593b80
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x18], ebx
movzx eax, byte [ebx + 1]
xor esi, esi
movzx ecx, byte [ebx]
xor eax, 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
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 eax, edx
mov dword [ebp - 4], edx
not eax
mov dword [ebp - 0x1c], eax
and eax, 0x6b
mov dword [ebp - 0x20], eax
mov eax, 2
mov dword [ebp - 0xc], eax
cmp edi, eax
jle 0x593c63
or esi, 0xffffffff
mov edi, edi
movzx edx, byte [eax + ebx]
mov eax, edx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
xor edx, 3
shr ecx, 0x1f
and ecx, eax
neg ecx
and esi, ecx
mov eax, esi
and esi, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 8]
or eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
or eax, ecx
lea ecx, [edx - 1]
shr ecx, 0x1f
mov esi, eax
not edx
mov dword [ebp - 0x14], eax
shr edx, 0x1f
not esi
and ecx, edx
neg ecx
or ecx, eax
mov eax, esi
and eax, 1
add eax, dword [ebp - 0x10]
and ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
jl 0x593c00
mov edx, dword [ebp - 4]
mov esi, ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
shr eax, 0x1f
dec eax
and edx, eax
lea eax, [esi - 8]
or eax, esi
mov edi, edx
xor eax, esi
or edi, dword [ebp - 0x1c]
shr eax, 0x1f
mov ecx, edx
dec eax
not ecx
and edx, eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 8]
mov esi, edx
or esi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
dec eax
sub ecx, eax
mov dword [ebp - 0x10], eax
xor ecx, eax
not edx
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 ecx, edi
and ecx, dword [ebp - 0x20]
not edi
and edi, 0x71
mov dword [ebp - 4], eax
or eax, edx
or ecx, edi
mov edi, dword [ebp + 0x18]
and ecx, esi
not esi
and esi, 0x73
or ecx, esi
mov esi, dword [ebp + 0xc]
and ecx, eax
not eax
and eax, 0x6d
or ecx, eax
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
mov eax, ecx
neg edx
mov dword [ebp - 0x1c], ecx
mov esi, edx
and eax, edx
not esi
and esi, dword [ebp + 0xc]
or esi, eax
mov dword [ebp + 0xc], esi
mov esi, 1
cmp ecx, esi
jle 0x593d6a
mov eax, edi
sub eax, dword [ebp - 0x10]
add eax, 0xfffffff5
mov dword [ebp - 0x14], 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 0x593d5d
movzx eax, cl
add edi, 0xfffffff5
mov ch, al
mov dword [ebp - 0x20], eax
not ch
lea eax, [ebx + 0xb]
mov dl, byte [eax + esi]
lea eax, [eax + 1]
and dl, byte [ebp - 0x20]
mov cl, ch
and cl, byte [eax - 1]
or dl, cl
mov byte [eax - 1], dl
dec edi
jne 0x593d47
mov edi, dword [ebp + 0x18]
add esi, esi
mov eax, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x1c]
jl 0x593d20
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x593dcf
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x10]
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 - 0x14], 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 - 0x14]
xor dl, cl
neg dl
movzx ecx, dl
and ecx, dword [ebp - 0x1c]
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 0x593d91
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x18]
push edi
push ebx
call fcn.00401360
push ebx
call fcn.00511f20
push 0xd8
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_ssl.c
push dword [ebp - 0xc]
push 0x72
push 4
call fcn.005283a0
mov ebx, dword [ebp - 4]
mov eax, ebx
and eax, 1
push eax
call fcn.00528650
add esp, 0x24
mov eax, ebx
and eax, dword [ebp - 0x10]
not ebx
or eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x7b
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_ssl.c
push 0x6f
push 0x72
push 4
call fcn.005283a0
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