Function at 0x1017d2e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.101949d0
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
call fcn.1006e2c0
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.1017d1f0
push dword [esp + 0x60]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.1006e860
push ebx
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x28], 0
call fcn.100afa40
mov ebp, eax
push ebx
mov dword [esp + 0x58], ebp
call fcn.100afa30
add esp, 0x14
mov dword [esp + 0x40], eax
test edi, edi
je 0x1017d3c9
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x1017d3c9
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.101960f0
push 0x10249648
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.100a72a0
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1017d44a
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push esi
push 0x64
push 0x35
call fcn.10072120
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.101960f0
add esp, 0xc
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x20]
call fcn.10069ef0
push 0x18e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.10069ef0
push 0x18f
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.10069ef0
push dword [esp + 0x4c]
call fcn.100ae110
push dword [esp + 0x48]
call fcn.100d27c0
push 0x10249648
push dword [esp + 0x60]
call fcn.100a6f10
push esi
call fcn.100688c0
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x1017d473
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x68
jmp 0x1017d3bf
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], edi
cmp dword [eax], edi
jae 0x1017d4b0
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x6b
jmp 0x1017d3bf
push ebp
call fcn.100d29d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x1017d4e7
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push ebp
push 0xc0100
jmp 0x1017d3bf
push ebp
call fcn.100d2aa0
push ebp
call fcn.100d2850
push ebp
mov dword [esp + 0x40], eax
call fcn.100d2850
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1017d52d
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x80003
jmp 0x1017d3bf
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.1006a140
mov ecx, dword [esp + 0x28]
mov ebp, eax
push 0x150
push str.crypto_sm2_sm2_crypt.c
mov dword [esp + 0x2c], ebp
lea eax, [ecx + ecx]
push eax
call fcn.1006a140
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.1006a140
add esp, 0x24
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1017d985
cmp dword [esp + 0x14], esi
je 0x1017d985
test eax, eax
je 0x1017d985
push dword [esp + 0x24]
call fcn.100ae570
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x1017d5db
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x15a
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0xc0100
push 0x35
call fcn.10072120
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x1017d3cb
mov eax, dword [esp + 0x30]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.100ae6f0
add esp, 0x14
test eax, eax
je 0x1017d952
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.1006e780
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.100ae430
add esp, 0x18
test eax, eax
je 0x1017d952
push dword [esp + 0x20]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.100ae140
add esp, 0x14
test eax, eax
je 0x1017d952
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.1007be80
add esp, 0xc
test eax, eax
js 0x1017d91f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add ecx, eax
push eax
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.1007be80
add esp, 0xc
test eax, eax
js 0x1017d91f
push dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x48]
push dword [esp + 0x60]
lea eax, [ecx + ecx]
push 0
push 0
push eax
push dword [esp + 0x2c]
push edi
push ebp
call fcn.100bb250
add esp, 0x24
test eax, eax
je 0x1017d91f
xor edx, edx
test edi, edi
je 0x1017d812
mov esi, dword [esp + 0x64]
cmp edi, 8
jb 0x1017d7e9
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x1017d6e9
cmp ecx, ebp
jae 0x1017d7e9
lea eax, [ebx - 1]
add eax, edi
cmp esi, eax
ja 0x1017d6fa
cmp ecx, ebx
jae 0x1017d7e9
cmp edi, 0x40
jb 0x1017d79a
mov eax, edi
and eax, 0x8000003f
jns 0x1017d711
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
add esi, 0x20
mov edi, dword [esp + 0x64]
sub ecx, eax
mov dword [esp + 0x38], ecx
lea eax, [ebp + 0x10]
mov ecx, ebx
sub edi, ebp
sub ecx, ebp
mov ebp, ebx
sub ebp, dword [esp + 0x64]
mov dword [esp + 0x40], ebp
mov ebp, edi
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ebx]
lea esi, [esi + 0x40]
xorps xmm1, xmm0
movups xmmword [esi - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edi + esi - 0x40]
mov edi, dword [esp + 0x48]
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [edx + ebx + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp edx, dword [esp + 0x38]
jne 0x1017d735
mov ebp, dword [esp + 0x18]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x1017d7e1
jmp 0x1017d79e
mov ecx, ebx
sub ecx, ebp
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x1017d7ac
dec eax
or eax, 0xfffffff8
inc eax
mov esi, edi
sub esi, eax
lea eax, [edx + ebp]
mov ebp, dword [esp + 0x64]
sub ebp, dword [esp + 0x18]
nop dword [eax + eax]
movq xmm1, qword [ecx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax + ebp - 8], xmm1
cmp edx, esi
jne 0x1017d7c0
mov ebp, dword [esp + 0x18]
cmp edx, edi
je 0x1017d812
mov esi, dword [esp + 0x64]
sub ebx, ebp
lea ecx, [edx + ebp]
mov ebp, esi
mov esi, edi
sub ebp, dword [esp + 0x18]
sub esi, edx
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub esi, 1
jne 0x1017d800
call fcn.10068950
mov esi, eax
test esi, esi
jne 0x1017d831
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x174
jmp 0x1017d5b7
push dword [esp + 0x58]
push esi
call fcn.10068300
add esp, 8
test eax, eax
je 0x1017d8ec
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x18]
push esi
call fcn.10068360
add esp, 0xc
test eax, eax
je 0x1017d8ec
push edi
push dword [esp + 0x68]
push esi
call fcn.10068360
add esp, 0xc
test eax, eax
je 0x1017d8ec
push ebx
push dword [esp + 0x38]
push esi
call fcn.10068360
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1017d8f0
push 0
push ebx
push esi
call fcn.10068020
add esp, 0xc
test eax, eax
je 0x1017d8f0
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
call fcn.10001390
add esp, 0xc
test eax, eax
je 0x1017d8d9
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x66
push 0x35
call fcn.10072120
add esp, 0x18
jmp 0x1017d3cb
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
jmp 0x1017d3df
mov ebx, dword [esp + 0x10]
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x80006
push 0x35
call fcn.10072120
add esp, 0x18
jmp 0x1017d3cb
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x16b
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0xc0103
push 0x35
call fcn.10072120
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x1017d3cb
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x163
push str.crypto_sm2_sm2_crypt.c
call fcn.10072070
push 0
push 0x80010
push 0x35
call fcn.10072120
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x1017d3cb
call fcn.10071f70
push str.ossl_sm2_decrypt
push 0x154
jmp 0x1017d5b7