Function at 0x56c380
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.00581890
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], 0
call fcn.0046a620
mov edi, eax
mov dword [esp + 0x28], 0
push edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
call fcn.0056c290
push dword [esp + 0x60]
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.0046a630
push ebx
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x24], 0
call fcn.0048c3c0
push ebx
mov dword [esp + 0x4c], eax
call fcn.0048c3b0
add esp, 0x14
mov dword [esp + 0x40], eax
test ebp, ebp
je 0x56c465
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x56c465
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.005840f0
push 0x61ada8
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.004dcb70
add esp, 0x1c
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x56c4e6
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push esi
push 0x64
push 0x35
call fcn.0046b070
add esp, 0x18
xor edi, edi
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.005840f0
add esp, 0xc
push 0x18b
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x1c]
call fcn.00465ce0
push 0x18c
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x2c]
call fcn.00465ce0
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00465ce0
push dword [esp + 0x48]
call fcn.0048a970
push dword [esp + 0x44]
call fcn.004c22e0
push 0x61ada8
push dword [esp + 0x5c]
call fcn.004dc7c0
push esi
call fcn.00486710
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x56c50f
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x68
jmp 0x56c45b
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov ebx, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
cmp dword [eax], ebx
jae 0x56c550
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x6b
jmp 0x56c45b
push dword [esp + 0x38]
call fcn.004c23a0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x56c589
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x80003
jmp 0x56c45b
push eax
call fcn.004c2440
push dword [esp + 0x20]
call fcn.004c2320
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.004c2320
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x56c5c1
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x14b
jmp 0x56c573
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00465eb0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push 0x150
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.00465eb0
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x48]
mov dword [esp + 0x3c], eax
call fcn.00465eb0
add esp, 0x24
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], esi
je 0x56c988
cmp dword [esp + 0x18], esi
je 0x56c988
test eax, eax
je 0x56c988
push edi
call fcn.0048ad70
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x56c66b
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x158
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x80010
push 0x35
call fcn.0046b070
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x56c467
mov eax, dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push ecx
push edi
call fcn.0048aec0
add esp, 0x14
test eax, eax
je 0x56c974
push dword [esp + 0x1c]
push dword [esp + 0x58]
call fcn.0045d1f0
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push edi
call fcn.0048ac30
add esp, 0x18
test eax, eax
je 0x56c974
push dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x30]
push edi
call fcn.0048a9a0
add esp, 0x14
test eax, eax
je 0x56c974
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x38]
call fcn.00474630
add esp, 0xc
test eax, eax
js 0x56c941
mov eax, dword [esp + 0x18]
add eax, edi
push edi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.00474630
add esp, 0xc
test eax, eax
js 0x56c941
push dword [esp + 0x40]
lea eax, [edi + edi]
push dword [esp + 0x3c]
push dword [esp + 0x60]
push 0
push 0
push eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x34]
call fcn.004ab7b0
add esp, 0x24
test eax, eax
je 0x56c941
xor esi, esi
test ebx, ebx
je 0x56c81a
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
cmp ebx, 0x20
jb 0x56c7f5
lea eax, [edx - 1]
lea ecx, [edi - 1]
add eax, ebx
add ecx, ebx
cmp edi, eax
ja 0x56c770
cmp ecx, edx
jae 0x56c7f5
lea eax, [ebp - 1]
add eax, ebx
cmp edi, eax
ja 0x56c77d
cmp ecx, ebp
jae 0x56c7f5
mov eax, ebx
and eax, 0x8000001f
jns 0x56c78b
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
lea ecx, [edi + 0x10]
mov ebx, dword [esp + 0x64]
sub edx, eax
mov eax, dword [esp + 0x14]
mov edi, ebp
sub ebx, eax
sub edi, eax
mov dword [esp + 0x40], ebx
mov ebx, ebp
sub ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
movups xmm0, xmmword [eax]
mov ebx, dword [esp + 0x38]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx - 0x20]
mov ebx, dword [esp + 0x44]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, edx
jne 0x56c7b2
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
cmp esi, ebx
je 0x56c816
lea ecx, [esi + edx]
sub ebp, edx
sub edi, edx
mov edx, ebx
sub edx, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + edi - 1], al
sub edx, 1
jne 0x56c804
mov edi, dword [esp + 0x20]
call fcn.004867a0
mov esi, eax
test esi, esi
jne 0x56c857
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x172
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push esi
push 0x80006
push 0x35
call fcn.0046b070
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x56c467
push dword [esp + 0x58]
push esi
call fcn.00486270
add esp, 8
test eax, eax
je 0x56c90e
push edi
push dword [esp + 0x1c]
push esi
call fcn.004862d0
add esp, 0xc
test eax, eax
je 0x56c90e
push ebx
push dword [esp + 0x68]
push esi
call fcn.004862d0
add esp, 0xc
test eax, eax
je 0x56c90e
push edi
push dword [esp + 0x34]
push esi
call fcn.004862d0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x56c912
push 0
push edi
push esi
call fcn.00485eb0
add esp, 0xc
test eax, eax
je 0x56c912
push dword [esp + 0x28]
push dword [esp + 0x50]
push edi
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x56c8fb
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x180
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x66
push 0x35
call fcn.0046b070
add esp, 0x18
jmp 0x56c467
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], 1
mov dword [eax], ebx
jmp 0x56c47b
mov edi, dword [esp + 0x10]
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x17b
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0x80006
push 0x35
call fcn.0046b070
add esp, 0x18
jmp 0x56c467
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x169
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b040
push 0
push 0xc0103
push 0x35
call fcn.0046b070
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x56c467
call fcn.0046aff0
push str.ossl_sm2_decrypt
push 0x161
jmp 0x56c647
mov edi, eax
jmp 0x56c467