Function at 0x6ce880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.006fed10
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
call fcn.005c0990
xor edi, edi
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
call fcn.006ce770
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00645210
add esp, 0xc
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x6ce927
test eax, eax
jle 0x6ce927
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.007012e0
push 0x801c40
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.0065e960
mov edi, eax
add esp, 0x1c
mov dword [ebp - 4], edi
test edi, edi
jne 0x6ce99d
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.0063c6c0
add esp, 0x14
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.007012e0
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.0062abb0
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x10]
call fcn.0062abb0
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0062abb0
push dword [ebp - 0x20]
call fcn.0065b390
push dword [ebp - 0x14]
call fcn.00675620
push 0x801c40
push edi
call fcn.0065e5a0
push esi
call fcn.006350c0
mov eax, dword [ebp - 0x34]
add esp, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x28]
cmp dword [ecx], eax
je 0x6ce9b8
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x6ce91b
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x40], ecx
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], edi
cmp dword [eax], edi
jae 0x6ce9f0
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
jmp 0x6ce924
call fcn.006756d0
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x6cea19
push pe_nt_image_headers32
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
jmp 0x6ce924
push eax
call fcn.00675760
push dword [ebp - 0x14]
call fcn.00675660
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00675660
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x6cea59
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
jmp 0x6ce924
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0062ae70
mov ecx, dword [ebp - 0x18]
push 0x13e
mov dword [ebp - 0xc], eax
push str.crypto_sm2_sm2_crypt.c
lea eax, [ecx + ecx]
push eax
call fcn.0062ae70
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0062ae70
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], esi
je 0x6ced90
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x6ced90
test eax, eax
je 0x6ced90
push dword [ebp - 0x1c]
call fcn.0065b680
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x6ceaf0
push 0x148
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
add esp, 0x14
mov ebx, dword [ebp - 8]
jmp 0x6ce929
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x1c]
call fcn.0065b7c0
add esp, 0x14
test eax, eax
je 0x6ced7f
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00491a70
add esp, 4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push eax
push dword [ebp - 0x1c]
call fcn.0065b630
add esp, 0x18
test eax, eax
je 0x6ced7f
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0065b3c0
add esp, 0x14
test eax, eax
je 0x6ced7f
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00630040
add esp, 0xc
test eax, eax
js 0x6ced6e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
call fcn.00630040
add esp, 0xc
test eax, eax
js 0x6ced6e
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push 0
push 0
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 0xc]
call fcn.006cdbf0
add esp, 0x1c
test eax, eax
je 0x6ced6e
xor esi, esi
test edi, edi
je 0x6cec92
mov edx, dword [ebp - 0xc]
cmp edi, 0x20
jb 0x6cec64
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, edi
add ecx, edi
cmp dword [ebp + 0x18], eax
ja 0x6cebe3
cmp ecx, edx
jae 0x6cec64
lea eax, [ebx - 1]
add eax, edi
cmp dword [ebp + 0x18], eax
ja 0x6cebf1
cmp ecx, ebx
jae 0x6cec64
mov eax, edi
and eax, 0x8000001f
jns 0x6cebff
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [ebp + 0x18]
mov edx, edi
sub edx, eax
mov edi, ebx
mov eax, dword [ebp - 0xc]
add ecx, 0x10
sub edi, eax
mov dword [ebp - 0x30], edi
mov edi, dword [ebp + 0x18]
sub edi, eax
mov dword [ebp - 0x2c], edi
mov edi, ebx
sub edi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x2c]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
mov edi, dword [ebp - 0x1c]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [edi + ecx - 0x20]
mov edi, dword [ebp - 0x38]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, edx
jne 0x6cec26
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
cmp esi, edi
je 0x6cec92
sub ebx, edx
lea ecx, [esi + edx]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, edi
sub edx, esi
mov esi, dword [ebp - 0x24]
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x6cec80
call fcn.006350e0
mov esi, eax
test esi, esi
jne 0x6ceca7
push 0x162
jmp 0x6cead2
push dword [ebp + 0xc]
push esi
call fcn.00634d20
add esp, 8
test eax, eax
je 0x6ced4b
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push esi
call fcn.00634ed0
add esp, 0xc
test eax, eax
je 0x6ced4b
push edi
push dword [ebp + 0x18]
push esi
call fcn.00634ed0
add esp, 0xc
test eax, eax
je 0x6ced4b
push ebx
push dword [ebp - 0x3c]
push esi
call fcn.00634ed0
mov ebx, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x6ced4e
push 0
push ebx
push esi
call fcn.00634be0
add esp, 0xc
test eax, eax
je 0x6ced4e
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ebx
call fcn.00402a10
add esp, 0xc
test eax, eax
je 0x6ced37
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6ce929
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [eax], edi
mov edi, dword [ebp - 4]
jmp 0x6ce93b
mov ebx, dword [ebp - 8]
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call fcn.0063c6c0
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6ce929
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x6cead9
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x6cead9
push 0x142
jmp 0x6cead2