Function at 0x6c2120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.006f2580
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
call fcn.005b41d0
xor edi, edi
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
call fcn.006c2010
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00638aa0
add esp, 0xc
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x6c21c7
test eax, eax
jle 0x6c21c7
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.006f4b50
push 0x7f2c40
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.006521f0
mov edi, eax
add esp, 0x1c
mov dword [ebp - 4], edi
test edi, edi
jne 0x6c223d
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.0062ff40
add esp, 0x14
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.006f4b50
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.0061e430
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x10]
call fcn.0061e430
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0061e430
push dword [ebp - 0x20]
call fcn.0064ec20
push dword [ebp - 0x14]
call fcn.00668ec0
push 0x7f2c40
push edi
call fcn.00651e30
push esi
call fcn.00628940
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 0x6c2258
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x6c21bb
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 0x6c2290
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
jmp 0x6c21c4
call fcn.00668f70
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x6c22b9
push 0x130
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
jmp 0x6c21c4
push eax
call fcn.00669000
push dword [ebp - 0x14]
call fcn.00668f00
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00668f00
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x6c22f9
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
jmp 0x6c21c4
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0061e6f0
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.0061e6f0
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0061e6f0
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], esi
je 0x6c2630
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x6c2630
test eax, eax
je 0x6c2630
push dword [ebp - 0x1c]
call fcn.0064ef10
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x6c2390
push 0x148
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
add esp, 0x14
mov ebx, dword [ebp - 8]
jmp 0x6c21c9
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x1c]
call fcn.0064f050
add esp, 0x14
test eax, eax
je 0x6c261f
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0048c080
add esp, 4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push eax
push dword [ebp - 0x1c]
call fcn.0064eec0
add esp, 0x18
test eax, eax
je 0x6c261f
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0064ec50
add esp, 0x14
test eax, eax
je 0x6c261f
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.006238c0
add esp, 0xc
test eax, eax
js 0x6c260e
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.006238c0
add esp, 0xc
test eax, eax
js 0x6c260e
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.006c1490
add esp, 0x1c
test eax, eax
je 0x6c260e
xor esi, esi
test edi, edi
je 0x6c2532
mov edx, dword [ebp - 0xc]
cmp edi, 0x20
jb 0x6c2504
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, edi
add ecx, edi
cmp dword [ebp + 0x18], eax
ja 0x6c2483
cmp ecx, edx
jae 0x6c2504
lea eax, [ebx - 1]
add eax, edi
cmp dword [ebp + 0x18], eax
ja 0x6c2491
cmp ecx, ebx
jae 0x6c2504
mov eax, edi
and eax, 0x8000001f
jns 0x6c249f
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 0x6c24c6
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
cmp esi, edi
je 0x6c2532
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 0x6c2520
call fcn.00628960
mov esi, eax
test esi, esi
jne 0x6c2547
push 0x162
jmp 0x6c2372
push dword [ebp + 0xc]
push esi
call fcn.006285a0
add esp, 8
test eax, eax
je 0x6c25eb
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push esi
call fcn.00628750
add esp, 0xc
test eax, eax
je 0x6c25eb
push edi
push dword [ebp + 0x18]
push esi
call fcn.00628750
add esp, 0xc
test eax, eax
je 0x6c25eb
push ebx
push dword [ebp - 0x3c]
push esi
call fcn.00628750
mov ebx, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x6c25ee
push 0
push ebx
push esi
call fcn.00628460
add esp, 0xc
test eax, eax
je 0x6c25ee
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ebx
call fcn.00402a10
add esp, 0xc
test eax, eax
je 0x6c25d7
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6c21c9
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [eax], edi
mov edi, dword [ebp - 4]
jmp 0x6c21db
mov ebx, dword [ebp - 8]
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call fcn.0062ff40
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x6c21c9
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x6c2379
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x6c2379
push 0x142
jmp 0x6c2372