Function at 0x56b4c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.005e0210
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
call fcn.0046b990
mov esi, dword [esp + 0x70]
push esi
mov dword [esp + 0x20], eax
call fcn.00456530
mov edi, eax
push edi
call fcn.004562a0
push esi
mov dword [esp + 0x58], eax
call fcn.00456520
push dword [esp + 0x80]
xor ebp, ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], ebp
call fcn.00456ad0
mov ebx, eax
mov dword [esp + 0x54], ebp
push esi
mov dword [esp + 0x54], ebx
call fcn.004afbe0
push esi
mov dword [esp + 0x40], eax
call fcn.004bd3e0
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
cmp dword [esp + 0x1c], ebp
je 0x56bc1e
test ebx, ebx
jle 0x56bc1e
push edi
call fcn.0056ad20
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x56b5a0
call fcn.00457560
push str.ossl_sm2_encrypt
push 0x94
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0xc0103
push 0x35
call fcn.00457770
add esp, 0x18
xor esi, esi
xor ebx, ebx
jmp 0x56b705
push edi
call fcn.004bb780
mov ebx, eax
push edi
mov dword [esp + 0x28], ebx
call fcn.004bb780
add esp, 8
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x56bbeb
test eax, eax
je 0x56bbeb
push dword [esp + 0x28]
call fcn.004a2690
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x56b610
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xa0
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x80003
push 0x35
call fcn.00457770
add esp, 0x18
xor ebx, ebx
jmp 0x56b705
push esi
call fcn.004a2730
push esi
call fcn.004a2540
push esi
mov ebx, eax
call fcn.004a2540
push esi
mov dword [esp + 0x48], eax
call fcn.004a2540
push esi
mov dword [esp + 0x44], eax
call fcn.004a2540
push esi
mov dword [esp + 0x54], eax
call fcn.004a2540
add esp, 0x18
mov dword [esp + 0x54], eax
test eax, eax
jne 0x56b65e
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xac
jmp 0x56b5ee
mov eax, dword [esp + 0x2c]
push 0xb0
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x64], eax
call fcn.00451ea0
push 0xb1
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x54]
mov dword [esp + 0x2c], eax
call fcn.00451ea0
add esp, 0x18
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], ebp
je 0x56bc32
test eax, eax
je 0x56bc32
mov eax, dword [esp + 0x84]
push dword [eax]
push 0
push dword [esp + 0x88]
call fcn.005e1d60
push esi
push 0
push dword [esp + 0x60]
push ebx
call fcn.0053e670
add esp, 0x1c
test eax, eax
jne 0x56b786
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xb9
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0xc0103
push 0x35
call fcn.00457770
add esp, 0x18
mov ebx, dword [esp + 0x10]
push dword [esp + 0x44]
call fcn.0046ba50
push dword [esp + 0x6c]
call fcn.0046a6e0
push dword [esp + 0x6c]
call fcn.0046a6e0
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.00451ca0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call fcn.00451ca0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00451ca0
push dword [esp + 0x4c]
call fcn.0046b900
push esi
call fcn.004a24b0
push dword [esp + 0x58]
call fcn.004bb320
push dword [esp + 0x60]
call fcn.004bb320
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push esi
push 0
push 0
push ebx
push dword [esp + 0x30]
push edi
call fcn.004bb640
add esp, 0x18
test eax, eax
je 0x56bbc6
push esi
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x2c]
push edi
call fcn.004bb350
add esp, 0x14
test eax, eax
je 0x56bbc6
push esi
push ebx
push dword [esp + 0x58]
push 0
push dword [esp + 0x34]
push edi
call fcn.004bb640
add esp, 0x18
test eax, eax
je 0x56bbc6
mov ebx, dword [esp + 0x54]
push esi
push ebx
push dword [esp + 0x38]
push dword [esp + 0x30]
push edi
call fcn.004bb350
add esp, 0x14
test eax, eax
je 0x56bbc6
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x18]
push dword [esp + 0x38]
call fcn.00461e80
add esp, 0xc
test eax, eax
js 0x56bbb2
mov eax, dword [esp + 0x14]
add eax, edi
push edi
push eax
push ebx
mov dword [esp + 0x5c], eax
call fcn.00461e80
add esp, 0xc
test eax, eax
js 0x56bbb2
mov edi, dword [esp + 0x7c]
push 0xcb
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00451ea0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x56b701
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
push 0
push 0
push dword [esp + 0x6c]
push dword [esp + 0x2c]
push edi
push ebp
call fcn.004bfc00
add esp, 0x24
test eax, eax
jne 0x56b8a1
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x80006
jmp 0x56b6f7
xor edx, edx
test edi, edi
je 0x56b99e
mov ebx, dword [esp + 0x78]
cmp edi, 8
jb 0x56b980
lea eax, [ebx - 1]
lea ecx, [edi - 1]
add eax, edi
add ecx, ebp
cmp ebp, eax
ja 0x56b8ce
cmp ecx, ebx
jae 0x56b980
cmp edi, 0x40
jb 0x56b94b
mov eax, edi
lea ecx, [ebx + 0x30]
and eax, 0x3f
mov esi, edi
mov edi, ebx
mov dword [esp + 0x54], eax
sub esi, eax
sub edi, ebp
mov dword [esp + 0x58], edi
lea eax, [ebp + 0x10]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x58]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, esi
jne 0x56b8f6
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x78]
jb 0x56b97c
mov ecx, edi
lea eax, [edx + ebp]
mov esi, ebx
and ecx, 0xfffffff8
sub esi, ebp
nop word [eax + eax]
movq xmm1, qword [esi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jne 0x56b960
cmp edx, edi
je 0x56b9a2
mov esi, edi
lea ecx, [edx + ebp]
sub ebx, ebp
sub esi, edx
nop dword [eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x56b990
mov ebx, dword [esp + 0x78]
push dword [esp + 0x34]
push dword [esp + 0x78]
call fcn.00456a60
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.0046ba20
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x56b9f7
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xdb
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0xc0103
push 0x35
call fcn.00457770
mov esi, dword [esp + 0x30]
jmp 0x56b6fe
mov esi, dword [esp + 0x1c]
push eax
push esi
call fcn.0046b310
add esp, 8
test eax, eax
je 0x56bb7b
mov esi, dword [esp + 0x2c]
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x56bb7b
push edi
push ebx
push dword [esp + 0x24]
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x56bb7b
push esi
push dword [esp + 0x54]
mov esi, dword [esp + 0x24]
push esi
call fcn.0046b370
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x56bb7f
push 0
push ebx
push esi
call fcn.0046af50
add esp, 0xc
test eax, eax
je 0x56bb7f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
call fcn.0046a7f0
mov dword [esp + 0x64], eax
call fcn.0046a7f0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x56bb48
test eax, eax
je 0x56bb48
push dword [esp + 0x40]
push ebx
push ecx
call fcn.004898e0
add esp, 0xc
test eax, eax
je 0x56bb15
push edi
push ebp
push dword [esp + 0x70]
call fcn.004898e0
add esp, 0xc
test eax, eax
je 0x56bb15
push 0x676588
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00488980
add esp, 0xc
test eax, eax
jns 0x56bafb
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x56bb24
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x56b705
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0xc0103
push 0x35
call fcn.00457770
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x56b705
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x8000d
push 0x35
call fcn.00457770
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x56b705
mov ebx, dword [esp + 0x10]
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xe3
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x80006
push 0x35
call fcn.00457770
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x56b705
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xc7
jmp 0x56b6e6
call fcn.00457560
push str.ossl_sm2_encrypt
push 0xc1
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x80010
jmp 0x56b6f7
call fcn.00457560
push str.ossl_sm2_encrypt
push 0x9b
push str.crypto_sm2_sm2_crypt.c
call fcn.00457660
push 0
push 0x80010
push 0x35
call fcn.00457770
add esp, 0x18
xor esi, esi
xor ebx, ebx
jmp 0x56b705
call fcn.00457560
push str.ossl_sm2_encrypt
push 0x8e
jmp 0x56b57c
mov ebx, eax
jmp 0x56b705