Function at 0x6d2770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.00702be0
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
call fcn.005c4800
xor edi, edi
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
call fcn.006d2660
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.006490a0
add esp, 0xc
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x6d2817
test eax, eax
jle 0x6d2817
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.007051b0
push 0x807780
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.006627e0
mov edi, eax
add esp, 0x1c
mov dword [ebp - 4], edi
test edi, edi
jne 0x6d288d
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.00640550
add esp, 0x14
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.007051b0
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.0062ea30
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x10]
call fcn.0062ea30
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0062ea30
push dword [ebp - 0x20]
call fcn.0065f210
push dword [ebp - 0x14]
call fcn.006794c0
push 0x807780
push edi
call fcn.00662420
push esi
call fcn.00638f50
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 0x6d28a8
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x6d280b
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 0x6d28e0
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
jmp 0x6d2814
call fcn.00679570
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x6d2909
push 0x130
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
jmp 0x6d2814
push eax
call fcn.00679600
push dword [ebp - 0x14]
call fcn.00679500
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00679500
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x6d2949
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
jmp 0x6d2814
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0062ecf0
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.0062ecf0
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0062ecf0
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], esi
je 0x6d2c80
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x6d2c80
test eax, eax
je 0x6d2c80
push dword [ebp - 0x1c]
call fcn.0065f500
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x6d29e0
push 0x148
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
add esp, 0x14
mov ebx, dword [ebp - 8]
jmp 0x6d2819
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x1c]
call fcn.0065f640
add esp, 0x14
test eax, eax
je 0x6d2c6f
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004946d0
add esp, 4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push eax
push dword [ebp - 0x1c]
call fcn.0065f4b0
add esp, 0x18
test eax, eax
je 0x6d2c6f
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0065f240
add esp, 0x14
test eax, eax
je 0x6d2c6f
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00633ec0
add esp, 0xc
test eax, eax
js 0x6d2c5e
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.00633ec0
add esp, 0xc
test eax, eax
js 0x6d2c5e
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.006d1ae0
add esp, 0x1c
test eax, eax
je 0x6d2c5e
xor esi, esi
test edi, edi
je 0x6d2b82
mov edx, dword [ebp - 0xc]
cmp edi, 0x20
jb 0x6d2b54
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, edi
add ecx, edi
cmp dword [ebp + 0x18], eax
ja 0x6d2ad3
cmp ecx, edx
jae 0x6d2b54
lea eax, [ebx - 1]
add eax, edi
cmp dword [ebp + 0x18], eax
ja 0x6d2ae1
cmp ecx, ebx
jae 0x6d2b54
mov eax, edi
and eax, 0x8000001f
jns 0x6d2aef
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 0x6d2b16
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
cmp esi, edi
je 0x6d2b82
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 0x6d2b70
call fcn.00638f70
mov esi, eax
test esi, esi
jne 0x6d2b97
push 0x162
jmp 0x6d29c2
push dword [ebp + 0xc]
push esi
call fcn.00638bb0
add esp, 8
test eax, eax
je 0x6d2c3b
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push esi
call fcn.00638d60
add esp, 0xc
test eax, eax
je 0x6d2c3b
push edi
push dword [ebp + 0x18]
push esi
call fcn.00638d60
add esp, 0xc
test eax, eax
je 0x6d2c3b
push ebx
push dword [ebp - 0x3c]
push esi
call fcn.00638d60
mov ebx, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x6d2c3e
push 0
push ebx
push esi
call fcn.00638a70
add esp, 0xc
test eax, eax
je 0x6d2c3e
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ebx
call fcn.00402a10
add esp, 0xc
test eax, eax
je 0x6d2c27
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6d2819
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [eax], edi
mov edi, dword [ebp - 4]
jmp 0x6d282b
mov ebx, dword [ebp - 8]
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call fcn.00640550
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6d2819
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x6d29c9
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x6d29c9
push 0x142
jmp 0x6d29c2