Function at 0x10178b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.101b79b0
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.100d5030
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.10178520
mov ecx, dword [esp + 0x54]
push ecx
mov ebp, eax
call fcn.100e91a0
add esp, 0xc
test ebp, ebp
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
je 0x10178ed8
test ebx, ebx
jle 0x10178ed8
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x58]
push eax
push 0xff
push ecx
call fcn.101b5c80
mov edx, dword [esp + 0x60]
push 0x1024ed98
push edx
lea eax, [esp + 0x64]
push eax
push edi
call fcn.10104ab0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x20], eax
jne 0x10178bda
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x10178ecc
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x10178bf2
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x10178ecc
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]
cmp dword [edx], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
jae 0x10178c22
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
jmp 0x10178ecc
call fcn.10121c20
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10178c39
push 0x130
jmp 0x10178ec5
push eax
call fcn.10121cd0
mov eax, dword [esp + 0x14]
push eax
call fcn.10121d70
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x30], eax
call fcn.10121d70
add esp, 0xc
test eax, eax
mov dword [esp + 0x28], eax
jne 0x10178c73
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
jmp 0x10178ecc
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.100de190
push 0x13e
mov edi, eax
lea eax, [ebp + ebp]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100de190
mov edx, dword [esp + 0x44]
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push edx
mov dword [esp + 0x38], eax
call fcn.100de190
add esp, 0x24
test edi, edi
mov dword [esp + 0x1c], eax
je 0x10178ec0
cmp dword [esp + 0x14], 0
je 0x10178ec0
test eax, eax
je 0x10178ec0
push esi
call fcn.100ff430
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10178cee
push 0x148
jmp 0x10178ec5
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.101005e0
add esp, 0x14
test eax, eax
je 0x10178eb2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.1011eea0
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push eax
push esi
call fcn.100ffc80
add esp, 0x18
test eax, eax
je 0x10178eb2
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.101006a0
add esp, 0x14
test eax, eax
je 0x10178eb2
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ebp
push esi
push edx
call fcn.100d4960
add esp, 0xc
test eax, eax
jl 0x10178ea4
lea eax, [esi + ebp]
push ebp
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.100d4960
add esp, 0xc
test eax, eax
jl 0x10178ea4
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.1017d2d0
add esp, 0x1c
test eax, eax
je 0x10178ea4
test ebx, ebx
je 0x10178de5
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]
add eax, 1
sub edx, 1
mov byte [esi + eax - 1], bl
jne 0x10178dd0
mov ebx, dword [esp + 0x3c]
call fcn.100e32b0
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
jne 0x10178dfe
push 0x162
jmp 0x10178ec5
mov edx, dword [esp + 0x4c]
push edx
push esi
call fcn.100e3800
add esp, 8
test eax, eax
je 0x10178e96
mov eax, dword [esp + 0x14]
push ebp
push eax
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x10178e96
mov ecx, dword [esp + 0x58]
push ebx
push ecx
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x10178e96
mov edx, dword [esp + 0x24]
push ebp
push edx
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x10178e96
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push esi
call fcn.100e3820
add esp, 0xc
test eax, eax
je 0x10178e96
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push ebp
call fcn.10100b10
add esp, 0xc
test eax, eax
je 0x10178e86
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x10178ecc
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], 1
mov dword [edx], ebx
jmp 0x10178eee
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
jmp 0x10178ecc
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x10178ecc
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x10178ecc
push 0x142
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.100dc5a0
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.101b5c80
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.100de200
mov eax, dword [esp + 0x20]
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.100de200
mov ecx, dword [esp + 0x34]
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ecx
call fcn.100de200
mov edx, dword [esp + 0x3c]
push edx
call fcn.100ff4f0
mov eax, dword [esp + 0x38]
push eax
call fcn.10121c90
mov ecx, dword [esp + 0x4c]
push 0x1024ed98
push ecx
call fcn.101060f0
mov edx, dword [esp + 0x64]
push edx
call fcn.100e32d0
mov eax, dword [esp + 0x6c]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret