Function at 0x101a1580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c
call fcn.101e1c60
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], edi
call fcn.100dd500
mov ebx, dword [esp + 0x60]
push ebx
mov dword [esp + 0x28], eax
call fcn.100cc790
mov esi, eax
push esi
call fcn.100fa230
push ebx
mov dword [esp + 0x48], eax
call fcn.100cc770
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call fcn.100cc850
xor ebx, ebx
add esp, 0x10
mov ebp, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x24], ebx
je 0x101a199c
cmp ebp, ebx
jle 0x101a199c
push esi
call fcn.101a1430
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x101a161b
push 0x8a
jmp 0x101a19a1
push esi
call fcn.100fae90
push esi
mov dword [esp + 0x24], eax
call fcn.100fae90
add esp, 8
mov dword [esp + 0x20], eax
call fcn.1013da20
mov edi, eax
cmp dword [esp + 0x1c], ebx
je 0x101a198e
cmp dword [esp + 0x20], ebx
je 0x101a198e
cmp edi, ebx
je 0x101a198e
push edi
call fcn.1013db10
push edi
call fcn.1013dba0
push edi
mov ebx, eax
call fcn.1013dba0
push edi
mov dword [esp + 0x3c], eax
call fcn.1013dba0
push edi
mov dword [esp + 0x58], eax
call fcn.1013dba0
push edi
mov dword [esp + 0x48], eax
call fcn.1013dba0
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
jne 0x101a16a3
push 0x9e
push str.crypto_sm2_sm2_crypt.c
push 3
jmp 0x101a19a8
mov eax, dword [esp + 0x14]
push 0xa2
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100b7aa0
push 0xa3
push str.crypto_sm2_sm2_crypt.c
push ebp
mov dword [esp + 0x28], eax
call fcn.100b7aa0
add esp, 0x18
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x101a1980
test eax, eax
je 0x101a1980
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
mov eax, dword [esp + 0x70]
push edx
push 0
push eax
call fcn.101e44a0
mov ecx, dword [esp + 0x48]
push ecx
push ebx
call fcn.1013df90
add esp, 0x14
test eax, eax
jne 0x101a1716
push 0xad
jmp 0x101a19a1
mov ebp, dword [esp + 0x1c]
push edi
push 0
push 0
push ebx
push ebp
push esi
call fcn.100fb6d0
add esp, 0x18
test eax, eax
je 0x101a1972
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
push ebp
push esi
call fcn.100fc0f0
add esp, 0x14
test eax, eax
je 0x101a1972
mov ecx, dword [esp + 0x40]
push edi
push ebx
mov ebx, dword [esp + 0x28]
push ecx
push 0
push ebx
push esi
call fcn.100fb6d0
add esp, 0x18
test eax, eax
je 0x101a1972
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
push edi
push edx
push ebp
push ebx
push esi
call fcn.100fc0f0
add esp, 0x14
test eax, eax
je 0x101a1972
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push esi
push ebx
push ebp
call fcn.1010e730
add esp, 0xc
test eax, eax
js 0x101a196b
lea eax, [esi + ebx]
push esi
push eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.1010e730
add esp, 0xc
test eax, eax
js 0x101a196b
mov ebp, dword [esp + 0x6c]
push 0xbf
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.100b7aa0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x101a17f6
push 0xc1
push str.crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x101a19a8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
push ecx
push 0
push 0
mov eax, esi
add eax, eax
push eax
push edx
push ebp
push ebx
call fcn.101a6000
add esp, 0x1c
test eax, eax
jne 0x101a1828
push 0xc8
push str.crypto_sm2_sm2_crypt.c
push 6
jmp 0x101a19a8
test ebp, ebp
je 0x101a183f
mov ecx, dword [esp + 0x68]
mov eax, ebx
sub ecx, ebx
mov esi, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x101a1836
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.100dda50
add esp, 8
test eax, eax
je 0x101a195d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a195d
mov eax, dword [esp + 0x68]
push ebp
push eax
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a195d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
push ecx
push edx
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a195d
mov eax, dword [esp + 0x18]
push 0
push eax
push esi
call fcn.100dda70
add esp, 0xc
test eax, eax
je 0x101a195d
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.100efee0
mov dword [esp + 0x54], eax
call fcn.100efee0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x101a194f
test eax, eax
je 0x101a194f
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
push eax
push edx
push ecx
call fcn.1013a830
add esp, 0xc
test eax, eax
je 0x101a1948
mov eax, dword [esp + 0x58]
push ebp
push ebx
push eax
call fcn.1013a830
add esp, 0xc
test eax, eax
je 0x101a1948
push 0x10305d90
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.100f2750
add esp, 0xc
test eax, eax
jns 0x101a1938
push 0xea
jmp 0x101a19a1
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
mov dword [esp + 0x38], 1
jmp 0x101a19b4
push 0xe3
jmp 0x101a19a1
push 0xde
push str.crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x101a19a8
push 0xd4
push str.crypto_sm2_sm2_crypt.c
push 6
jmp 0x101a19a8
push 0xbb
jmp 0x101a19a1
push 0xb5
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x101a19a8
push 0xa6
push str.crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x101a19a8
push 0x92
push str.crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x101a19a8
push 0x84
push str.crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.100b26d0
add esp, 0x14
mov edx, dword [esp + 0x58]
push edx
call fcn.100effa0
mov eax, dword [esp + 0x58]
push eax
call fcn.100effa0
mov ecx, dword [esp + 0x3c]
push 0xf4
push str.crypto_sm2_sm2_crypt.c
push ecx
call fcn.100b7b10
mov edx, dword [esp + 0x24]
push 0xf5
push str.crypto_sm2_sm2_crypt.c
push edx
call fcn.100b7b10
mov eax, dword [esp + 0x38]
push 0xf6
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100b7b10
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100dd520
push edi
call fcn.1013dad0
mov edx, dword [esp + 0x50]
push edx
call fcn.100faf50
mov eax, dword [esp + 0x58]
push eax
call fcn.100faf50
mov eax, dword [esp + 0x74]
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret