Function at 0x100be880
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10319b52
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], 0
mov eax, dword fs:[0x2c]
mov edx, dword [0x104c14e0]
mov edx, dword [eax + edx*4]
mov eax, dword [0x10611a7c]
cmp eax, dword [edx + 4]
jg 0x100be90a
mov eax, dword [0x106116e0]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x10611a7c
call fcn.102bba07
add esp, 4
cmp dword [0x10611a7c], 0xffffffff
jne 0x100be8e4
mov dword [ebp - 4], 0
cmp byte [0x104a9ec0], 0
jne 0x100be99e
mov byte [0x104a9ec0], 1
xor edi, edi
jmp 0x100be940
xor edx, edx
mov eax, edi
xor eax, dword [0x104a9ed8]
xor edx, dword [0x104a9edc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x48], eax
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor dword [ebp - 0x48], eax
mov ecx, edx
mov eax, dword [ebp - 0x48]
shrd eax, ecx, 7
xor dword [ebp - 0x48], eax
shr ecx, 7
xor edx, ecx
mov ecx, dword [ebp - 0x48]
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [ebp - 0x48]
xor cl, byte [edi + 0x104a9ec1]
mov byte [edi + 0x104a9ec1], cl
inc edi
cmp edi, 0x13
jb 0x100be940
jmp 0x100be99e
push ecx
push 0x104a9ed3
push 0x104a9ec1
lea ecx, [ebp - 0x44]
call fcn.1001a620
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
push 0xd
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x48], 7
call fcn.1001a120
mov esi, 0x103f6434
jmp 0x100be9f4
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
xor al, 0xa5
movzx eax, al
push eax
call fcn.1001a280
add esi, 2
cmp esi, 0x103f644a
jne 0x100be9f4
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x100beab7
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x100beab7
sub eax, esi
cmp eax, 0xffffffff
je 0x100beab7
jmp 0x100bea42
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edx, 1
lea ecx, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
add esi, eax
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
sub esi, eax
mov eax, edi
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x100beab7
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x100beab7
sub eax, esi
cmp eax, 0xffffffff
jne 0x100bea42
jmp 0x100beab7
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10171b70
mov ecx, dword [ebp - 0x18]
mov dword [0x106116e0], eax
cmp ecx, 0x10
jb 0x100beb0a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100beafe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100beafe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x100beb0a
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10019dd0
push 0x10611a7c
call fcn.102bb9b6
add esp, 4
jmp 0x100be8e4