Function at 0x1017aab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.101fe2f0
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.1006f6c0
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.1004dac0
add esp, 8
test eax, eax
jne 0x1017ab1d
push esi
call fcn.10075710
push ebp
call fcn.10058e50
push ebp
call fcn.100e2fd0
add esp, 0xc
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x1017abc4
push eax
call fcn.1008b1d0
add eax, 7
cdq
and edx, 7
push esi
lea ebx, [edx + eax]
sar ebx, 3
call fcn.10075710
push ebp
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x24], edi
call fcn.10058e50
push ebp
mov dword [esp + 0x48], eax
call fcn.100e2fd0
add esp, 0x10
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x1017abc2
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x1017abc2
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.101ff800
push 0x10296eb0
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.100eaa80
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1017ac40
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push edi
push 0x64
push 0x35
call fcn.10050840
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.101ff800
add esp, 0xc
push 0x195
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x20]
call fcn.10050120
push 0x196
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.10050120
push 0x197
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.10050120
push dword [esp + 0x4c]
call fcn.100ffc20
push dword [esp + 0x48]
call fcn.100d7a20
push 0x10296eb0
push edi
call fcn.100ea6f0
push esi
call fcn.10078b00
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 0x1017ac69
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x139
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x68
jmp 0x1017abb8
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 0x1017acb1
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x141
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x6b
push 0x35
call fcn.10050840
mov edi, dword [esp + 0x28]
jmp 0x1017abbf
push dword [esp + 0x38]
call fcn.100d7c00
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1017acf5
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x147
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x80003
push 0x35
call fcn.10050840
mov edi, dword [esp + 0x28]
jmp 0x1017abbf
push eax
call fcn.100d7ca0
push dword [esp + 0x24]
call fcn.100d7ab0
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call fcn.100d7ab0
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1017ad2d
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x150
jmp 0x1017acd4
push 0x154
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.10050320
push 0x155
mov dword [esp + 0x28], eax
lea eax, [ebx + ebx]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.10050320
push 0x156
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x40], eax
call fcn.10050320
add esp, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], esi
je 0x1017b1cc
cmp dword [esp + 0x1c], esi
je 0x1017b1cc
test eax, eax
je 0x1017b1cc
push dword [esp + 0x24]
call fcn.10100080
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x1017addb
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x15d
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x80010
push 0x35
call fcn.10050840
mov edi, dword [esp + 0x28]
add esp, 0x18
mov ebx, dword [esp + 0x14]
jmp 0x1017abc4
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.101001d0
add esp, 0x14
test eax, eax
je 0x1017b1b8
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.1004dad0
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.100fff40
add esp, 0x18
test eax, eax
je 0x1017b1b8
push dword [esp + 0x20]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.100ffc50
add esp, 0x14
test eax, eax
je 0x1017b1b8
push ebx
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.1008ab80
add esp, 0xc
test eax, eax
js 0x1017b193
mov eax, dword [esp + 0x1c]
add eax, ebx
push ebx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x54], eax
call fcn.1008ab80
add esp, 0xc
test eax, eax
js 0x1017b193
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.10158a40
add esp, 0x24
test eax, eax
je 0x1017b193
push edi
push dword [esp + 0x1c]
call fcn.1017a970
add esp, 8
test eax, eax
je 0x1017aee7
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x173
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x68
jmp 0x1017adc4
xor edx, edx
mov dword [esp + 0x24], ebx
test edi, edi
je 0x1017b066
mov dword [esp + 0x24], ebx
cmp edi, 8
jb 0x1017b041
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 0x1017af24
mov dword [esp + 0x24], ebx
cmp ecx, esi
jae 0x1017b041
lea eax, [ebp - 1]
add eax, edi
cmp dword [esp + 0x64], eax
ja 0x1017af3b
mov dword [esp + 0x24], ebx
cmp ecx, ebp
jae 0x1017b041
cmp edi, 0x40
jb 0x1017aff7
mov eax, edi
and eax, 0x8000003f
jns 0x1017af52
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 0x1017af90
mov esi, dword [esp + 0x18]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x1017b03d
jmp 0x1017affb
mov dword [esp + 0x24], ebx
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x1017b009
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 [esi + eax]
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 0x1017b020
cmp edx, edi
je 0x1017b066
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 0x1017b054
call fcn.10078b90
mov esi, eax
test esi, esi
jne 0x1017b095
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x17c
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push esi
push 0x80006
jmp 0x1017adc4
push dword [esp + 0x58]
push esi
call fcn.10078350
add esp, 8
test eax, eax
je 0x1017b15c
mov ebx, dword [esp + 0x24]
push ebx
push dword [esp + 0x20]
push esi
call fcn.100783b0
add esp, 0xc
test eax, eax
je 0x1017b15c
push edi
push dword [esp + 0x68]
push esi
call fcn.100783b0
add esp, 0xc
test eax, eax
je 0x1017b15c
push ebx
push dword [esp + 0x4c]
push esi
call fcn.100783b0
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x1017b160
push 0
push ebx
push esi
call fcn.10077f90
add esp, 0xc
test eax, eax
je 0x1017b160
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
call fcn.10001390
add esp, 0xc
test eax, eax
je 0x1017b145
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x18a
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x66
push 0x35
call fcn.10050840
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x1017abc4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
mov edi, dword [esp + 0x10]
jmp 0x1017abd8
mov ebx, dword [esp + 0x14]
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x185
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0x80006
push 0x35
call fcn.10050840
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x1017abc4
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x16e
push str.crypto_sm2_sm2_crypt.c
call fcn.10050730
push 0
push 0xc0103
jmp 0x1017adc4
call fcn.10050630
push str.ossl_sm2_decrypt
push 0x166
jmp 0x1017adb3
mov edi, dword [esp + 0x10]
mov ebx, eax
jmp 0x1017abc4