Function at 0x5a1b20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.00486420
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
push ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], 0
call fcn.0048a7d0
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.005a1a30
push dword [esp + 0x68]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.004a1be0
push ebp
mov dword [esp + 0x3c], eax
xor ebx, ebx
xor esi, esi
call fcn.004ab4d0
push ebp
mov dword [esp + 0x50], eax
call fcn.004ab4c0
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x5a1c01
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x5a1c01
mov eax, dword [esp + 0x70]
push dword [eax]
push 0xff
push dword [esp + 0x74]
call fcn.005aab10
push 0x65afc8
push dword [esp + 0x78]
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004ccb20
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x5a1c7f
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push esi
push 0x64
push 0x35
call fcn.00493c50
add esp, 0x18
xor ebp, ebp
mov eax, dword [esp + 0x70]
push dword [eax]
push 0
push dword [esp + 0x74]
call fcn.005aab10
add esp, 0xc
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.004935b0
push 0x18e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.004935b0
push 0x18f
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.004935b0
push dword [esp + 0x48]
call fcn.004b1930
push dword [esp + 0x40]
call fcn.00497a60
push 0x65afc8
push dword [esp + 0x60]
call fcn.004cc790
push esi
call fcn.0048bbf0
mov eax, dword [esp + 0x78]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebp
je 0x5a1ca8
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x68
jmp 0x5a1bf7
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], ecx
mov edi, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
cmp dword [eax], edi
jae 0x5a1ce9
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x6b
jmp 0x5a1bf7
push dword [esp + 0x3c]
call fcn.00497c80
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5a1d22
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0xc0100
jmp 0x5a1bf7
push eax
call fcn.00497d50
push dword [esp + 0x1c]
call fcn.00497af0
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.00497af0
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x5a1d6e
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80003
jmp 0x5a1bf7
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.004937c0
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 0x150
add eax, eax
mov dword [esp + 0x38], ebx
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.004937c0
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.004937c0
add esp, 0x24
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x5a2189
cmp dword [esp + 0x14], esi
je 0x5a2189
test eax, eax
je 0x5a2189
push dword [esp + 0x1c]
call fcn.004b1d90
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x5a1e1f
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x15a
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0xc0100
push 0x35
call fcn.00493c50
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x5a1c03
mov eax, dword [esp + 0x30]
push dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x2c]
call fcn.004b1f10
add esp, 0x14
test eax, eax
je 0x5a2156
push dword [esp + 0x18]
push dword [esp + 0x60]
call fcn.00488710
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push dword [esp + 0x30]
call fcn.004b1c50
add esp, 0x18
test eax, eax
je 0x5a2156
push dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.004b1960
add esp, 0x14
test eax, eax
je 0x5a2156
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.00496900
add esp, 0xc
test eax, eax
js 0x5a2123
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, eax
push eax
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x28], ecx
call fcn.00496900
add esp, 0xc
test eax, eax
js 0x5a2123
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x68]
push 0
push 0
push dword [esp + 0x5c]
push dword [esp + 0x2c]
push edi
push ebx
call fcn.004fff60
add esp, 0x24
test eax, eax
je 0x5a2123
xor esi, esi
test edi, edi
je 0x5a2016
mov edx, dword [esp + 0x6c]
cmp edi, 0x40
jb 0x5a1fe6
lea eax, [ebx - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x5a1f29
cmp ecx, ebx
jae 0x5a1fe6
lea eax, [ebp - 1]
add eax, edi
cmp edx, eax
ja 0x5a1f3a
cmp ecx, ebp
jae 0x5a1fe6
mov eax, edi
and eax, 0x8000003f
jns 0x5a1f48
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov edi, dword [esp + 0x6c]
sub ecx, eax
sub edi, ebx
mov dword [esp + 0x34], ecx
mov eax, ebx
lea ecx, [edx + 0x10]
mov edx, ebp
sub edx, ebx
mov ebx, ebp
sub ebx, dword [esp + 0x6c]
mov dword [esp + 0x48], edx
lea edx, [ebp + 0x30]
mov dword [esp + 0x3c], ebx
mov ebx, edi
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x48]
nop
movups xmm0, xmmword [eax]
mov edi, dword [esp + 0x38]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [edi + esi - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [edi + esi]
mov edi, dword [esp + 0x4c]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, dword [esp + 0x34]
jne 0x5a1f80
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
cmp esi, edi
je 0x5a2016
sub ebp, ebx
lea ecx, [esi + ebx]
mov ebx, edx
mov edx, edi
sub ebx, dword [esp + 0x28]
sub edx, esi
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x5a2000
mov ebx, dword [esp + 0x28]
call fcn.0048bc80
mov esi, eax
test esi, esi
jne 0x5a2035
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x174
jmp 0x5a1dfb
push dword [esp + 0x60]
push esi
call fcn.0048b760
add esp, 8
test eax, eax
je 0x5a20f0
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x18]
push esi
call fcn.0048b7c0
add esp, 0xc
test eax, eax
je 0x5a20f0
push edi
push dword [esp + 0x70]
push esi
call fcn.0048b7c0
add esp, 0xc
test eax, eax
je 0x5a20f0
push ebp
push dword [esp + 0x20]
push esi
call fcn.0048b7c0
mov ebp, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5a20f4
push 0
push ebp
push esi
call fcn.0048b480
add esp, 0xc
test eax, eax
je 0x5a20f4
push dword [esp + 0x2c]
push dword [esp + 0x58]
push ebp
call fcn.004f70f0
add esp, 0xc
test eax, eax
je 0x5a20dd
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x66
push 0x35
call fcn.00493c50
add esp, 0x18
jmp 0x5a1c03
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], 1
mov dword [eax], edi
jmp 0x5a1c17
mov ebp, dword [esp + 0x10]
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80006
push 0x35
call fcn.00493c50
add esp, 0x18
jmp 0x5a1c03
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x16b
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0xc0103
push 0x35
call fcn.00493c50
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x5a1c03
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x163
push str.crypto_sm2_sm2_crypt.c
call fcn.00493ba0
push 0
push 0x80010
push 0x35
call fcn.00493c50
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x5a1c03
call fcn.00493aa0
push str.ossl_sm2_decrypt
push 0x154
jmp 0x5a1dfb