Function at 0x1024c3e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.1026b810
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
push edi
push ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
call fcn.1009f4a0
xor edi, edi
mov dword [esp + 0x28], eax
push eax
mov dword [esp + 0x30], 0
xor ebx, ebx
mov dword [esp + 0x24], edi
call fcn.100ef6b0
add esp, 8
test eax, eax
jne 0x1024c44d
push esi
call fcn.1010a220
push ebp
call fcn.10105640
push ebp
call fcn.10142270
add esp, 0xc
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x1024c4f4
push eax
call fcn.10132670
add eax, 7
cdq
and edx, 7
push esi
lea ebx, [edx + eax]
sar ebx, 3
call fcn.1010a220
push ebp
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x24], edi
call fcn.10105640
push ebp
mov dword [esp + 0x48], eax
call fcn.10142270
add esp, 0x10
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x1024c4f2
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x1024c4f2
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.1026d1f0
push 0x103258d0
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.1013b100
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1024c570
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x122
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push edi
push 0x64
push 0x35
call fcn.10105cb0
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.1026d1f0
add esp, 0xc
push 0x17e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x20]
call fcn.10101d20
push 0x17f
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.10101d20
push 0x180
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.10101d20
push dword [esp + 0x4c]
call fcn.10140980
push dword [esp + 0x48]
call fcn.1018a590
push 0x103258d0
push edi
call fcn.1013ad70
push esi
call fcn.1010ea10
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [edi + 8]
cmp dword [ecx], ebp
je 0x1024c599
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x127
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x68
jmp 0x1024c4e8
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov edi, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], edi
cmp dword [eax], edi
jae 0x1024c5e1
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x6b
push 0x35
call fcn.10105cb0
mov edi, dword [esp + 0x28]
jmp 0x1024c4ef
push dword [esp + 0x38]
call fcn.1018a770
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1024c625
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x135
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80003
push 0x35
call fcn.10105cb0
mov edi, dword [esp + 0x28]
jmp 0x1024c4ef
push eax
call fcn.1018a810
push dword [esp + 0x24]
call fcn.1018a620
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call fcn.1018a620
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1024c65d
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x13e
jmp 0x1024c604
push 0x142
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.10101f20
push 0x143
mov dword [esp + 0x28], eax
lea eax, [ebx + ebx]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.10101f20
push 0x144
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x40], eax
call fcn.10101f20
add esp, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], esi
je 0x1024cacc
cmp dword [esp + 0x1c], esi
je 0x1024cacc
test eax, eax
je 0x1024cacc
push dword [esp + 0x24]
call fcn.10140de0
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x1024c70b
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80010
push 0x35
call fcn.10105cb0
mov edi, dword [esp + 0x28]
add esp, 0x18
mov ebx, dword [esp + 0x14]
jmp 0x1024c4f4
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.10140f30
add esp, 0x14
test eax, eax
je 0x1024cab8
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.100fda40
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.10140ca0
add esp, 0x18
test eax, eax
je 0x1024cab8
push dword [esp + 0x20]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.101409b0
add esp, 0x14
test eax, eax
je 0x1024cab8
push ebx
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.10132020
add esp, 0xc
test eax, eax
js 0x1024ca93
mov eax, dword [esp + 0x1c]
add eax, ebx
push ebx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x54], eax
call fcn.10132020
add esp, 0xc
test eax, eax
js 0x1024ca93
push dword [esp + 0x40]
lea eax, [ebx + ebx]
push dword [esp + 0x3c]
push dword [esp + 0x60]
push 0
push 0
push eax
push dword [esp + 0x34]
push edi
push dword [esp + 0x38]
call fcn.101d0890
add esp, 0x24
test eax, eax
je 0x1024ca93
xor edx, edx
mov dword [esp + 0x24], ebx
test edi, edi
je 0x1024c966
mov dword [esp + 0x24], ebx
cmp edi, 8
jb 0x1024c941
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
dec ecx
add ecx, edi
lea eax, [esi - 1]
add eax, edi
cmp dword [esp + 0x64], eax
ja 0x1024c821
mov dword [esp + 0x24], ebx
cmp ecx, esi
jae 0x1024c941
lea eax, [ebp - 1]
add eax, edi
cmp dword [esp + 0x64], eax
ja 0x1024c838
mov dword [esp + 0x24], ebx
cmp ecx, ebp
jae 0x1024c941
cmp edi, 0x40
jb 0x1024c8f7
mov eax, edi
and eax, 0x8000003f
jns 0x1024c84f
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov dword [esp + 0x24], ebx
sub ecx, eax
mov edi, ebp
sub edi, esi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x64]
lea eax, [esi + 0x10]
mov ebx, dword [esp + 0x40]
add ecx, 0x20
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x64]
sub edi, esi
mov esi, ebp
sub esi, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], edi
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x34]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ebp]
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [esp + 0x30]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + ecx - 0x40]
mov edi, dword [esp + 0x44]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp edx, ebx
jne 0x1024c890
mov esi, dword [esp + 0x18]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x1024c93d
jmp 0x1024c8fb
mov dword [esp + 0x24], ebx
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x1024c909
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [esp + 0x64]
mov ecx, edi
sub ecx, eax
lea eax, [edx + esi]
mov esi, ebp
sub esi, dword [esp + 0x18]
sub ebx, dword [esp + 0x18]
nop
movq xmm1, qword [eax + esi]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [ebx + eax - 8], xmm1
cmp edx, ecx
jne 0x1024c920
cmp edx, edi
je 0x1024c966
mov eax, dword [esp + 0x18]
mov esi, edi
mov ebx, dword [esp + 0x64]
sub ebp, eax
sub ebx, eax
sub esi, edx
lea ecx, [edx + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x1024c954
call fcn.1010eaa0
mov esi, eax
test esi, esi
jne 0x1024c995
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x165
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push esi
push 0x80006
jmp 0x1024c6f4
push dword [esp + 0x58]
push esi
call fcn.1010e260
add esp, 8
test eax, eax
je 0x1024ca5c
mov ebx, dword [esp + 0x24]
push ebx
push dword [esp + 0x20]
push esi
call fcn.1010e2c0
add esp, 0xc
test eax, eax
je 0x1024ca5c
push edi
push dword [esp + 0x68]
push esi
call fcn.1010e2c0
add esp, 0xc
test eax, eax
je 0x1024ca5c
push ebx
push dword [esp + 0x4c]
push esi
call fcn.1010e2c0
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x1024ca60
push 0
push ebx
push esi
call fcn.1010dea0
add esp, 0xc
test eax, eax
je 0x1024ca60
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
call fcn.10001390
add esp, 0xc
test eax, eax
je 0x1024ca45
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x173
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x66
push 0x35
call fcn.10105cb0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x1024c4f4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
mov edi, dword [esp + 0x10]
jmp 0x1024c508
mov ebx, dword [esp + 0x14]
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x16e
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0x80006
push 0x35
call fcn.10105cb0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x1024c4f4
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x15c
push str.crypto_sm2_sm2_crypt.c
call fcn.10105ba0
push 0
push 0xc0103
jmp 0x1024c6f4
call fcn.10105aa0
push str.ossl_sm2_decrypt
push 0x154
jmp 0x1024c6e3
mov edi, dword [esp + 0x10]
mov ebx, eax
jmp 0x1024c4f4