Function at 0x1000a8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x10009fc0
xor esi, esi
push 0x10009fc0
mov edi, eax
push 0x10009fa0
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.10025720
add esp, 0x10
test eax, eax
jne 0x1000a957
call fcn.10009ec0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000a93b
mov dword [ebp - 0x18], ebx
jmp 0x1000a95a
push 0x10009fc0
push 0x10009fc0
push 0x10009fa0
push eax
push edi
call fcn.10025770
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], ebx
jne 0x1000a980
mov eax, dword [ebp + 0x14]
push eax
call fcn.10025000
mov ecx, dword [ebp + 0xc]
add esp, 4
lea esi, [eax + ecx + 0x41]
jmp 0x1000abc6
mov esi, dword [ebp - 0xc]
lea ebx, [ebx]
test esi, esi
jne 0x1000a98e
call fcn.10025950
mov dword [ebp - 0xc], eax
mov esi, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
push esi
call fcn.1003dda0
add esp, 8
cmp dword [esi + 4], 0
je 0x1000a980
call fcn.1002f760
mov ebx, eax
push ebx
call fcn.1002f7f0
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x1000a9cc
push edi
call fcn.10025620
push eax
call fcn.1003cba0
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push ebx
push esi
push edx
push 0
push eax
push edi
call fcn.10025620
add esp, 4
push eax
call fcn.1003d3a0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000abc6
push edi
call fcn.100256a0
add esp, 4
push eax
push edi
call fcn.10025620
add esp, 4
push eax
call fcn.1003d180
add esp, 8
test eax, eax
jne 0x1000ab01
cmp dword [ebp - 0x14], eax
jne 0x1000aa32
push edi
call fcn.10025620
push eax
call fcn.1003cba0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ebx
push ecx
push edi
call fcn.100256a0
mov edx, dword [ebp - 0x14]
add esp, 4
push eax
push 0
push edx
push edi
call fcn.10025620
add esp, 4
push eax
call fcn.1003d3a0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000abc6
cmp dword [ebp - 4], 0
jne 0x1000aa80
push 0x29f
push str.SM_sm2.c
push 0x41
call fcn.100219e0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
push ebx
push 0x41
push eax
push 4
push ecx
push edi
call fcn.10025620
add esp, 4
push eax
call fcn.1006c2d0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000abc6
cmp dword [ebp - 8], 0
mov esi, dword [ebp + 0xc]
jne 0x1000aac8
push 0x2a6
push str.SM_sm2.c
push esi
call fcn.100219e0
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push edx
inc eax
push eax
mov edx, esi
call fcn.10009db0
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, esi
test esi, esi
je 0x1000a977
jmp 0x1000aaf0
mov dl, byte [ecx]
dec eax
inc ecx
test dl, dl
jne 0x1000ab08
test eax, eax
jne 0x1000aaf0
jmp 0x1000a977
xor esi, esi
jmp 0x1000abc6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000ab20
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1000ab17
call fcn.10023dc0
mov esi, eax
test esi, esi
je 0x1000ab79
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.100240e0
mov ecx, dword [ebp - 4]
push 0x20
inc ecx
push ecx
push esi
call fcn.10023fa0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push esi
call fcn.10023fa0
mov ecx, dword [ebp - 4]
push 0x20
add ecx, 0x21
push ecx
push esi
call fcn.10023fa0
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
add eax, 0x41
push eax
push esi
call fcn.10024110
push esi
call fcn.10024350
add esp, 0x3c
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push ebx
push 0x41
push esi
push 4
push ecx
push edi
call fcn.10025620
add esp, 4
push eax
call fcn.1006c2d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
add esp, 0x18
push edx
push eax
push edi
call fcn.10025000
lea ecx, [eax + esi + 0x41]
add esp, 4
push ecx
call fcn.100761a0
push edi
call fcn.10025000
mov edx, dword [ebp + 0xc]
add esp, 0x10
lea esi, [eax + edx + 0x41]
mov eax, dword [ebp - 0xc]
push eax
call fcn.100258f0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1003cc50
mov edx, dword [ebp - 0x14]
push edx
call fcn.1003cc50
add esp, 0xc
test ebx, ebx
je 0x1000abf7
push ebx
call fcn.1002f840
push ebx
call fcn.1002f7c0
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.10021b80
mov ecx, dword [ebp - 8]
push ecx
call fcn.10021b80
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret