Function at 0x6ce350
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
test dword [esp], esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x348
call fcn.006d13f0
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x20], 0x100000
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x324], eax
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x2e4], eax
mov edi, 0x40
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x300], 0x28
mov dword [ebp - 0x2b8], 8
mov byte [ebp - 0x2b1], 1
jae 0x6cecf3
push ecx
call fcn.005da110
push eax
call fcn.005d9a00
add esp, 8
cmp eax, 0x2a0
jg 0x6ce4c4
je 0x6ce48f
cmp eax, 4
je 0x6ce448
cmp eax, edi
jne 0x6ce4d5
lea eax, [ebp - 0x2b0]
push eax
call fcn.0063f840
add esp, 4
test eax, eax
jle 0x6cecf3
mov dword [ebp - 0x2dc], 0x6ceec0
lea eax, [edi - 0x2c]
mov dword [ebp - 0x2c0], 0x63f890
jmp 0x6ce57a
lea eax, [ebp - 0x2b0]
push eax
call fcn.005d8a40
add esp, 4
test eax, eax
jle 0x6cecf3
mov edx, 0x30
mov dword [ebp - 0x2dc], 0x6cee40
mov dword [ebp - 0x2c0], 0x5d8a80
mov eax, 0x10
mov dword [ebp - 0x300], edx
mov byte [ebp - 0x2b1], 0
jmp 0x6ce57f
lea eax, [ebp - 0x2b0]
push eax
call fcn.005daa30
add esp, 4
test eax, eax
jle 0x6cecf3
mov dword [ebp - 0x2dc], 0x6cef60
mov eax, 0x20
mov dword [ebp - 0x2c0], 0x5daa90
jmp 0x6ce57a
sub eax, 0x2a1
je 0x6ce535
sub eax, 1
je 0x6ce51a
sub eax, 1
je 0x6ce4e8
test esi, esi
je 0x6cecf3
mov dword [esi], 0
jmp 0x6cecf3
lea eax, [ebp - 0x2b0]
push eax
call fcn.005da6e0
add esp, 4
test eax, eax
jle 0x6cecf3
mov dword [ebp - 0x2dc], 0x6cef60
mov eax, 0x1c
mov dword [ebp - 0x2c0], 0x5daa90
jmp 0x6ce57a
lea eax, [ebp - 0x2b0]
push eax
call fcn.006450d0
add esp, 4
test eax, eax
jle 0x6cecf3
mov eax, edi
jmp 0x6ce551
lea eax, [ebp - 0x2b0]
push eax
call fcn.006447b0
add esp, 4
test eax, eax
jle 0x6cecf3
mov eax, 0x30
mov edi, 0x80
mov dword [ebp - 0x2b8], 0x10
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x2c0], 0x645180
mov dword [ebp - 0x2dc], 0x6cf050
mov edx, 0x28
cmp byte [ebx + 0x2c], 0
mov ecx, 0xd
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2f8], ecx
je 0x6ce5b0
mov ecx, dword [ebx + 0x28]
add ecx, 0xb
mov dword [ebp - 0x2d0], 2
add ecx, edx
mov dword [ebp - 0x2f8], ecx
jmp 0x6ce5c2
add eax, 0xff
xor edx, edx
add eax, edi
div edi
inc eax
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebx + 0x20]
mov esi, ecx
sub esi, dword [ebp - 0x2c8]
dec eax
mov ecx, dword [ebp - 0x2b8]
xor edx, edx
add ecx, esi
add ecx, edi
add eax, ecx
mov ecx, dword [ebx + 0x1c]
div edi
add ecx, esi
xor edx, edx
mov esi, dword [ebp - 0x2e8]
xor edi, edi
mov dword [ebp - 0x2bc], eax
mov eax, ecx
div esi
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x2b8]
add eax, ecx
mov dword [ebp - 0x2f0], edx
xor edx, edx
mov dword [ebp - 0x2e0], edi
div esi
mov edx, dword [ebp - 0x2bc]
xor ecx, ecx
cmp byte [ebx + 0x2c], cl
mov dword [ebp - 0x30c], eax
setne cl
add ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2d4]
cmp eax, edx
jae 0x6ce65a
mov edi, ecx
imul edi, esi
cmp eax, edx
mov dword [ebp - 0x2e0], edi
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2d8]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x2c4], eax
jne 0x6ce74a
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.006d4310
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
ja 0x6cecf3
push eax
push dword [ebp - 0x304]
lea eax, [ebp - 0xd8]
push eax
call fcn.006d2cf0
movaps xmm2, xmmword [str.6666666666666666....crypto_asn1_a_verify.c]
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xc8], xmm0
movups xmm0, xmmword [ebp + eax - 0xb8]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xb8], xmm0
movups xmm0, xmmword [ebp + eax - 0xa8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x6ce6d0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
mov eax, dword [ebp - 0x2c4]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x2d8], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 0x2b1], 0
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2bc], eax
je 0x6ce7b7
mov eax, dword [ebp - 0x2b8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.006d4310
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2d8]
mov byte [ebp + eax - 0x18], cl
mov ecx, dword [ebp - 0x2d4]
mov byte [ebp + eax - 0x17], cl
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x16], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x15], cl
jmp 0x6ce7f6
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.006d4310
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2d8]
mov byte [ebp + eax - 0x19], cl
mov ecx, dword [ebp - 0x2d4]
mov byte [ebp + eax - 0x1a], cl
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x1b], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x1c], cl
add esp, 0xc
test edi, edi
je 0x6ce962
cmp byte [ebx + 0x2c], 0
je 0x6ce8d1
mov eax, dword [ebp - 0x2f8]
cmp eax, esi
jbe 0x6cecf3
push dword [ebp - 0x2f4]
sub eax, esi
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
push dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x2f4]
add eax, esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.006d2cf0
mov eax, esi
sub eax, dword [ebp - 0x2c4]
push eax
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x1d8]
add eax, dword [ebp - 0x2c4]
push eax
call fcn.006d2cf0
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x6ce962
mov edi, dword [ebp - 0x2e4]
sub edi, dword [ebp - 0x2c4]
add edi, esi
dec eax
mov dword [ebp - 0x2bc], eax
nop dword [eax]
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2c0]
add esp, 8
add edi, esi
sub dword [ebp - 0x2bc], 1
jne 0x6ce8b0
jmp 0x6ce95c
mov ecx, dword [ebp - 0x2f4]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0x1d0], eax
mov al, byte [ecx + 0xc]
mov byte [ebp - 0x1cc], al
lea eax, [esi - 0xd]
push eax
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x1cb]
movq qword [ebp - 0x1d8], xmm0
push eax
call fcn.006d2cf0
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x6ce962
lea edi, [esi - 0xd]
add edi, dword [ebp - 0x2e4]
dec eax
mov dword [ebp - 0x2bc], eax
nop dword [eax]
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2c0]
add esp, 8
add edi, esi
sub dword [ebp - 0x2bc], 1
jne 0x6ce940
mov edi, dword [ebp - 0x2e0]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.006d4310
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
mov ecx, dword [ebp - 0x2fc]
add eax, ecx
mov dword [ebp - 0x31c], eax
cmp ecx, eax
ja 0x6cec58
mov eax, dword [ebp - 0x2f0]
neg dword [ebp - 0x2f0]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [ebp - 0x310], eax
mov eax, edx
shr eax, 0x1f
mov dword [ebp - 0x314], edx
mov edx, esi
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2b8]
sub edx, eax
sub eax, esi
mov dword [ebp - 0x318], edx
lea eax, [ebp + eax - 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, ecx
xor esi, esi
xor eax, dword [ebp - 0x308]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [ebp - 0x30c]
neg dl
mov dword [ebp - 0x2d4], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x2e0], ecx
not cl
or cl, dl
mov byte [ebp - 0x2c9], cl
mov ecx, dword [ebp - 0x2f0]
movd xmm0, eax
mov eax, dword [ebp - 0x2c4]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0x340], xmm0
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d0], eax
nop dword [eax]
mov edx, dword [ebp - 0x2f8]
mov byte [ebp - 0x2b1], 0
cmp edi, edx
jae 0x6cea69
mov eax, dword [ebp - 0x2f4]
jmp 0x6cea7a
mov eax, dword [ebx + 0x20]
add eax, edx
cmp edi, eax
jae 0x6cea83
mov eax, dword [ebp - 0x2e4]
sub eax, edx
mov al, byte [eax + edi]
mov byte [ebp - 0x2b1], al
mov eax, dword [ebp - 0x310]
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, dword [ebp - 0x2d4]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [ebp - 0x2ec], ecx
not ecx
mov dword [ebp - 0x2b8], ecx
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2ec]
and al, byte [ebp - 0x2b1]
and cl, 0x80
or cl, al
mov al, dl
xor al, byte [ebp - 0x2bc]
mov dword [ebp - 0x2ec], ecx
mov ecx, esi
sub ecx, dword [ebp - 0x314]
shr ecx, 0x1f
xor cl, byte [ebp - 0x2bc]
or cl, al
xor cl, dl
mov edx, dword [ebp - 0x2ec]
dec cl
and cl, byte [ebp - 0x2d4]
not cl
and cl, byte [ebp - 0x2c9]
and dl, cl
cmp esi, dword [ebp - 0x318]
jb 0x6ceb41
mov eax, dword [ebp - 0x2e0]
movzx eax, al
mov dword [ebp - 0x2ec], eax
not eax
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2ec]
and cl, byte [eax]
mov eax, dword [ebp - 0x2b8]
and dl, al
or dl, cl
mov ecx, dword [ebp - 0x2d8]
inc dword [ebp - 0x2d0]
inc ecx
mov byte [ebp + esi - 0x158], dl
inc esi
mov dword [ebp - 0x2d8], ecx
cmp esi, dword [ebp - 0x2e8]
jb 0x6cea50
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2c8]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x6cec1f
movaps xmm2, xmmword [ebp - 0x340]
mov ecx, edx
and ecx, 0xffffffc0
movups xmm0, xmmword [ebp + eax - 0x58]
movups xmm1, xmmword [ebp + eax - 0x158]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
movups xmm0, xmmword [ebp + eax - 0x48]
movups xmm1, xmmword [ebp + eax - 0x148]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x48], xmm1
movups xmm0, xmmword [ebp + eax - 0x38]
movups xmm1, xmmword [ebp + eax - 0x138]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x38], xmm1
movups xmm1, xmmword [ebp + eax - 0x128]
movups xmm0, xmmword [ebp + eax - 0x28]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x28], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x6cebb0
cmp eax, edx
jae 0x6cec39
mov cl, byte [ebp + eax - 0x158]
and cl, byte [ebp - 0x2e0]
or byte [ebp + eax - 0x58], cl
inc eax
cmp eax, edx
jb 0x6cec23
mov ecx, dword [ebp - 0x2fc]
inc ecx
mov dword [ebp - 0x2fc], ecx
cmp ecx, dword [ebp - 0x31c]
jbe 0x6ce9d3
mov esi, dword [ebp - 0x2e8]
call fcn.006194e0
mov edi, eax
test edi, edi
je 0x6cecea
push 0
push dword [ebp - 0x320]
call fcn.005da110
add esp, 4
push eax
push edi
call fcn.00618fe0
add esp, 0xc
test eax, eax
jle 0x6cecea
cmp byte [ebx + 0x2c], 0
je 0x6ced08
mov esi, dword [ebp - 0x300]
lea eax, [ebp - 0xd8]
push esi
push 0x5c
push eax
call fcn.006d4310
push dword [ebx + 0x28]
push dword [ebp - 0x304]
push edi
call fcn.00619180
add esp, 0x18
test eax, eax
jle 0x6cecea
push esi
lea eax, [ebp - 0xd8]
push eax
push edi
call fcn.00619180
add esp, 0xc
test eax, eax
jle 0x6cecea
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00619180
add esp, 0xc
test eax, eax
jg 0x6ceda5
push edi
call fcn.006194c0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [str.jjjjjjjjjjjjjjjj_]
xor eax, eax
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xc8], xmm0
movups xmm0, xmmword [ebp + eax - 0xb8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xb8], xmm1
movups xmm0, xmmword [ebp + eax - 0xa8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x6ced11
push esi
lea eax, [ebp - 0xd8]
push eax
push edi
call fcn.00619180
add esp, 0xc
test eax, eax
jle 0x6cecea
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00619180
add esp, 0xc
test eax, eax
jle 0x6cecea
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x324]
push edi
call fcn.00618e80
add esp, 0xc
test eax, eax
je 0x6cedd1
mov ecx, dword [ebp - 0x328]
test ecx, ecx
je 0x6cedd1
mov eax, dword [ebp - 0x32c]
mov dword [ecx], eax
push edi
call fcn.006194c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.006d0856
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret