Function at 0x5784f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.005ae090
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x44], 0
xor ebp, ebp
call fcn.00478cb0
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x18], eax
call fcn.00463880
mov edi, eax
push edi
call fcn.004635f0
push esi
mov dword [esp + 0x54], eax
call fcn.00463870
push dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call fcn.00463e20
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ebx
call fcn.004bcf50
push esi
mov dword [esp + 0x3c], eax
call fcn.004ca740
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x14], ebx
je 0x578aea
cmp dword [esp + 0x2c], ebx
jle 0x578aea
push edi
call fcn.00577d60
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x5785ac
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0x94
jmp 0x578af9
push edi
call fcn.004c8ae0
push edi
mov dword [esp + 0x20], eax
call fcn.004c8ae0
add esp, 8
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], ebx
je 0x578ad9
test eax, eax
je 0x578ad9
push dword [esp + 0x24]
call fcn.004afa10
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x57860c
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xa0
push str.crypto_sm2_sm2_crypt.c
call fcn.004649b0
push 0
push 0x80003
jmp 0x578b0a
push ebp
call fcn.004afab0
push ebp
call fcn.004af8c0
push ebp
mov esi, eax
call fcn.004af8c0
push ebp
mov dword [esp + 0x48], eax
call fcn.004af8c0
push ebp
mov dword [esp + 0x44], eax
call fcn.004af8c0
push ebp
mov dword [esp + 0x54], eax
call fcn.004af8c0
add esp, 0x18
mov dword [esp + 0x50], eax
test eax, eax
jne 0x57865a
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xac
jmp 0x5785f6
mov eax, dword [esp + 0x28]
push 0xb0
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.0045f1e0
push 0xb1
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.0045f1e0
add esp, 0x18
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], ebx
je 0x578b14
test eax, eax
je 0x578b14
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.005afaf0
push ebp
push 0
push dword [esp + 0x5c]
push esi
call fcn.0054b6c0
add esp, 0x1c
test eax, eax
jne 0x5786e3
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xb9
jmp 0x578af9
push ebp
push 0
push 0
push esi
push dword [esp + 0x28]
push edi
call fcn.004c89a0
add esp, 0x18
test eax, eax
je 0x578ab7
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x24]
push edi
call fcn.004c86b0
add esp, 0x14
test eax, eax
je 0x578ab7
push ebp
push esi
push dword [esp + 0x54]
push 0
push dword [esp + 0x30]
push edi
call fcn.004c89a0
add esp, 0x18
test eax, eax
je 0x578ab7
mov esi, dword [esp + 0x50]
push ebp
push esi
push dword [esp + 0x38]
push dword [esp + 0x2c]
push edi
call fcn.004c86b0
add esp, 0x14
test eax, eax
je 0x578ab7
mov edi, dword [esp + 0x28]
push edi
push dword [esp + 0x14]
push dword [esp + 0x38]
call fcn.0046f1a0
add esp, 0xc
test eax, eax
js 0x578aa6
mov eax, dword [esp + 0x10]
add eax, edi
push edi
push eax
push esi
mov dword [esp + 0x54], eax
call fcn.0046f1a0
add esp, 0xc
test eax, eax
js 0x578aa6
mov edi, dword [esp + 0x78]
push 0xcb
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0045f1e0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x578b14
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x78]
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x28]
push edi
push ebx
call fcn.004ccf60
add esp, 0x24
test eax, eax
jne 0x578802
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.004649b0
push 0
push 0x80006
jmp 0x578b0a
xor edx, edx
test edi, edi
je 0x578902
cmp edi, 8
jb 0x5788e1
mov esi, dword [esp + 0x74]
lea ecx, [edi - 1]
add ecx, ebx
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x57882f
cmp ecx, esi
jae 0x5788e1
cmp edi, 0x40
jb 0x5788b7
mov ecx, edi
mov eax, edi
and ecx, 0x3f
mov edi, esi
sub eax, ecx
mov dword [esp + 0x4c], ecx
sub edi, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
lea ecx, [esi + 0x30]
mov edi, dword [esp + 0x78]
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x54]
nop
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 [esi + 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, dword [esp + 0x50]
jne 0x578860
cmp dword [esp + 0x4c], 8
mov esi, dword [esp + 0x74]
jb 0x5788dd
mov ecx, edi
lea eax, [edx + ebx]
and ecx, 0xfffffff8
sub esi, ebx
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 0x5788c1
cmp edx, edi
je 0x578902
lea ecx, [edx + ebx]
mov esi, edi
mov ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x30]
sub esi, edx
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x5788f0
mov ebx, dword [esp + 0x30]
push dword [esp + 0x34]
push dword [esp + 0x74]
call fcn.00463db0
add esp, 4
push eax
push dword [esp + 0x2c]
call fcn.00478d40
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
jne 0x57893b
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x578af9
push eax
push dword [esp + 0x18]
call fcn.00478630
add esp, 8
test eax, eax
je 0x578a92
mov esi, dword [esp + 0x28]
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00478690
add esp, 0xc
test eax, eax
je 0x578a92
push edi
push dword [esp + 0x78]
push dword [esp + 0x1c]
call fcn.00478690
add esp, 0xc
test eax, eax
je 0x578a92
push esi
push dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
push esi
call fcn.00478690
add esp, 0xc
test eax, eax
je 0x578a92
push 0
push dword [esp + 0x20]
push esi
call fcn.00478270
add esp, 0xc
test eax, eax
je 0x578a92
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
call fcn.00477b10
mov dword [esp + 0x60], eax
call fcn.00477b10
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x578a70
test eax, eax
je 0x578a70
push dword [esp + 0x2c]
push dword [esp + 0x20]
push ecx
call fcn.00496c80
add esp, 0xc
test eax, eax
je 0x578a5c
push edi
push ebx
push dword [esp + 0x6c]
call fcn.00496c80
add esp, 0xc
test eax, eax
je 0x578a5c
push 0x64e6a0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00495d20
add esp, 0xc
test eax, eax
jns 0x578a46
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x578af9
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x44], 1
mov dword [ecx], eax
jmp 0x578b14
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xf2
jmp 0x578af9
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.004649b0
push 0
push 0x8000d
jmp 0x578b0a
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xe3
jmp 0x5787ec
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xc7
jmp 0x578af9
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0xc1
push str.crypto_sm2_sm2_crypt.c
call fcn.004649b0
push 0
push 0x80010
jmp 0x578b0a
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0x9b
jmp 0x578ac6
call fcn.004648b0
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.004649b0
push 0
push 0xc0103
push 0x35
call fcn.00464ac0
add esp, 0x18
push dword [esp + 0x40]
call fcn.00478d70
push dword [esp + 0x68]
call fcn.00477a00
push dword [esp + 0x68]
call fcn.00477a00
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0045efe0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.0045efe0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x48]
call fcn.0045efe0
push dword [esp + 0x44]
call fcn.00478c20
push ebp
call fcn.004af830
push dword [esp + 0x50]
call fcn.004c8680
push dword [esp + 0x5c]
call fcn.004c8680
mov eax, dword [esp + 0x84]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret