Function at 0x49c9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, edx
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], 0
test eax, eax
jle 0x49cd48
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x49cd48
push edi
mov edi, dword [ebp + 0x10]
cmp esi, edi
jg 0x49cd26
cmp edi, 0xb
jl 0x49cd26
push ebx
push 0x7f
mov edx, str.crypto_rsa_rsa_ssl.c
mov ecx, edi
call fcn.0042e6b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49ca2a
push 0x81
push str.crypto_rsa_rsa_ssl.c
push 0x41
lea edx, [eax + 0x72]
lea ecx, [eax + 4]
call fcn.004144f0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
add ebx, edi
add edx, esi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x49ca61
mov eax, esi
not eax
shr eax, 0x1f
lea ecx, [esi - 1]
shr ecx, 0x1f
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
dec ebx
and al, cl
mov byte [ebx], al
dec edi
jne 0x49ca38
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
xor eax, 2
xor esi, 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
and eax, ecx
neg eax
neg edx
and edx, eax
mov eax, edx
not eax
mov dword [ebp - 0x20], eax
and eax, 0x6b
mov dword [ebp - 0x24], eax
mov eax, 2
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp edi, eax
jle 0x49cb19
or esi, 0xffffffff
movzx edx, byte [eax + ebx]
mov eax, edx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
neg ecx
and esi, ecx
mov eax, esi
and esi, dword [ebp - 0x14]
not eax
and eax, dword [ebp - 0xc]
xor edx, 3
or eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
or eax, ecx
lea ecx, [edx - 1]
shr ecx, 0x1f
mov esi, eax
not edx
shr edx, 0x1f
and ecx, edx
mov dword [ebp - 0x1c], eax
neg ecx
or ecx, eax
not esi
mov eax, esi
and eax, 1
add eax, dword [ebp - 0x18]
and ecx, eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x49cab6
mov edx, dword [ebp - 4]
mov esi, ecx
mov ecx, dword [ebp - 0xc]
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
xor eax, esi
shr eax, 0x1f
dec eax
mov edi, edx
or edi, dword [ebp - 0x20]
mov ecx, edx
and edx, eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
not ecx
dec eax
mov esi, edx
or esi, ecx
mov ecx, dword [ebp - 8]
sub ecx, eax
xor ecx, eax
mov dword [ebp - 0x18], eax
xor eax, dword [ebp - 8]
mov dword [ebp - 4], edx
or ecx, eax
xor ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
shr ecx, 0x1f
dec ecx
and eax, ecx
mov ecx, edi
and ecx, dword [ebp - 0x24]
not edi
and edi, 0x71
or ecx, edi
mov edi, dword [ebp + 0x10]
and ecx, esi
not esi
not edx
and esi, 0x73
or ecx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
or eax, edx
and ecx, eax
not eax
and eax, 0x6d
or ecx, eax
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0xb]
mov edx, ecx
sub edx, esi
xor edx, esi
mov eax, ecx
xor eax, esi
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
lea ecx, [edi - 0xb]
mov esi, edx
not esi
and esi, dword [ebp - 8]
mov eax, ecx
and eax, edx
or esi, eax
mov dword [ebp - 0x1c], esi
mov esi, 1
mov dword [ebp - 0x24], ecx
cmp ecx, esi
jle 0x49cc25
mov eax, edi
sub eax, dword [ebp - 0x18]
add eax, 0xfffffff5
mov dword [ebp - 0x20], eax
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x49cc15
mov eax, dword [ebp - 0x10]
add eax, 0xb
movzx ebx, cl
add edi, 0xfffffff5
lea esp, [esp]
mov dl, byte [eax + esi]
mov cl, bl
not cl
and cl, byte [eax]
and dl, bl
or dl, cl
mov byte [eax], dl
lea eax, [eax + 1]
dec edi
jne 0x49cc00
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
add esi, esi
cmp esi, dword [ebp - 0x24]
jl 0x49cbd6
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x1c], esi
jle 0x49cc8f
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x18]
shr eax, 0x1f
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x24]
neg edi
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov ecx, esi
shr ecx, 0x1f
mov edx, edi
shr edx, 0x1f
xor dl, bl
mov al, bl
xor al, cl
or dl, al
mov eax, dword [ebp - 0x14]
xor dl, cl
mov al, byte [eax + esi]
neg dl
movzx ecx, dl
and ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
and al, cl
not cl
and cl, byte [esi + edx]
inc esi
or al, cl
mov byte [esi + edx - 1], al
inc edi
cmp esi, dword [ebp - 0x1c]
jl 0x49cc50
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [fcn.004f2670]
push edi
push 0
push ebx
call eax
mov eax, dword [0x59fb4c]
add esp, 0xc
test eax, eax
je 0x49ccae
push 0
push ebx
call eax
add esp, 8
push ebx
call dword [0x594128]
mov eax, dword [0x59fb4c]
add esp, 4
test eax, eax
je 0x49ccca
push 1
push 0
call eax
add esp, 8
push 0xd8
mov edx, 0x72
push str.crypto_rsa_rsa_ssl.c
push dword [ebp - 0xc]
lea ecx, [edx - 0x6e]
call fcn.004144f0
add esp, 0xc
call fcn.00414f30
mov esi, eax
test esi, esi
je 0x49cd13
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0x188]
and edx, 1
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
and eax, edx
dec eax
and eax, 2
or dword [esi + ecx*4 + 8], eax
mov ecx, dword [ebp - 4]
mov eax, ecx
and eax, dword [ebp - 0x18]
pop ebx
not ecx
pop edi
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x7b
mov edx, 0x72
push str.crypto_rsa_rsa_ssl.c
push 0x6f
lea ecx, [edx - 0x6e]
call fcn.004144f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret