Function at 0x1024cae0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x54
call fcn.1026b810
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
xor ebp, ebp
call fcn.1010eaa0
mov esi, dword [esp + 0x68]
push esi
mov dword [esp + 0x18], eax
call fcn.1009f4a0
mov edi, eax
push edi
call fcn.100d8b80
push esi
mov dword [esp + 0x58], eax
call fcn.100f01b0
push dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call fcn.1010a220
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], ebx
call fcn.10105640
push esi
mov dword [esp + 0x3c], eax
call fcn.10142270
add esp, 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x14], ebx
je 0x1024d0f4
cmp dword [esp + 0x28], ebx
jle 0x1024d0f4
push edi
call fcn.100ef6b0
add esp, 4
test eax, eax
je 0x1024d0e3
push eax
call fcn.10132670
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1024d0e3
push edi
call fcn.10140de0
push edi
mov dword [esp + 0x20], eax
call fcn.10140de0
add esp, 8
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x18], ebx
je 0x1024d0d2
test eax, eax
je 0x1024d0d2
push dword [esp + 0x24]
call fcn.1018a770
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1024cc09
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0x93
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80003
jmp 0x1024d114
push ebp
call fcn.1018a810
push ebp
call fcn.1018a620
push ebp
mov esi, eax
call fcn.1018a620
push ebp
mov dword [esp + 0x4c], eax
call fcn.1018a620
push ebp
mov dword [esp + 0x44], eax
call fcn.1018a620
push ebp
mov dword [esp + 0x58], eax
call fcn.1018a620
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1024cc57
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0x9f
jmp 0x1024cbf3
mov eax, dword [esp + 0x1c]
push 0xa3
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.10101f20
push 0xa4
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x3c]
mov dword [esp + 0x28], eax
call fcn.10101f20
add esp, 0x18
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], ebx
je 0x1024d11e
test eax, eax
je 0x1024d11e
mov eax, dword [esp + 0x7c]
push dword [eax]
push 0
push dword [esp + 0x80]
call fcn.1026d1f0
push ebp
push 0
push dword [esp + 0x60]
push esi
call fcn.10193360
add esp, 0x1c
test eax, eax
jne 0x1024ccd9
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xac
jmp 0x1024d103
push ebp
push 0
push 0
push esi
push dword [esp + 0x28]
push edi
call fcn.10140ca0
add esp, 0x18
test eax, eax
je 0x1024d0b0
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x24]
push edi
call fcn.101409b0
add esp, 0x14
test eax, eax
je 0x1024d0b0
push ebp
push esi
push dword [esp + 0x58]
mov esi, dword [esp + 0x38]
push 0
push esi
push edi
call fcn.10140ca0
add esp, 0x18
test eax, eax
je 0x1024d0b0
push ebp
push dword [esp + 0x38]
push dword [esp + 0x38]
push esi
push edi
call fcn.101409b0
add esp, 0x14
test eax, eax
je 0x1024d0b0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push esi
push edi
push dword [esp + 0x38]
call fcn.10132020
add esp, 0xc
test eax, eax
js 0x1024d09f
lea eax, [esi + edi]
push esi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.10132020
add esp, 0xc
test eax, eax
js 0x1024d09f
mov edi, dword [esp + 0x74]
push 0xbe
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.10101f20
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x1024d11e
push dword [esp + 0x38]
lea eax, [esi + esi]
push dword [esp + 0x28]
push dword [esp + 0x74]
push 0
push 0
push eax
push dword [esp + 0x28]
push edi
push ebx
call fcn.101d0890
add esp, 0x24
test eax, eax
jne 0x1024cdf6
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xc5
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80006
jmp 0x1024d114
xor edx, edx
test edi, edi
je 0x1024cf06
cmp edi, 8
jb 0x1024cee0
mov esi, dword [esp + 0x70]
lea ecx, [edi - 1]
add ecx, ebx
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x1024ce23
cmp ecx, esi
jae 0x1024cee0
cmp edi, 0x40
jb 0x1024ceaa
mov ecx, edi
mov eax, edi
and ecx, 0x3f
mov edi, esi
sub eax, ecx
mov dword [esp + 0x44], ecx
sub edi, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
lea ecx, [esi + 0x30]
mov edi, dword [esp + 0x74]
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x50]
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 + 0x4c]
jne 0x1024ce53
cmp dword [esp + 0x44], 8
mov esi, dword [esp + 0x70]
jb 0x1024cedc
mov ecx, edi
lea eax, [edx + ebx]
and ecx, 0xfffffff8
sub esi, ebx
nop dword [eax]
nop dword [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 0x1024cec0
cmp edx, edi
je 0x1024cf02
lea ecx, [edx + ebx]
mov esi, edi
mov ebx, dword [esp + 0x70]
sub ebx, dword [esp + 0x34]
sub esi, edx
nop
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x1024cef0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [esp + 0x70]
call fcn.1010a1b0
add esp, 4
push eax
push dword [esp + 0x2c]
call fcn.1010eb30
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x1024cf3f
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xce
jmp 0x1024d103
push eax
push dword [esp + 0x18]
call fcn.1010e260
add esp, 8
test eax, eax
je 0x1024d08b
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1010e2c0
add esp, 0xc
test eax, eax
je 0x1024d08b
push edi
push dword [esp + 0x74]
push dword [esp + 0x1c]
call fcn.1010e2c0
add esp, 0xc
test eax, eax
je 0x1024d08b
push esi
push dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
push esi
call fcn.1010e2c0
add esp, 0xc
test eax, eax
je 0x1024d08b
push 0
push dword [esp + 0x24]
push esi
call fcn.1010dea0
add esp, 0xc
test eax, eax
je 0x1024d08b
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
call fcn.10105160
mov dword [esp + 0x5c], eax
call fcn.10105160
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
test ecx, ecx
je 0x1024d066
test eax, eax
je 0x1024d066
push dword [esp + 0x28]
push dword [esp + 0x24]
push ecx
call fcn.101618a0
add esp, 0xc
test eax, eax
je 0x1024d052
push edi
push ebx
push dword [esp + 0x68]
call fcn.101618a0
add esp, 0xc
test eax, eax
je 0x1024d052
push 0x103258d0
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1013d7e0
add esp, 0xc
test eax, eax
jns 0x1024d03f
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xec
jmp 0x1024d103
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x1024d11e
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xe5
jmp 0x1024d103
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xe0
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x8000d
jmp 0x1024d114
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xd6
jmp 0x1024cde0
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xba
jmp 0x1024d103
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0xb4
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80010
jmp 0x1024d114
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0x8e
jmp 0x1024d0bf
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0x87
jmp 0x1024d103
call fcn.10105aa0
push str.ossl_sm2_encrypt
push 0x81
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0xc0103
push 0x35
call fcn.10105cb0
add esp, 0x18
push dword [esp + 0x44]
call fcn.1010eb60
push dword [esp + 0x64]
call fcn.10105050
push dword [esp + 0x64]
call fcn.10105050
push 0xf7
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.10101d20
push 0xf8
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.10101d20
push 0xf9
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
call fcn.10101d20
push dword [esp + 0x44]
call fcn.1010ea10
push ebp
call fcn.1018a590
push dword [esp + 0x50]
call fcn.10140980
push dword [esp + 0x68]
call fcn.10140980
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret