Function at 0x1001be45
Capabilities:
Encode data using xor

Disassembly:
push 0x94
mov eax, 0x100475d7
call fcn.10044ac9
mov ebx, ecx
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
xor eax, eax
inc eax
cmp dword [0x1005afc0], 0
je 0x1001c297
cmp byte [0x1005a60c], 0
je 0x1001c297
lea eax, [ebx + 0x10]
push 0xa
mov dword [ebp - 0x48], eax
mov esi, eax
pop eax
mov dword [ebp - 0x4c], eax
cmp dword [esi], 0
je 0x1001bea7
push 0
push dword [esi]
call fcn.1000e8b6
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
add esi, 4
sub eax, 1
mov dword [ebp - 0x4c], eax
jne 0x1001be94
mov ecx, dword [ebx + 4]
call dword [0x1005a610]
mov esi, dword [ebp - 0x2c]
mov ax, word [edi]
cmp ax, word [esi]
jb 0x1001c002
mov ax, word [edi + 2]
cmp ax, word [esi + 2]
jb 0x1001c002
mov ax, word [edi + 4]
cmp ax, word [esi + 4]
jb 0x1001c002
mov ax, word [edi + 6]
cmp ax, word [esi + 6]
jb 0x1001c002
push dword [ebx + 0x10]
call fcn.1000e3b3
push dword [ebx + 0xc]
mov edi, edx
call fcn.1000e3b3
push dword [ebx + 0x10]
mov esi, eax
call fcn.1000e388
add eax, edi
push eax
push esi
push dword [ebx + 0xc]
call fcn.1000e7be
add esp, 0x18
mov dword [ebp - 0x2c], 0x5f092c
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov cl, 0x2c
cmovae eax, dword [ebp + 8]
push eax
xor eax, eax
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x1001bf45
mov cl, byte [ebp - 0x2c]
jmp 0x1001bf36
sub esp, 0x18
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x80]
push eax
call fcn.1001b71b
xor ecx, ecx
push eax
push dword [ebx + 8]
inc ecx
mov byte [ebp - 4], cl
call fcn.1000f1a6
add esp, 0x28
mov byte [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0x80]
inc eax
push 0
push eax
call fcn.10001cd4
movaps xmm0, xmmword [0x1004d9c0]
xor ecx, ecx
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0x252c302d
mov dword [ebp - 0x6c], 0x612534
mov al, byte [ebp - 0x80]
xor byte [ebp + ecx - 0x7f], al
inc ecx
cmp ecx, 0x16
jb 0x1001bf9f
sub esp, 0x18
mov byte [ebp - 0x69], 0
lea eax, [ebp - 0x7f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0xa0]
push eax
call fcn.1001b71b
push eax
push dword [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.1000f1a6
add esp, 0x24
mov byte [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0xa0]
inc eax
push 0
push eax
call fcn.10001cd4
xor eax, eax
inc eax
push eax
push dword [ebx + 0x10]
call fcn.1000e8b6
pop ecx
pop ecx
jmp 0x1001c287
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov cl, 0x71
mov dword [ebp - 0x2c], 0x25471
cmovae eax, dword [ebp + 8]
push eax
xor eax, eax
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x1001c028
mov cl, byte [ebp - 0x2c]
jmp 0x1001c019
sub esp, 0x18
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0xa0]
push eax
call fcn.1001b71b
push eax
push dword [ebx + 8]
mov byte [ebp - 4], 3
call fcn.1000f1a6
add esp, 0x28
mov byte [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0xa0]
inc eax
push 0
push eax
call fcn.10001cd4
mov ecx, dword [ebp - 0x30]
lea eax, [ebx + 0x10]
sub esi, ecx
mov dword [ebp - 0x4c], 4
sub edi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x68], edi
movzx edx, word [ecx]
test dx, dx
je 0x1001c271
push edx
call fcn.10006369
pop ecx
mov dword [ebp - 0x84], eax
mov cl, 0x7e
mov dword [ebp - 0x44], 0x15102b7e
xor eax, eax
mov dword [ebp - 0x40], 0x10091110
mov byte [ebp - 0x3c], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 7
jae 0x1001c0c0
mov cl, byte [ebp - 0x44]
jmp 0x1001c0b1
lea eax, [ebp - 0x43]
mov byte [ebp - 0x3c], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100012e0
mov eax, dword [ebp - 0x84]
mov byte [ebp - 4], 4
test eax, eax
je 0x1001c0fb
add eax, 4
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x1001c18a
push 0xffffffffffffffff
push 0
push eax
call fcn.10001d29
jmp 0x1001c18a
mov eax, dword [ebp - 0x30]
xor ecx, ecx
inc ecx
cmp word [eax], cx
jne 0x1001c18d
mov esi, dword [0x1005afc0]
mov ecx, esi
call fcn.1001403c
xor eax, eax
cmp byte [esi + 0x34], 1
jne 0x1001c14d
mov cl, 0x70
mov dword [ebp - 0x58], 0x501c3570
mov dword [ebp - 0x54], 0x11021f3d
mov word [ebp - 0x50], 0x14
xor byte [ebp + eax - 0x57], cl
inc eax
cmp eax, 8
jae 0x1001c144
mov cl, byte [ebp - 0x58]
jmp 0x1001c135
mov byte [ebp - 0x4f], 0
lea esi, [ebp - 0x57]
jmp 0x1001c176
mov cl, 0x2c
mov dword [ebp - 0x38], 0x5e4d672c
mov word [ebp - 0x34], 0x5f59
mov byte [ebp - 0x32], 0
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 5
jae 0x1001c16f
mov cl, byte [ebp - 0x38]
jmp 0x1001c160
mov byte [ebp - 0x32], 0
lea esi, [ebp - 0x37]
push esi
call fcn.10001edd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10001dbf
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
movzx eax, word [esi + eax]
mov cl, 0x3d
cmp dword [ebp - 0x14], 0x10
push eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], 0x1d4e183d
mov dword [ebp - 0x60], 0x18125918
mov word [ebp - 0x5c], 0x59
movzx eax, word [edi + eax]
push eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
xor eax, eax
xor byte [ebp + eax - 0x63], cl
inc eax
cmp eax, 8
jae 0x1001c1cd
mov cl, byte [ebp - 0x64]
jmp 0x1001c1be
sub esp, 0x18
mov byte [ebp - 0x5b], 0
lea eax, [ebp - 0x63]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0xa0]
push eax
call fcn.1001b71b
mov esi, dword [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
push dword [esi + 0x28]
call fcn.1000f1a6
add esp, 0x30
mov byte [ebp - 4], 4
xor eax, eax
lea ecx, [ebp - 0xa0]
inc eax
push 0
push eax
call fcn.10001cd4
push dword [esi]
call fcn.1000e3b3
push dword [ebx + 0xc]
mov edi, edx
call fcn.1000e3b3
mov esi, eax
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.1000e388
add eax, edi
push eax
push esi
push dword [ebx + 0xc]
call fcn.1000e7be
xor eax, eax
inc eax
push eax
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.1000e8b6
add esp, 0x20
mov byte [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0x28]
inc eax
push 0
push eax
call fcn.10001cd4
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
add eax, 4
add ecx, 2
sub dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], ecx
jne 0x1001c082
mov ecx, dword [ebx + 4]
xor eax, eax
inc eax
push eax
call dword [0x1005a614]
xor eax, eax
inc eax
push 0
push eax
lea ecx, [ebp + 8]
call fcn.10001cd4
call fcn.10044a84
ret 0x24