Function at 0x5a4df0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.006149d0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
call fcn.00481830
mov esi, dword [esp + 0x70]
push esi
mov dword [esp + 0x20], eax
call fcn.004871a0
mov edi, eax
push edi
call fcn.00486f10
push esi
mov dword [esp + 0x58], eax
call fcn.00487190
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.00487740
mov ebx, eax
mov dword [esp + 0x54], ebp
push esi
mov dword [esp + 0x54], ebx
call fcn.004c8210
push esi
mov dword [esp + 0x40], eax
call fcn.004c8200
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
cmp dword [esp + 0x1c], ebp
je 0x5a554e
test ebx, ebx
jle 0x5a554e
push edi
call fcn.005a4640
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x5a4ed0
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0x94
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0xc0103
push 0x35
call fcn.0048b0e0
add esp, 0x18
xor esi, esi
xor ebx, ebx
jmp 0x5a5035
push edi
call fcn.004c6d60
mov ebx, eax
push edi
mov dword [esp + 0x28], ebx
call fcn.004c6d60
add esp, 8
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x5a551b
test eax, eax
je 0x5a551b
push dword [esp + 0x28]
call fcn.004ebd70
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x5a4f40
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xa0
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x80003
push 0x35
call fcn.0048b0e0
add esp, 0x18
xor ebx, ebx
jmp 0x5a5035
push esi
call fcn.004ebe10
push esi
call fcn.004ebc20
push esi
mov ebx, eax
call fcn.004ebc20
push esi
mov dword [esp + 0x48], eax
call fcn.004ebc20
push esi
mov dword [esp + 0x44], eax
call fcn.004ebc20
push esi
mov dword [esp + 0x54], eax
call fcn.004ebc20
add esp, 0x18
mov dword [esp + 0x54], eax
test eax, eax
jne 0x5a4f8e
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xac
jmp 0x5a4f1e
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.00482c60
push 0xb1
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x54]
mov dword [esp + 0x2c], eax
call fcn.00482c60
add esp, 0x18
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], ebp
je 0x5a5562
test eax, eax
je 0x5a5562
mov eax, dword [esp + 0x84]
push dword [eax]
push 0
push dword [esp + 0x88]
call sub.VCRUNTIME140.dll_memset
push esi
push 0
push dword [esp + 0x60]
push ebx
call fcn.00514030
add esp, 0x1c
test eax, eax
jne 0x5a50b6
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xb9
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0xc0103
push 0x35
call fcn.0048b0e0
add esp, 0x18
mov ebx, dword [esp + 0x10]
push dword [esp + 0x44]
call fcn.004818f0
push dword [esp + 0x6c]
call fcn.00497c60
push dword [esp + 0x6c]
call fcn.00497c60
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.00482a60
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call fcn.00482a60
push 0x106
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00482a60
push dword [esp + 0x4c]
call fcn.004817a0
push esi
call fcn.004ebb90
push dword [esp + 0x58]
call fcn.004c6900
push dword [esp + 0x60]
call fcn.004c6900
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.004c6c20
add esp, 0x18
test eax, eax
je 0x5a54f6
push esi
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x2c]
push edi
call fcn.004c6930
add esp, 0x14
test eax, eax
je 0x5a54f6
push esi
push ebx
push dword [esp + 0x58]
push 0
push dword [esp + 0x34]
push edi
call fcn.004c6c20
add esp, 0x18
test eax, eax
je 0x5a54f6
mov ebx, dword [esp + 0x54]
push esi
push ebx
push dword [esp + 0x38]
push dword [esp + 0x30]
push edi
call fcn.004c6930
add esp, 0x14
test eax, eax
je 0x5a54f6
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x18]
push dword [esp + 0x38]
call fcn.00493ba0
add esp, 0xc
test eax, eax
js 0x5a54e2
mov eax, dword [esp + 0x14]
add eax, edi
push edi
push eax
push ebx
mov dword [esp + 0x5c], eax
call fcn.00493ba0
add esp, 0xc
test eax, eax
js 0x5a54e2
mov edi, dword [esp + 0x7c]
push 0xcb
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00482c60
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x5a5031
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.004d38c0
add esp, 0x24
test eax, eax
jne 0x5a51d1
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x80006
jmp 0x5a5027
xor edx, edx
test edi, edi
je 0x5a52ce
mov ebx, dword [esp + 0x78]
cmp edi, 8
jb 0x5a52b0
lea eax, [ebx - 1]
lea ecx, [edi - 1]
add eax, edi
add ecx, ebp
cmp ebp, eax
ja 0x5a51fe
cmp ecx, ebx
jae 0x5a52b0
cmp edi, 0x40
jb 0x5a527b
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 0x5a5226
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x78]
jb 0x5a52ac
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 0x5a5290
cmp edx, edi
je 0x5a52d2
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 0x5a52c0
mov ebx, dword [esp + 0x78]
push dword [esp + 0x34]
push dword [esp + 0x78]
call fcn.004876d0
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.004818c0
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x5a5327
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xdb
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0xc0103
push 0x35
call fcn.0048b0e0
mov esi, dword [esp + 0x30]
jmp 0x5a502e
mov esi, dword [esp + 0x1c]
push eax
push esi
call fcn.004811b0
add esp, 8
test eax, eax
je 0x5a54ab
mov esi, dword [esp + 0x2c]
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.00481210
add esp, 0xc
test eax, eax
je 0x5a54ab
push edi
push ebx
push dword [esp + 0x24]
call fcn.00481210
add esp, 0xc
test eax, eax
je 0x5a54ab
push esi
push dword [esp + 0x54]
mov esi, dword [esp + 0x24]
push esi
call fcn.00481210
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5a54af
push 0
push ebx
push esi
call fcn.00480df0
add esp, 0xc
test eax, eax
je 0x5a54af
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
call fcn.00497d70
mov dword [esp + 0x64], eax
call fcn.00497d70
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x5a5478
test eax, eax
je 0x5a5478
push dword [esp + 0x40]
push ebx
push ecx
call fcn.004c31c0
add esp, 0xc
test eax, eax
je 0x5a5445
push edi
push ebp
push dword [esp + 0x70]
call fcn.004c31c0
add esp, 0xc
test eax, eax
je 0x5a5445
push 0x689f10
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c2260
add esp, 0xc
test eax, eax
jns 0x5a542b
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x5a5454
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x5a5035
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0xc0103
push 0x35
call fcn.0048b0e0
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x5a5035
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x8000d
push 0x35
call fcn.0048b0e0
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x5a5035
mov ebx, dword [esp + 0x10]
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xe3
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x80006
push 0x35
call fcn.0048b0e0
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x5a5035
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xc7
jmp 0x5a5016
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0xc1
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x80010
jmp 0x5a5027
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0x9b
push str.crypto_sm2_sm2_crypt.c
call fcn.0048afd0
push 0
push 0x80010
push 0x35
call fcn.0048b0e0
add esp, 0x18
xor esi, esi
xor ebx, ebx
jmp 0x5a5035
call fcn.0048aed0
push str.ossl_sm2_encrypt
push 0x8e
jmp 0x5a4eac
mov ebx, eax
jmp 0x5a5035