Function at 0x6556a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50
call fcn.006d13f0
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
xor ebx, ebx
call fcn.006194e0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
call fcn.005d9cd0
mov edi, eax
push edi
call fcn.005d9a10
push esi
mov dword [ebp - 0x38], eax
call fcn.005d9c20
push dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.005da290
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0xc], ebx
je 0x655b3f
test eax, eax
jle 0x655b3f
push edi
call fcn.00655060
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x65572b
push 0x93
jmp 0x655b44
push edi
call fcn.0061a9c0
push edi
mov dword [ebp - 0x10], eax
call fcn.0061a9c0
add esp, 8
mov dword [ebp - 0x14], eax
call fcn.005f7300
mov ebx, eax
cmp dword [ebp - 0x10], esi
je 0x655b31
cmp dword [ebp - 0x14], esi
je 0x655b31
test ebx, ebx
je 0x655b31
push ebx
call fcn.005f73f0
push ebx
call fcn.005f7190
push ebx
mov dword [ebp - 4], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0x28], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0x20], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0x2c], eax
call fcn.005f7190
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x6557ac
push 0xa7
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x655b4b
mov eax, dword [ebp - 0x1c]
push 0xab
add eax, eax
push str.....crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x40], eax
call fcn.005e9440
push 0xac
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x30]
mov dword [ebp - 8], eax
call fcn.005e9440
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], esi
je 0x655b23
test eax, eax
je 0x655b23
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.006d4310
push dword [ebp - 0x38]
push dword [ebp - 4]
call fcn.00631ba0
add esp, 0x14
test eax, eax
jne 0x65581b
push 0xb6
jmp 0x655b44
push ebx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
push edi
call fcn.0061a970
add esp, 0x18
test eax, eax
je 0x655b15
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push edi
call fcn.0061a6c0
add esp, 0x14
test eax, eax
je 0x655b15
push ebx
push dword [ebp - 4]
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x14]
push edi
call fcn.0061a970
add esp, 0x18
test eax, eax
je 0x655b15
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
call fcn.0061a6c0
add esp, 0x14
test eax, eax
je 0x655b15
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.005f6250
add esp, 0xc
test eax, eax
js 0x655b0e
mov eax, dword [ebp - 8]
add eax, edi
push edi
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
call fcn.005f6250
add esp, 0xc
test eax, eax
js 0x655b0e
mov edi, dword [ebp + 0x14]
push 0xc8
push str.....crypto_sm2_sm2_crypt.c
push edi
call fcn.005e9440
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x6558fb
push 0xca
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.005e34c0
mov esi, dword [ebp - 4]
jmp 0x655b54
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 8]
push edi
push eax
call fcn.00654500
add esp, 0x1c
test eax, eax
jne 0x655933
push 0xd1
push str.....crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.005e34c0
mov esi, dword [ebp - 4]
jmp 0x655b54
xor esi, esi
test edi, edi
je 0x6559f1
mov edx, dword [ebp - 4]
cmp edi, 0x40
jb 0x6559c6
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
add eax, edi
cmp edx, eax
ja 0x65595e
lea eax, [edx - 1]
add eax, edi
cmp eax, ecx
jae 0x6559c6
mov eax, edi
mov edi, ecx
and eax, 0xffffffc0
sub edi, edx
mov dword [ebp - 0x40], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, edx
mov edx, dword [ebp - 0x40]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + esi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx + esi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ecx + esi + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, dword [ebp - 0x3c]
jne 0x655975
mov edx, dword [ebp - 4]
cmp esi, edi
je 0x6559f1
mov eax, dword [ebp + 0x10]
lea ecx, [esi + edx]
sub eax, edx
mov edx, edi
mov dword [ebp - 0x40], eax
sub edx, esi
mov edi, eax
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x6559e0
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
push esi
call fcn.00618fc0
add esp, 8
test eax, eax
je 0x655af4
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00619180
add esp, 0xc
test eax, eax
je 0x655af4
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call fcn.00619180
add esp, 0xc
test eax, eax
je 0x655af4
push esi
push dword [ebp - 0x38]
mov esi, dword [ebp - 0xc]
push esi
call fcn.00619180
add esp, 0xc
test eax, eax
je 0x655af4
push 0
push dword [ebp - 0x18]
push esi
call fcn.00618e80
add esp, 0xc
test eax, eax
je 0x655af4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.005f0ff0
mov dword [ebp - 0x48], eax
call fcn.005f0ff0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x655aea
test eax, eax
je 0x655aea
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push ecx
call fcn.0060acc0
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x655ae3
push edi
push esi
push dword [ebp - 0x44]
call fcn.0060acc0
add esp, 0xc
test eax, eax
je 0x655ae3
push 0x74d8f0
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.005f3f40
add esp, 0xc
test eax, eax
jns 0x655ad5
push 0xf3
jmp 0x655b44
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [ecx], eax
jmp 0x655b57
push 0xec
jmp 0x655b44
push 0xe7
jmp 0x6558e3
push 0xdd
push str.....crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.005e34c0
mov esi, dword [ebp - 4]
jmp 0x655b54
push 0xc4
jmp 0x655b44
push 0xbe
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x655b4b
push 0xaf
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x655b4b
push 0x9b
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x655b4b
push 0x8d
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.005e34c0
add esp, 0x14
push dword [ebp - 0x44]
call fcn.005f0ee0
push dword [ebp - 0x48]
call fcn.005f0ee0
push 0xfd
push str.....crypto_sm2_sm2_crypt.c
push esi
call fcn.005e9230
push 0xfe
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.005e9230
push 0xff
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x18]
call fcn.005e9230
push dword [ebp - 0xc]
call fcn.006194c0
push ebx
call fcn.005f7100
push dword [ebp - 0x10]
call fcn.0061a690
push dword [ebp - 0x14]
call fcn.0061a690
mov eax, dword [ebp - 0x34]
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret