Function at 0x1000ac20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100e5900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], esi
call fcn.1002f760
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], esi
call fcn.1002f7f0
mov eax, dword [ebp - 0x58]
push eax
call fcn.10025000
add eax, 0x41
add esp, 8
cmp edi, eax
jb 0x1000ac87
cmp dword [ebp - 0x60], esi
jne 0x1000acce
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.10025000
add esp, 4
sub edi, eax
lea esi, [edi - 0x41]
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.10021b80
mov edx, dword [ebp - 0x50]
push edx
call fcn.10021b80
mov eax, dword [ebp - 0x54]
push eax
call fcn.1003cc50
mov edi, dword [ebp - 0x4c]
add esp, 0xc
test edi, edi
je 0x1000acbb
push edi
call fcn.1002f840
push edi
call fcn.1002f7c0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10077184
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10025620
push eax
call fcn.1003cba0
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
add esp, 8
push edx
push 0x41
push ecx
push eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.10025620
add esp, 4
push eax
call fcn.1006c380
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1000ac87
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
push edx
push eax
push ebx
call fcn.10025620
add esp, 4
push eax
call fcn.1003d1e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000ac87
mov esi, dword [ebp - 0x54]
push esi
push ebx
call fcn.10025620
add esp, 4
push eax
call fcn.1003d180
add esp, 8
cmp eax, 1
jne 0x1000ad4b
xor esi, esi
mov ebx, esi
jmp 0x1000ac8a
mov ecx, dword [ebp - 0x4c]
push ecx
push ebx
call fcn.10025660
add esp, 4
push eax
push esi
push 0
push esi
push ebx
call fcn.10025620
add esp, 4
push eax
call fcn.1003d3a0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000ac87
push 0x305
push str.SM_sm2.c
push 0x41
call fcn.100219e0
mov edx, dword [ebp - 0x4c]
add esp, 0xc
push edx
push 0x41
push eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
push 4
push eax
push ebx
call fcn.10025620
add esp, 4
push eax
call fcn.1006c2d0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000ac87
push 0x30c
sub edi, 0x61
push str.SM_sm2.c
push edi
call fcn.100219e0
mov esi, dword [ebp - 0x58]
mov ebx, eax
mov eax, dword [ebp - 0x50]
inc eax
push ebx
push eax
mov ecx, esi
mov edx, edi
call fcn.10009db0
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.10009d90
cmp eax, 1
jne 0x1000adf8
xor esi, esi
jmp 0x1000ac8a
push esi
call fcn.10025000
mov ecx, dword [ebp - 0x5c]
add esp, 4
lea ecx, [eax + ecx + 0x41]
test edi, edi
je 0x1000ae1b
mov eax, ebx
sub ecx, ebx
mov esi, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x1000ae12
mov dword [ebp - 0x48], 0
call fcn.10023dc0
mov esi, eax
test esi, esi
je 0x1000ae72
mov eax, dword [ebp - 0x58]
push eax
push esi
call fcn.100240e0
mov eax, dword [ebp - 0x50]
push 0x20
inc eax
push eax
push esi
call fcn.10023fa0
push edi
push ebx
push esi
call fcn.10023fa0
mov ecx, dword [ebp - 0x50]
push 0x20
add ecx, 0x21
push ecx
push esi
call fcn.10023fa0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.10024110
push esi
call fcn.10024350
add esp, 0x3c
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
add ecx, 0x41
lea esi, [ebp - 0x44]
cmp eax, 4
jb 0x1000ae97
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x1000aebb
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x1000ae83
test eax, eax
je 0x1000aec2
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1000aebb
cmp eax, 1
jbe 0x1000aec2
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1000aebb
cmp eax, 2
jbe 0x1000aec2
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x1000aec2
xor esi, esi
jmp 0x1000ac8a
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push ecx
call fcn.100761a0
add esp, 0xc
mov esi, edi
jmp 0x1000ac8a