Function at 0x1013cfb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.10022920
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.10025da0
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.1013cec0
push dword [esp + 0x68]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.1003d130
push ebp
mov dword [esp + 0x3c], eax
xor ebx, ebx
xor esi, esi
call fcn.10046a20
push ebp
mov dword [esp + 0x50], eax
call fcn.10046a10
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x1013d091
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x1013d091
mov eax, dword [esp + 0x70]
push dword [eax]
push 0xff
push dword [esp + 0x74]
call fcn.10146e60
push 0x101e4e90
push dword [esp + 0x78]
lea eax, [esp + 0x78]
push eax
push esi
call fcn.10067fc0
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1013d10f
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push esi
push 0x64
push 0x35
call fcn.1002f180
add esp, 0x18
xor ebp, ebp
mov eax, dword [esp + 0x70]
push dword [eax]
push 0
push dword [esp + 0x74]
call fcn.10146e60
add esp, 0xc
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.1002eae0
push 0x18e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.1002eae0
push 0x18f
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.1002eae0
push dword [esp + 0x48]
call fcn.1004ce90
push dword [esp + 0x40]
call fcn.10032fa0
push 0x101e4e90
push dword [esp + 0x60]
call fcn.10067c30
push esi
call fcn.100271c0
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 0x1013d138
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x68
jmp 0x1013d087
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 0x1013d179
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x6b
jmp 0x1013d087
push dword [esp + 0x3c]
call fcn.100331c0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1013d1b2
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0xc0100
jmp 0x1013d087
push eax
call fcn.10033290
push dword [esp + 0x1c]
call fcn.10033030
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.10033030
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1013d1fe
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80003
jmp 0x1013d087
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.1002ecf0
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.1002ecf0
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.1002ecf0
add esp, 0x24
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x1013d619
cmp dword [esp + 0x14], esi
je 0x1013d619
test eax, eax
je 0x1013d619
push dword [esp + 0x1c]
call fcn.1004d2f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x1013d2af
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x15a
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0xc0100
push 0x35
call fcn.1002f180
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x1013d093
mov eax, dword [esp + 0x30]
push dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x2c]
call fcn.1004d470
add esp, 0x14
test eax, eax
je 0x1013d5e6
push dword [esp + 0x18]
push dword [esp + 0x60]
call fcn.10023ce0
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push dword [esp + 0x30]
call fcn.1004d1b0
add esp, 0x18
test eax, eax
je 0x1013d5e6
push dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.1004cec0
add esp, 0x14
test eax, eax
je 0x1013d5e6
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.10031e40
add esp, 0xc
test eax, eax
js 0x1013d5b3
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.10031e40
add esp, 0xc
test eax, eax
js 0x1013d5b3
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.1009b3b0
add esp, 0x24
test eax, eax
je 0x1013d5b3
xor esi, esi
test edi, edi
je 0x1013d4a6
mov edx, dword [esp + 0x6c]
cmp edi, 0x40
jb 0x1013d476
lea eax, [ebx - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x1013d3b9
cmp ecx, ebx
jae 0x1013d476
lea eax, [ebp - 1]
add eax, edi
cmp edx, eax
ja 0x1013d3ca
cmp ecx, ebp
jae 0x1013d476
mov eax, edi
and eax, 0x8000003f
jns 0x1013d3d8
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 0x1013d410
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
cmp esi, edi
je 0x1013d4a6
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 0x1013d490
mov ebx, dword [esp + 0x28]
call fcn.10027250
mov esi, eax
test esi, esi
jne 0x1013d4c5
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x174
jmp 0x1013d28b
push dword [esp + 0x60]
push esi
call fcn.10026d30
add esp, 8
test eax, eax
je 0x1013d580
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x18]
push esi
call fcn.10026d90
add esp, 0xc
test eax, eax
je 0x1013d580
push edi
push dword [esp + 0x70]
push esi
call fcn.10026d90
add esp, 0xc
test eax, eax
je 0x1013d580
push ebp
push dword [esp + 0x20]
push esi
call fcn.10026d90
mov ebp, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1013d584
push 0
push ebp
push esi
call fcn.10026a50
add esp, 0xc
test eax, eax
je 0x1013d584
push dword [esp + 0x2c]
push dword [esp + 0x58]
push ebp
call fcn.10092580
add esp, 0xc
test eax, eax
je 0x1013d56d
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x66
push 0x35
call fcn.1002f180
add esp, 0x18
jmp 0x1013d093
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], 1
mov dword [eax], edi
jmp 0x1013d0a7
mov ebp, dword [esp + 0x10]
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80006
push 0x35
call fcn.1002f180
add esp, 0x18
jmp 0x1013d093
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x16b
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0xc0103
push 0x35
call fcn.1002f180
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x1013d093
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x163
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80010
push 0x35
call fcn.1002f180
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x1013d093
call fcn.1002efd0
push str.ossl_sm2_decrypt
push 0x154
jmp 0x1013d28b