Function at 0x101d0880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.101e9f00
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x44], 0
xor ebx, ebx
call fcn.100bb840
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x28], eax
call fcn.100c1190
mov edi, eax
push edi
call fcn.100c0f10
push esi
mov dword [esp + 0x54], eax
call fcn.100b8f90
push dword [esp + 0x7c]
mov dword [esp + 0x5c], eax
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
call fcn.100c1720
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], ebx
call fcn.10102920
push esi
mov dword [esp + 0x44], eax
call fcn.10102910
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x24], ebx
je 0x101d0f53
cmp dword [esp + 0x30], ebx
jle 0x101d0f53
push edi
call fcn.101d00d0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x101d0938
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0x94
jmp 0x101d0f62
push edi
call fcn.10101450
push edi
mov dword [esp + 0x28], eax
call fcn.10101450
push dword [esp + 0x34]
mov ebx, eax
mov dword [esp + 0x34], ebx
call fcn.101258b0
add esp, 0xc
mov esi, eax
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], ebp
je 0x101d0f28
test ebx, ebx
je 0x101d0f28
test esi, esi
je 0x101d0f28
push esi
call fcn.10125980
push esi
call fcn.10125730
push esi
mov ebx, eax
call fcn.10125730
push esi
mov dword [esp + 0x48], eax
call fcn.10125730
push esi
mov dword [esp + 0x68], eax
call fcn.10125730
push esi
mov dword [esp + 0x54], eax
call fcn.10125730
add esp, 0x18
mov dword [esp + 0x50], eax
test eax, eax
jne 0x101d09e5
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xa8
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0x80003
push 0x35
call fcn.100c4fe0
mov ebx, esi
jmp 0x101d0f7a
mov eax, dword [esp + 0x1c]
push 0xac
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100bd020
push 0xad
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x44]
mov dword [esp + 0x30], eax
call fcn.100bd020
add esp, 0x18
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebp
je 0x101d0ef6
test eax, eax
je 0x101d0ef6
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.101eb6c0
push esi
push 0
push dword [esp + 0x5c]
push ebx
call fcn.1014d8d0
add esp, 0x1c
test eax, eax
jne 0x101d0a8b
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xb7
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0103
push 0x35
call fcn.100c4fe0
mov ebx, esi
add esp, 0x18
mov esi, dword [esp + 0x14]
jmp 0x101d0f7f
push esi
push 0
push 0
push ebx
push dword [esp + 0x30]
push edi
call fcn.10101310
add esp, 0x18
test eax, eax
je 0x101d0ebf
push esi
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x2c]
push edi
call fcn.10101020
add esp, 0x14
test eax, eax
je 0x101d0ebf
push esi
push ebx
push dword [esp + 0x54]
push 0
push dword [esp + 0x38]
push edi
call fcn.10101310
add esp, 0x18
test eax, eax
je 0x101d0ebf
mov ebx, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x54]
push esi
push ebx
push dword [esp + 0x34]
push edi
call fcn.10101020
add esp, 0x14
test eax, eax
je 0x101d0ebf
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
push edi
push ebx
call fcn.100ced30
add esp, 0xc
test eax, eax
js 0x101d0e9d
mov ebx, dword [esp + 0x1c]
push ebx
lea eax, [ebx + edi]
push eax
push esi
mov dword [esp + 0x5c], eax
call fcn.100ced30
add esp, 0xc
test eax, eax
js 0x101d0e9d
mov edi, dword [esp + 0x78]
push 0xc9
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.100bd020
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x101d0b7a
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push ebp
push 0xc0100
jmp 0x101d0edf
push dword [esp + 0x34]
lea eax, [ebx + ebx]
push dword [esp + 0x30]
push dword [esp + 0x78]
push 0
push 0
push eax
push dword [esp + 0x30]
push edi
push ebp
call fcn.1010e140
add esp, 0x24
test eax, eax
jne 0x101d0bc5
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0x80006
jmp 0x101d0edf
xor edx, edx
test edi, edi
je 0x101d0cb2
mov esi, dword [esp + 0x74]
cmp edi, 8
jb 0x101d0c94
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, edi
add ecx, ebp
cmp ebp, eax
ja 0x101d0bf2
cmp ecx, esi
jae 0x101d0c94
cmp edi, 0x40
jb 0x101d0c63
mov ecx, dword [esp + 0x74]
mov eax, edi
and eax, 0x3f
mov ebx, edi
sub ebx, eax
mov dword [esp + 0x54], eax
add esi, 0x30
lea eax, [ebp + 0x10]
sub ecx, ebp
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [esi - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, ebx
jne 0x101d0c10
cmp dword [esp + 0x54], 8
jb 0x101d0c8c
jmp 0x101d0c67
mov ecx, esi
sub ecx, ebp
mov esi, edi
lea eax, [edx + ebp]
and esi, 0xfffffff8
nop
movq xmm1, qword [ecx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, esi
jne 0x101d0c70
cmp edx, edi
je 0x101d0cae
mov esi, dword [esp + 0x74]
mov ebx, esi
lea ecx, [edx + ebp]
mov esi, edi
sub ebx, ebp
sub esi, edx
nop
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x101d0ca0
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x34]
push dword [esp + 0x74]
call fcn.100c16b0
add esp, 4
push eax
push dword [esp + 0x34]
call fcn.100bb8d0
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
jne 0x101d0ceb
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x101d0eac
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.100bb1f0
add esp, 8
test eax, eax
je 0x101d0e66
push ebx
push dword [esp + 0x1c]
push esi
call fcn.100bb250
add esp, 0xc
test eax, eax
je 0x101d0e66
push edi
push dword [esp + 0x78]
push esi
call fcn.100bb250
add esp, 0xc
test eax, eax
je 0x101d0e66
push ebx
push dword [esp + 0x54]
mov ebx, esi
push ebx
call fcn.100bb250
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x101d0e6a
push 0
push esi
push ebx
call fcn.100baf10
add esp, 0xc
test eax, eax
je 0x101d0e6a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
call fcn.100d3640
mov dword [esp + 0x60], eax
call fcn.100d3640
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x101d0e33
test eax, eax
je 0x101d0e33
push dword [esp + 0x30]
push esi
push ecx
call fcn.100fd800
add esp, 0xc
test eax, eax
je 0x101d0e00
push edi
push ebp
push dword [esp + 0x6c]
call fcn.100fd800
add esp, 0xc
test eax, eax
je 0x101d0e00
push 0x102baea8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.100fc7f0
add esp, 0xc
test eax, eax
jns 0x101d0de6
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x101d0e0f
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], 1
mov dword [ecx], eax
jmp 0x101d0f7f
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0103
push 0x35
call fcn.100c4fe0
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101d0f7f
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0100
push 0x35
call fcn.100c4fe0
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101d0f7f
mov esi, dword [esp + 0x14]
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xe3
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0x80006
push 0x35
call fcn.100c4fe0
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101d0f7f
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xc5
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0103
jmp 0x101d0edf
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xbf
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0x80010
push 0x35
call fcn.100c4fe0
mov ebx, dword [esp + 0x28]
add esp, 0x18
mov esi, dword [esp + 0x14]
jmp 0x101d0f7f
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0xb0
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0100
push 0x35
call fcn.100c4fe0
mov ebx, esi
add esp, 0x18
mov esi, dword [esp + 0x14]
jmp 0x101d0f7f
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0x9c
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0100
push 0x35
call fcn.100c4fe0
mov ebx, esi
jmp 0x101d0f7a
call fcn.100c4e30
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.100c4f30
push 0
push 0xc0103
push 0x35
call fcn.100c4fe0
add esp, 0x18
xor esi, esi
push dword [esp + 0x40]
call fcn.100bb900
push dword [esp + 0x68]
call fcn.100d3530
push dword [esp + 0x68]
call fcn.100d3530
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.100bcdd0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x38]
call fcn.100bcdd0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push esi
call fcn.100bcdd0
push dword [esp + 0x54]
call fcn.100bb7b0
push ebx
call fcn.101256a0
push dword [esp + 0x58]
call fcn.10100ff0
push dword [esp + 0x64]
call fcn.10100ff0
mov eax, dword [esp + 0x84]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret