Function at 0x101a1a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.101e1c60
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
call fcn.100cc790
mov esi, eax
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call fcn.101a1430
mov ecx, dword [esp + 0x54]
push ecx
mov ebp, eax
call fcn.100cc850
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
test ebp, ebp
je 0x101a1de4
test ebx, ebx
jle 0x101a1de4
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x58]
push eax
push 0xff
push ecx
call fcn.101e44a0
mov edx, dword [esp + 0x60]
push 0x10305d90
push edx
lea eax, [esp + 0x64]
push eax
push edi
call fcn.100f1a90
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
jne 0x101a1aea
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x101a1dd8
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x101a1b02
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x101a1dd8
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
cmp dword [edx], ebx
jae 0x101a1b32
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
jmp 0x101a1dd8
call fcn.1013da20
mov dword [esp + 0x10], eax
test eax, eax
jne 0x101a1b49
push 0x130
jmp 0x101a1dd1
push eax
call fcn.1013db10
mov eax, dword [esp + 0x14]
push eax
call fcn.1013dba0
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x30], eax
call fcn.1013dba0
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x101a1b83
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
jmp 0x101a1dd8
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.100b7aa0
push 0x13e
mov edi, eax
lea eax, [ebp + ebp]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100b7aa0
mov edx, dword [esp + 0x44]
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push edx
mov dword [esp + 0x38], eax
call fcn.100b7aa0
add esp, 0x24
mov dword [esp + 0x1c], eax
test edi, edi
je 0x101a1dcc
cmp dword [esp + 0x14], 0
je 0x101a1dcc
test eax, eax
je 0x101a1dcc
push esi
call fcn.100fae90
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x101a1bfe
push 0x148
jmp 0x101a1dd1
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
push ecx
push eax
push esi
call fcn.100fc030
add esp, 0x14
test eax, eax
je 0x101a1dbe
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.100ee040
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push eax
push esi
call fcn.100fb6d0
add esp, 0x18
test eax, eax
je 0x101a1dbe
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
call fcn.100fc0f0
add esp, 0x14
test eax, eax
je 0x101a1dbe
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ebp
push esi
push edx
call fcn.1010e730
add esp, 0xc
test eax, eax
js 0x101a1db0
lea eax, [esi + ebp]
push ebp
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.1010e730
add esp, 0xc
test eax, eax
js 0x101a1db0
mov ecx, dword [esp + 0x4c]
push ecx
push 0
push 0
lea eax, [ebp + ebp]
push eax
push esi
push ebx
push edi
call fcn.101a6000
add esp, 0x1c
test eax, eax
je 0x101a1db0
test ebx, ebx
je 0x101a1cf1
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x58]
sub ecx, edi
mov eax, edi
sub esi, edi
mov edx, ebx
nop
mov bl, byte [ecx + eax]
xor bl, byte [eax]
inc eax
dec edx
mov byte [esi + eax - 1], bl
jne 0x101a1ce0
mov ebx, dword [esp + 0x3c]
call fcn.100dd500
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
jne 0x101a1d0a
push 0x162
jmp 0x101a1dd1
mov edx, dword [esp + 0x4c]
push edx
push esi
call fcn.100dda50
add esp, 8
test eax, eax
je 0x101a1da2
mov eax, dword [esp + 0x14]
push ebp
push eax
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a1da2
mov ecx, dword [esp + 0x58]
push ebx
push ecx
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a1da2
mov edx, dword [esp + 0x24]
push ebp
push edx
push esi
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101a1da2
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push esi
call fcn.100dda70
add esp, 0xc
test eax, eax
je 0x101a1da2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push ebp
call fcn.100cbae0
add esp, 0xc
test eax, eax
je 0x101a1d92
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x101a1dd8
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], 1
mov dword [edx], ebx
jmp 0x101a1dfa
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
jmp 0x101a1dd8
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x101a1dd8
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x101a1dd8
push 0x142
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.100b26d0
add esp, 0x14
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x58]
push ecx
push 0
push edx
call fcn.101e44a0
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.100b7b10
mov eax, dword [esp + 0x20]
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100b7b10
mov ecx, dword [esp + 0x34]
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ecx
call fcn.100b7b10
mov edx, dword [esp + 0x3c]
push edx
call fcn.100faf50
mov eax, dword [esp + 0x38]
push eax
call fcn.1013dad0
mov ecx, dword [esp + 0x4c]
push 0x10305d90
push ecx
call fcn.100f32f0
mov edx, dword [esp + 0x64]
push edx
call fcn.100dd520
mov eax, dword [esp + 0x6c]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret