Function at 0x101bef40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.101ebae0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x44], 0
xor ebp, ebp
call fcn.10024fd0
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x18], eax
call fcn.10017640
mov edi, eax
push edi
call fcn.10017450
push esi
mov dword [esp + 0x54], eax
call fcn.10017630
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.10017bd0
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ebx
call fcn.10046420
push esi
mov dword [esp + 0x3c], eax
call fcn.10046410
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x14], ebx
je 0x101bf53a
cmp dword [esp + 0x2c], ebx
jle 0x101bf53a
push edi
call fcn.101be7b0
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x101beffc
call fcn.10027460
push str.ossl_sm2_encrypt
push 0x94
jmp 0x101bf549
push edi
call fcn.10044f70
push edi
mov dword [esp + 0x20], eax
call fcn.10044f70
add esp, 8
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], ebx
je 0x101bf529
test eax, eax
je 0x101bf529
push dword [esp + 0x24]
call fcn.100a46e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x101bf05c
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xa0
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80003
jmp 0x101bf55a
push ebp
call fcn.100a4780
push ebp
call fcn.100a4590
push ebp
mov esi, eax
call fcn.100a4590
push ebp
mov dword [esp + 0x48], eax
call fcn.100a4590
push ebp
mov dword [esp + 0x44], eax
call fcn.100a4590
push ebp
mov dword [esp + 0x54], eax
call fcn.100a4590
add esp, 0x18
mov dword [esp + 0x50], eax
test eax, eax
jne 0x101bf0aa
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xac
jmp 0x101bf046
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.1002aa80
push 0xb1
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.1002aa80
add esp, 0x18
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], ebx
je 0x101bf564
test eax, eax
je 0x101bf564
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.101eec70
push ebp
push 0
push dword [esp + 0x5c]
push esi
call fcn.100ac0d0
add esp, 0x1c
test eax, eax
jne 0x101bf133
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xb9
jmp 0x101bf549
push ebp
push 0
push 0
push esi
push dword [esp + 0x28]
push edi
call fcn.10044e30
add esp, 0x18
test eax, eax
je 0x101bf507
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x24]
push edi
call fcn.10044b40
add esp, 0x14
test eax, eax
je 0x101bf507
push ebp
push esi
push dword [esp + 0x54]
push 0
push dword [esp + 0x30]
push edi
call fcn.10044e30
add esp, 0x18
test eax, eax
je 0x101bf507
mov esi, dword [esp + 0x50]
push ebp
push esi
push dword [esp + 0x38]
push dword [esp + 0x2c]
push edi
call fcn.10044b40
add esp, 0x14
test eax, eax
je 0x101bf507
mov edi, dword [esp + 0x28]
push edi
push dword [esp + 0x14]
push dword [esp + 0x38]
call fcn.10039720
add esp, 0xc
test eax, eax
js 0x101bf4f6
mov eax, dword [esp + 0x10]
add eax, edi
push edi
push eax
push esi
mov dword [esp + 0x54], eax
call fcn.10039720
add esp, 0xc
test eax, eax
js 0x101bf4f6
mov edi, dword [esp + 0x78]
push 0xcb
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.1002aa80
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x101bf564
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.100c6df0
add esp, 0x24
test eax, eax
jne 0x101bf252
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80006
jmp 0x101bf55a
xor edx, edx
test edi, edi
je 0x101bf352
cmp edi, 8
jb 0x101bf331
mov esi, dword [esp + 0x74]
lea ecx, [edi - 1]
add ecx, ebx
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x101bf27f
cmp ecx, esi
jae 0x101bf331
cmp edi, 0x40
jb 0x101bf307
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 0x101bf2b0
cmp dword [esp + 0x4c], 8
mov esi, dword [esp + 0x74]
jb 0x101bf32d
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 0x101bf311
cmp edx, edi
je 0x101bf352
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 0x101bf340
mov ebx, dword [esp + 0x30]
push dword [esp + 0x34]
push dword [esp + 0x74]
call fcn.10017b60
add esp, 4
push eax
push dword [esp + 0x2c]
call fcn.10025060
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
jne 0x101bf38b
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x101bf549
push eax
push dword [esp + 0x18]
call fcn.10024790
add esp, 8
test eax, eax
je 0x101bf4e2
mov esi, dword [esp + 0x28]
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.100247f0
add esp, 0xc
test eax, eax
je 0x101bf4e2
push edi
push dword [esp + 0x78]
push dword [esp + 0x1c]
call fcn.100247f0
add esp, 0xc
test eax, eax
je 0x101bf4e2
push esi
push dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
push esi
call fcn.100247f0
add esp, 0xc
test eax, eax
je 0x101bf4e2
push 0
push dword [esp + 0x20]
push esi
call fcn.100243d0
add esp, 0xc
test eax, eax
je 0x101bf4e2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
call fcn.1002e070
mov dword [esp + 0x60], eax
call fcn.1002e070
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x101bf4c0
test eax, eax
je 0x101bf4c0
push dword [esp + 0x2c]
push dword [esp + 0x20]
push ecx
call fcn.100935b0
add esp, 0xc
test eax, eax
je 0x101bf4ac
push edi
push ebx
push dword [esp + 0x6c]
call fcn.100935b0
add esp, 0xc
test eax, eax
je 0x101bf4ac
push 0x10277fa0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10092240
add esp, 0xc
test eax, eax
jns 0x101bf496
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x101bf549
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x44], 1
mov dword [ecx], eax
jmp 0x101bf564
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xf2
jmp 0x101bf549
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x8000d
jmp 0x101bf55a
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xe3
jmp 0x101bf23c
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xc7
jmp 0x101bf549
call fcn.10027460
push str.ossl_sm2_encrypt
push 0xc1
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80010
jmp 0x101bf55a
call fcn.10027460
push str.ossl_sm2_encrypt
push 0x9b
jmp 0x101bf516
call fcn.10027460
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0xc0103
push 0x35
call fcn.10027670
add esp, 0x18
push dword [esp + 0x40]
call fcn.10025090
push dword [esp + 0x68]
call fcn.1002df60
push dword [esp + 0x68]
call fcn.1002df60
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.1002a880
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.1002a880
push 0x106
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x48]
call fcn.1002a880
push dword [esp + 0x44]
call fcn.10024f40
push ebp
call fcn.100a4500
push dword [esp + 0x50]
call fcn.10044b10
push dword [esp + 0x5c]
call fcn.10044b10
mov eax, dword [esp + 0x84]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret