Function at 0x1013d630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.10022920
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
xor ebx, ebx
call fcn.10027250
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x18], eax
call fcn.10025da0
mov edi, eax
push edi
call fcn.1003a6e0
push esi
mov dword [esp + 0x58], eax
call fcn.10025c10
push dword [esp + 0x7c]
mov dword [esp + 0x60], eax
xor ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
call fcn.1003d130
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ebx
call fcn.10046a20
push esi
mov dword [esp + 0x40], eax
call fcn.10046a10
add esp, 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x14], ebx
je 0x1013dbf6
cmp dword [esp + 0x2c], ebx
jle 0x1013dbf6
push edi
call fcn.1013cec0
mov esi, eax
add esp, 4
mov dword [esp + 0x54], esi
test esi, esi
jne 0x1013d6ee
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0x94
jmp 0x1013dc05
push edi
call fcn.1004d2f0
push edi
mov dword [esp + 0x24], eax
call fcn.1004d2f0
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.100331c0
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x1c], ebp
je 0x1013dbe2
cmp dword [esp + 0x20], ebp
je 0x1013dbe2
test ebx, ebx
je 0x1013dbe2
push ebx
call fcn.10033290
push ebx
call fcn.10033030
push ebx
mov dword [esp + 0x24], eax
call fcn.10033030
push ebx
mov dword [esp + 0x4c], eax
call fcn.10033030
push ebx
mov dword [esp + 0x44], eax
call fcn.10033030
push ebx
mov dword [esp + 0x58], eax
call fcn.10033030
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1013d790
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xa8
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80003
jmp 0x1013dc16
push 0xac
lea eax, [esi + esi]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.1002ecf0
push 0xad
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.1002ecf0
add esp, 0x18
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], ebp
je 0x1013dbce
test eax, eax
je 0x1013dbce
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.10146e60
push ebx
push 0
push dword [esp + 0x60]
push dword [esp + 0x30]
call fcn.10063010
add esp, 0x1c
test eax, eax
jne 0x1013d815
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xb7
jmp 0x1013dc05
push ebx
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x2c]
push edi
call fcn.1004d1b0
add esp, 0x18
test eax, eax
je 0x1013dbac
push ebx
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x28]
push edi
call fcn.1004cec0
add esp, 0x14
test eax, eax
je 0x1013dbac
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x58]
push 0
push dword [esp + 0x30]
push edi
call fcn.1004d1b0
add esp, 0x18
test eax, eax
je 0x1013dbac
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x2c]
push edi
call fcn.1004cec0
add esp, 0x14
test eax, eax
je 0x1013dbac
mov edi, dword [esp + 0x10]
push esi
push edi
push dword [esp + 0x38]
call fcn.10031e40
add esp, 0xc
test eax, eax
js 0x1013db9b
lea eax, [esi + edi]
push esi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x58], eax
call fcn.10031e40
add esp, 0xc
test eax, eax
js 0x1013db9b
mov edi, dword [esp + 0x78]
push 0xc9
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.1002ecf0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x1013d90c
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0xc0100
jmp 0x1013dc16
push dword [esp + 0x38]
lea eax, [esi + esi]
push dword [esp + 0x2c]
push dword [esp + 0x78]
push 0
push 0
push eax
push dword [esp + 0x28]
push edi
push ebp
call fcn.1009b3b0
add esp, 0x24
test eax, eax
jne 0x1013d957
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80006
jmp 0x1013dc16
xor esi, esi
test edi, edi
je 0x1013da05
mov edx, ebp
mov ebp, dword [esp + 0x74]
cmp edi, 0x40
jb 0x1013d9e6
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x1013d97e
cmp ecx, ebp
jae 0x1013d9e6
mov ecx, edi
mov eax, edx
mov edi, ebp
and ecx, 0xffffffc0
sub edi, edx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x50]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi + ebp + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + ebp + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + ebp + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, ecx
jne 0x1013d995
mov edx, dword [esp + 0x18]
cmp esi, edi
je 0x1013da01
lea ecx, [esi + edx]
sub ebp, edx
mov edx, edi
sub edx, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1013d9f3
mov ebp, dword [esp + 0x18]
push dword [esp + 0x38]
push dword [esp + 0x74]
call fcn.1003d0c0
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.100272e0
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x1013da3e
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x1013dc05
push eax
push dword [esp + 0x18]
call fcn.10026d30
add esp, 8
test eax, eax
je 0x1013db87
mov esi, dword [esp + 0x54]
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.10026d90
add esp, 0xc
test eax, eax
je 0x1013db87
push edi
push dword [esp + 0x78]
push dword [esp + 0x1c]
call fcn.10026d90
add esp, 0xc
test eax, eax
je 0x1013db87
push esi
push dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
push esi
call fcn.10026d90
add esp, 0xc
test eax, eax
je 0x1013db87
push 0
push dword [esp + 0x28]
push esi
call fcn.10026a50
add esp, 0xc
test eax, eax
je 0x1013db87
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
call fcn.10066f80
mov dword [esp + 0x60], eax
call fcn.10066f80
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x1013db73
test eax, eax
je 0x1013db73
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
call fcn.10088630
add esp, 0xc
test eax, eax
je 0x1013db5f
push edi
push ebp
push dword [esp + 0x6c]
call fcn.10088630
add esp, 0xc
test eax, eax
je 0x1013db5f
push 0x101e4e90
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.1006a0d0
add esp, 0xc
test eax, eax
jns 0x1013db49
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x1013dc05
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x1013dc20
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xf2
jmp 0x1013dc05
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xed
jmp 0x1013d8f6
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xe3
jmp 0x1013d941
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xc5
jmp 0x1013dc05
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xbf
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0x80010
jmp 0x1013dc16
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0xb0
jmp 0x1013d8f6
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0x9c
jmp 0x1013d8f6
call fcn.1002efd0
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.1002f0d0
push 0
push 0xc0103
push 0x35
call fcn.1002f180
add esp, 0x18
push dword [esp + 0x44]
call fcn.10027310
push dword [esp + 0x68]
call fcn.10066e70
push dword [esp + 0x68]
call fcn.10066e70
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.1002eae0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.1002eae0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x50]
call fcn.1002eae0
push dword [esp + 0x44]
call fcn.100271c0
push ebx
call fcn.10032fa0
push dword [esp + 0x54]
call fcn.1004ce90
push dword [esp + 0x5c]
call fcn.1004ce90
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret