Function at 0x65cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x40000000
jb 0x65caf6
push 0xcc
push str..._.._third_party_boringssl_src_crypto_asn1_a_int.c
push 0xb1
push 0
push 0xc
call fcn.00590370
add esp, 0x14
xor esi, esi
jmp 0x65ce7a
mov edi, dword [ebp + 8]
test edi, edi
je 0x65cb03
mov esi, dword [edi]
test esi, esi
jne 0x65cb19
call fcn.0065a3e0
test eax, eax
je 0x65cb9c
mov esi, eax
mov dword [eax + 4], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
lea eax, [ebx + 1]
push eax
call fcn.004c9bb0
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x65cb73
test ebx, ebx
je 0x65cba3
mov edx, dword [ebp - 0x34]
cmp byte [edx], 0
js 0x65cbb6
mov dword [esi + 4], 2
cmp byte [edx], 0
sete al
cmp ebx, 1
setne cl
and cl, al
movzx eax, cl
mov ecx, ebx
sub ecx, eax
add eax, edx
mov dword [ebp - 0x1c], ecx
push ecx
push eax
push dword [ebp - 0x20]
call fcn.006cca40
add esp, 0xc
jmp 0x65ce4f
push 0x11b
push str..._.._third_party_boringssl_src_crypto_asn1_a_int.c
push 0x41
push 0
push 0xc
call fcn.00590370
add esp, 0x14
test edi, edi
je 0x65cb93
cmp dword [edi], esi
je 0x65cb9c
push esi
call fcn.0065a3d0
add esp, 4
xor esi, esi
jmp 0x65ce7a
mov dword [esi + 4], 2
mov dword [ebp - 0x1c], 0
jmp 0x65ce4f
mov dword [esi + 4], 0x102
cmp byte [edx], 0xff
sete al
cmp ebx, 1
setne cl
and cl, al
mov eax, ebx
movzx ebx, cl
sub eax, ebx
add ebx, edx
mov dword [ebp - 0x1c], eax
add eax, 0xffffffff
setb dl
lea ecx, [ebx + eax]
mov dword [ebp - 0x10], ecx
mov cl, byte [eax + ebx]
mov edi, dword [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x14], eax
test cl, cl
jne 0x65cc68
mov eax, dword [ebp - 0x1c]
mov edi, eax
test dl, dl
je 0x65cc38
nop dword [eax + eax]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + eax - 1], 0
lea edi, [eax - 1]
movzx ecx, byte [ebx + eax - 2]
cmp eax, 1
setne dl
test cl, cl
jne 0x65cc21
cmp eax, 1
mov eax, edi
jne 0x65cc00
mov eax, dword [ebp - 0x20]
add eax, edi
add eax, 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebx + edi]
add eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
test dl, dl
je 0x65cc71
neg cl
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
cmp edi, 2
mov ebx, dword [ebp + 0x10]
jl 0x65cc88
xor edx, edx
mov eax, edi
sub eax, 2
cmovb eax, edx
add eax, 1
cmp eax, 4
jae 0x65cc90
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x65ce25
mov eax, dword [ebp - 0x1c]
mov edi, eax
test dl, dl
jne 0x65cc3c
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax], 1
mov byte [eax + ecx], 0
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x65ce49
mov edi, dword [ebp + 8]
jmp 0x65ce4f
mov dword [ebp - 0x28], eax
cmp edi, 2
mov ecx, 2
cmovb ecx, edi
mov eax, edi
not eax
add eax, ecx
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov ebx, dword [ebp - 0x10]
cmp ecx, ebx
mov ecx, dword [ebp - 0x14]
jae 0x65ccbd
add eax, ebx
cmp eax, ecx
jb 0x65ce25
mov ecx, 0
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x65cda8
and eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
add eax, 0xfffffff0
mov ebx, eax
shr ebx, 4
add ebx, 1
mov ecx, ebx
and ecx, 3
mov dword [ebp - 0x24], ecx
xor ecx, ecx
cmp eax, 0x30
jb 0x65cd4d
and ebx, 0xfffffffc
xor ecx, ecx
pcmpeqd xmm0, xmm0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
movdqu xmm1, xmmword [ebx + ecx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + ecx - 0x10], xmm1
movdqu xmm1, xmmword [ebx + ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax + ecx - 0x20], xmm1
movdqu xmm1, xmmword [ebx + ecx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [eax + ecx - 0x30], xmm1
movdqu xmm1, xmmword [ebx + ecx - 0x40]
mov ebx, dword [ebp - 0x18]
pxor xmm1, xmm0
movdqu xmmword [eax + ecx - 0x40], xmm1
add ecx, 0xffffffc0
add ebx, 0xfffffffc
jne 0x65ccfa
neg ecx
cmp dword [ebp - 0x24], 0
je 0x65cd93
mov ebx, 0xfffffff0
sub ebx, ecx
mov eax, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
add ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
shl eax, 4
xor ecx, ecx
pcmpeqd xmm0, xmm0
mov ebx, dword [ebp - 0x18]
movdqu xmm1, xmmword [ebx + ecx]
pxor xmm1, xmm0
mov ebx, dword [ebp - 0x30]
movdqu xmmword [ebx + ecx], xmm1
add ecx, 0xfffffff0
mov ebx, eax
add eax, ecx
mov eax, ebx
jne 0x65cd74
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
je 0x65ce49
test al, 0xc
je 0x65ce15
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ebx
mov ecx, edi
sub ecx, 2
mov ebx, 0
cmovb ecx, ebx
add ecx, 1
mov dword [ebp - 0x38], ecx
and ecx, 0xfffffffc
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp - 0x10]
sub ebx, ecx
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x18]
neg ecx
and eax, 0xfffffffc
neg eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + ecx - 4]
not eax
mov ebx, dword [ebp - 0x14]
mov dword [ebx + ecx - 4], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
add ecx, 0xfffffffc
cmp eax, ecx
jne 0x65cdeb
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
jne 0x65ce25
jmp 0x65ce49
sub edi, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
mov ebx, eax
add edi, 1
nop dword [eax + eax]
movzx eax, byte [ebx + edx - 1]
not al
mov byte [ecx + edx - 1], al
lea eax, [edi + edx]
add eax, 0xffffffff
add edx, 0xffffffff
cmp eax, 2
ja 0x65ce30
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x65ce5f
push eax
call fcn.004c9be0
add esp, 4
mov ecx, dword [ebp - 0x34]
add ecx, ebx
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
test edi, edi
je 0x65ce75
mov dword [edi], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret