Function at 0x1000be30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x101242d0]
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.10046260
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], esi
call fcn.100462f0
mov eax, dword [ebp - 0x58]
push eax
call fcn.1004b690
add eax, 0x41
add esp, 8
cmp edi, eax
jb 0x1000be97
cmp dword [ebp - 0x60], esi
jne 0x1000bede
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.1004b690
add esp, 4
sub edi, eax
lea esi, [edi - 0x41]
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.10044040
mov edx, dword [ebp - 0x50]
push edx
call fcn.10044040
mov eax, dword [ebp - 0x54]
push eax
call fcn.1004c400
mov edi, dword [ebp - 0x4c]
add esp, 0xc
test edi, edi
je 0x1000becb
push edi
call fcn.10046340
push edi
call fcn.100462c0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b993a
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1004bf10
push eax
call fcn.1004c350
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.1004bf10
add esp, 4
push eax
call fcn.1004f220
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1000be97
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
push edx
push eax
push ebx
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004c990
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000be97
mov esi, dword [ebp - 0x54]
push esi
push ebx
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004c930
add esp, 8
cmp eax, 1
jne 0x1000bf5b
xor esi, esi
mov ebx, esi
jmp 0x1000be9a
mov ecx, dword [ebp - 0x4c]
push ecx
push ebx
call fcn.1004bcd0
add esp, 4
push eax
push esi
push 0
push esi
push ebx
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004cb50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000be97
push 0x2c2
push str.sm2.c
push 0x41
call fcn.10043ea0
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.1004bf10
add esp, 4
push eax
call fcn.1004f170
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000be97
push 0x2c9
sub edi, 0x61
push str.sm2.c
push edi
call fcn.10043ea0
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.1000afc0
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.1000afa0
cmp eax, 1
jne 0x1000c008
xor esi, esi
jmp 0x1000be9a
push esi
call fcn.1004b690
mov ecx, dword [ebp - 0x5c]
add esp, 4
lea ecx, [eax + ecx + 0x41]
test edi, edi
je 0x1000c02b
mov eax, ebx
sub ecx, ebx
mov esi, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x1000c022
mov dword [ebp - 0x48], 0
call fcn.1004ada0
mov esi, eax
test esi, esi
je 0x1000c082
mov eax, dword [ebp - 0x58]
push eax
push esi
call fcn.1004b0c0
mov eax, dword [ebp - 0x50]
push 0x20
inc eax
push eax
push esi
call fcn.1004af80
push edi
push ebx
push esi
call fcn.1004af80
mov ecx, dword [ebp - 0x50]
push 0x20
add ecx, 0x21
push ecx
push esi
call fcn.1004af80
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.1004b0f0
push esi
call fcn.1004b330
add esp, 0x3c
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
add ecx, 0x41
lea esi, [ebp - 0x44]
cmp eax, 4
jb 0x1000c0a7
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x1000c0cb
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x1000c093
test eax, eax
je 0x1000c0d2
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1000c0cb
cmp eax, 1
jbe 0x1000c0d2
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1000c0cb
cmp eax, 2
jbe 0x1000c0d2
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x1000c0d2
xor esi, esi
jmp 0x1000be9a
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push ecx
call fcn.100b8d30
add esp, 0xc
mov esi, edi
jmp 0x1000be9a