Function at 0x5a21a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.00486420
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
xor ebx, ebx
call fcn.0048bc80
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x18], eax
call fcn.0048a7d0
mov edi, eax
push edi
call fcn.0049f1b0
push esi
mov dword [esp + 0x58], eax
call fcn.0048a640
push dword [esp + 0x7c]
mov dword [esp + 0x60], eax
xor ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
call fcn.004a1be0
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ebx
call fcn.004ab4d0
push esi
mov dword [esp + 0x40], eax
call fcn.004ab4c0
add esp, 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x14], ebx
je 0x5a2766
cmp dword [esp + 0x2c], ebx
jle 0x5a2766
push edi
call fcn.005a1a30
mov esi, eax
add esp, 4
mov dword [esp + 0x54], esi
test esi, esi
jne 0x5a225e
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0x94
jmp 0x5a2775
push edi
call fcn.004b1d90
push edi
mov dword [esp + 0x24], eax
call fcn.004b1d90
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.00497c80
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x1c], ebp
je 0x5a2752
cmp dword [esp + 0x20], ebp
je 0x5a2752
test ebx, ebx
je 0x5a2752
push ebx
call fcn.00497d50
push ebx
call fcn.00497af0
push ebx
mov dword [esp + 0x24], eax
call fcn.00497af0
push ebx
mov dword [esp + 0x4c], eax
call fcn.00497af0
push ebx
mov dword [esp + 0x44], eax
call fcn.00497af0
push ebx
mov dword [esp + 0x58], eax
call fcn.00497af0
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5a2300
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xa8
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80003
jmp 0x5a2786
push 0xac
lea eax, [esi + esi]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.004937c0
push 0xad
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.004937c0
add esp, 0x18
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], ebp
je 0x5a273e
test eax, eax
je 0x5a273e
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.005aab10
push ebx
push 0
push dword [esp + 0x60]
push dword [esp + 0x30]
call fcn.004c7b70
add esp, 0x1c
test eax, eax
jne 0x5a2385
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xb7
jmp 0x5a2775
push ebx
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x2c]
push edi
call fcn.004b1c50
add esp, 0x18
test eax, eax
je 0x5a271c
push ebx
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x28]
push edi
call fcn.004b1960
add esp, 0x14
test eax, eax
je 0x5a271c
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x58]
push 0
push dword [esp + 0x30]
push edi
call fcn.004b1c50
add esp, 0x18
test eax, eax
je 0x5a271c
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x2c]
push edi
call fcn.004b1960
add esp, 0x14
test eax, eax
je 0x5a271c
mov edi, dword [esp + 0x10]
push esi
push edi
push dword [esp + 0x38]
call fcn.00496900
add esp, 0xc
test eax, eax
js 0x5a270b
lea eax, [esi + edi]
push esi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x58], eax
call fcn.00496900
add esp, 0xc
test eax, eax
js 0x5a270b
mov edi, dword [esp + 0x78]
push 0xc9
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.004937c0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x5a247c
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0xc0100
jmp 0x5a2786
push dword [esp + 0x38]
lea eax, [esi + esi]
push dword [esp + 0x2c]
push dword [esp + 0x78]
push 0
push 0
push eax
push dword [esp + 0x28]
push edi
push ebp
call fcn.004fff60
add esp, 0x24
test eax, eax
jne 0x5a24c7
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80006
jmp 0x5a2786
xor esi, esi
test edi, edi
je 0x5a2575
mov edx, ebp
mov ebp, dword [esp + 0x74]
cmp edi, 0x40
jb 0x5a2556
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x5a24ee
cmp ecx, ebp
jae 0x5a2556
mov ecx, edi
mov eax, edx
mov edi, ebp
and ecx, 0xffffffc0
sub edi, edx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x50]
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 [esi + ebp + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + ebp + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + ebp + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, ecx
jne 0x5a2505
mov edx, dword [esp + 0x18]
cmp esi, edi
je 0x5a2571
lea ecx, [esi + edx]
sub ebp, edx
mov edx, edi
sub edx, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x5a2563
mov ebp, dword [esp + 0x18]
push dword [esp + 0x38]
push dword [esp + 0x74]
call fcn.004a1b70
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.0048bd10
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x5a25ae
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x5a2775
push eax
push dword [esp + 0x18]
call fcn.0048b760
add esp, 8
test eax, eax
je 0x5a26f7
mov esi, dword [esp + 0x54]
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.0048b7c0
add esp, 0xc
test eax, eax
je 0x5a26f7
push edi
push dword [esp + 0x78]
push dword [esp + 0x1c]
call fcn.0048b7c0
add esp, 0xc
test eax, eax
je 0x5a26f7
push esi
push dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048b7c0
add esp, 0xc
test eax, eax
je 0x5a26f7
push 0
push dword [esp + 0x28]
push esi
call fcn.0048b480
add esp, 0xc
test eax, eax
je 0x5a26f7
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
call fcn.004cbae0
mov dword [esp + 0x60], eax
call fcn.004cbae0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x5a26e3
test eax, eax
je 0x5a26e3
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
call fcn.004ed190
add esp, 0xc
test eax, eax
je 0x5a26cf
push edi
push ebp
push dword [esp + 0x6c]
call fcn.004ed190
add esp, 0xc
test eax, eax
je 0x5a26cf
push 0x65afc8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004cec30
add esp, 0xc
test eax, eax
jns 0x5a26b9
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x5a2775
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x5a2790
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xf2
jmp 0x5a2775
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xed
jmp 0x5a2466
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xe3
jmp 0x5a24b1
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xc5
jmp 0x5a2775
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xbf
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80010
jmp 0x5a2786
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0xb0
jmp 0x5a2466
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0x9c
jmp 0x5a2466
call fcn.00493aa0
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0xc0103
push 0x35
call fcn.00493c50
add esp, 0x18
push dword [esp + 0x44]
call fcn.0048bd40
push dword [esp + 0x68]
call fcn.004cb9d0
push dword [esp + 0x68]
call fcn.004cb9d0
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.004935b0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.004935b0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x50]
call fcn.004935b0
push dword [esp + 0x44]
call fcn.0048bbf0
push ebx
call fcn.00497a60
push dword [esp + 0x54]
call fcn.004b1930
push dword [esp + 0x5c]
call fcn.004b1930
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret