Function at 0x100be554
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x1017f3b5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [0x1027c0b4]
cmp dword [edx + 0x518], 0
je case.default.0x100be58c
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100be529
xor al, al
jmp 0x100be53d
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov al, byte [eax]
inc edi
movzx eax, al
mov dword [esi + 8], edi
cmp eax, 5
ja case.default.0x100be58c
jmp dword [eax*4 + 0x100beda4]
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be565
xor al, al
jmp 0x100be579
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov al, byte [eax]
movzx eax, al
inc edi
add eax, 0xfffffffa
mov dword [esi + 8], edi
cmp eax, 3
ja case.default.0x100be58c
jmp dword [eax*4 + 0x100bedbc]
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be5aa
lea eax, [edi + 1]
xor cl, cl
mov dword [esi + 8], eax
jmp 0x100be5c7
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov cl, byte [eax]
inc dword [esi + 8]
cmp cl, 4
ja case.default.0x100be58c
mov edx, dword [0x1027c0b4]
mov eax, dword [edx + 0x518]
movaps xmm0, xmmword [0x101c3000]
movups xmmword [ebp + 0x1c], xmm0
mov dword [ebp + 0x3c], 0x776e7d68
movaps xmm0, xmmword [0x101c2d90]
mov byte [eax + 0x21], cl
xor ecx, ecx
mov dword [eax + 0x18], 0x5a
mov dword [eax + 0x1c], 0
movups xmmword [ebp + 0x2c], xmm0
mov dword [ebp + 0x40], 0x356277
mov al, byte [ebp + 0x1c]
xor byte [ebp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x26
jb 0x100be604
push 0xffff4059
lea eax, [ebp + 0x1d]
mov byte [ebp + 0x43], 0
push eax
call fcn.100d7e40
jmp case.default.0x100be58c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be640
lea eax, [edi + 4]
mov dword [esi + 8], eax
jmp case.default.0x100be58c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov ecx, dword [eax]
add dword [esi + 8], 4
test ecx, ecx
je case.default.0x100be58c
movaps xmm0, xmmword [0x101c2800]
push 0xffff00ff
movups xmmword [ebp + 0x4c], xmm0
push ecx
movaps xmm0, xmmword [0x101c2900]
xor ecx, ecx
movups xmmword [ebp + 0x5c], xmm0
mov dword [ebp + 0x6c], 0x47410054
mov dword [ebp + 0x70], 0x4e4941
mov al, byte [ebp + 0x4c]
xor byte [ebp + ecx + 0x4d], al
inc ecx
cmp ecx, 0x26
jb 0x100be683
sub esp, 0x1c
mov byte [ebp + 0x73], 0
lea eax, [ebp + 0x4d]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp + 0x28]
push eax
call fcn.1004a910
add esp, 0x24
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x100be6c0
mov ecx, dword [ecx]
push ecx
call fcn.100d7e40
lea ecx, [ebp + 0x28]
call fcn.100448c0
mov eax, dword [ebp + 0x40]
cmp eax, 0x10
jb 0x100be6e3
inc eax
push eax
push dword [ebp + 0x2c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x28]
push 8
push eax
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0xf
mov byte [ebp + 0x2c], 0
mov dword [ebp + 0x28], 0
call fcn.10049010
add esp, 8
jmp case.default.0x100be58c
movaps xmm0, xmmword [0x101c2d60]
xor ecx, ecx
movups xmmword [ebp + 0x44], xmm0
mov word [ebp + 0x74], 0x277a
movaps xmm0, xmmword [0x101c3260]
movups xmmword [ebp + 0x54], xmm0
mov byte [ebp + 0x76], 0
movaps xmm0, xmmword [0x101c2d20]
movups xmmword [ebp + 0x64], xmm0
nop dword [eax]
mov al, byte [ebp + 0x44]
xor byte [ebp + ecx + 0x45], al
inc ecx
cmp ecx, 0x31
jb 0x100be740
push 0xffff00ff
lea eax, [ebp + 0x45]
mov byte [ebp + 0x76], 0
push eax
call fcn.100d7e40
jmp case.default.0x100be58c
movaps xmm0, xmmword [0x101c1c60]
xor ecx, ecx
movups xmmword [ebp + 0x48], xmm0
mov dword [ebp + 0x68], 0x9021502
movaps xmm0, xmmword [0x101c1bc0]
movups xmmword [ebp + 0x58], xmm0
mov dword [ebp + 0x6c], 0xb044713
mov dword [ebp + 0x70], 0x49141406
mov byte [ebp + 0x74], 0
mov al, byte [ebp + 0x48]
xor byte [ebp + ecx + 0x49], al
inc ecx
cmp ecx, 0x2b
jb 0x100be795
push 0xffff00ff
lea eax, [ebp + 0x49]
mov byte [ebp + 0x74], 0
push eax
call fcn.100d7e40
jmp case.default.0x100be58c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be7ca
xor al, al
jmp 0x100be7d8
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov al, byte [eax]
inc edi
movzx eax, al
mov dword [esi + 8], edi
sub eax, 6
je 0x100be934
sub eax, 1
je 0x100be854
sub eax, 3
jne case.default.0x100be58c
movaps xmm0, xmmword [0x101c2100]
xor ecx, ecx
movups xmmword [ebp + 0x48], xmm0
mov dword [ebp + 0x68], 0x1c0b1c1f
movaps xmm0, xmmword [0x101c21d0]
movups xmmword [ebp + 0x58], xmm0
mov dword [ebp + 0x6c], 0x17590d17
mov dword [ebp + 0x70], 0x16100d18
mov word [ebp + 0x74], 0x5717
mov byte [ebp + 0x76], al
nop dword [eax]
mov al, byte [ebp + 0x48]
xor byte [ebp + ecx + 0x49], al
inc ecx
cmp ecx, 0x2d
jb 0x100be830
push 0xffff00ff
lea eax, [ebp + 0x49]
mov byte [ebp + 0x76], 0
push eax
call fcn.100d7e40
jmp case.default.0x100be58c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
ja 0x100be635
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov ecx, dword [eax]
add dword [esi + 8], 4
test ecx, ecx
je case.default.0x100be58c
movaps xmm0, xmmword [0x101c1f40]
push 0xffff00ff
movups xmmword [ebp + 0x4c], xmm0
push ecx
movaps xmm0, xmmword [0x101c2190]
xor ecx, ecx
movups xmmword [ebp + 0x5c], xmm0
mov dword [ebp + 0x6c], 0x10165703
mov dword [ebp + 0x70], 0x191e16
mov al, byte [ebp + 0x4c]
xor byte [ebp + ecx + 0x4d], al
inc ecx
cmp ecx, 0x26
jb 0x100be8a8
sub esp, 0x1c
mov byte [ebp + 0x73], 0
lea eax, [ebp + 0x4d]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp]
push eax
call fcn.1004a910
add esp, 0x24
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x100be8e5
mov ecx, dword [ecx]
push ecx
call fcn.100d7e40
lea ecx, [ebp]
call fcn.100448c0
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x100be908
inc eax
push eax
push dword [ebp + 4]
call fcn.10049010
add esp, 8
mov eax, dword [ebp]
push 8
push eax
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov dword [ebp], 0
call fcn.10049010
add esp, 8
jmp case.default.0x100be58c
movaps xmm0, xmmword [0x101c1c30]
xor ecx, ecx
movups xmmword [ebp + 0x4c], xmm0
mov dword [ebp + 0x6c], 0x1e0d1818
movaps xmm0, xmmword [0x101c1e20]
movups xmmword [ebp + 0x5c], xmm0
mov dword [ebp + 0x70], 0x45120707
mov byte [ebp + 0x74], 0
nop
mov al, byte [ebp + 0x4c]
xor byte [ebp + ecx + 0x4d], al
inc ecx
cmp ecx, 0x27
jb 0x100be960
push 0xffff4059
lea eax, [ebp + 0x4d]
mov byte [ebp + 0x74], 0
push eax
call fcn.100d7e40
jmp case.default.0x100be58c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
lea ebx, [edx + 0x538]
cmp eax, ecx
jbe 0x100be99b
xor cl, cl
jmp 0x100be9af
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edi + 1]
test cl, cl
mov dword [esi + 8], eax
setg al
mov byte [ebx], al
lea ebx, [edx + 0x539]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100be9d6
xor cl, cl
jmp 0x100be9ea
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov byte [ebx], cl
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x18]
mov ecx, edi
mov eax, dword [esi + 0x14]
sub ecx, eax
mov dword [ebp - 0x10], eax
lea eax, [ebx + 4]
cmp eax, ecx
jbe 0x100bea15
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
jmp 0x100bea32
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x18]
mov edx, dword [0x1027c0b4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
lea ecx, [ebx + 4]
sub edi, eax
lea eax, [ecx + 2]
mov dword [esi + 8], ecx
lea ebx, [edx + 0x53a]
cmp eax, edi
jbe 0x100bea4b
xor edi, edi
jmp 0x100bea60
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov ecx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx edi, word [eax]
lea eax, [ecx + 2]
mov dword [esi + 8], eax
mov word [ebx], di
lea ebx, [edx + 0x53c]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bea83
xor ecx, ecx
jmp 0x100bea98
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edx + 0x540]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100beabb
xor ecx, ecx
jmp 0x100bead0
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edx + 0x53e]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100beaf3
xor ecx, ecx
jmp 0x100beb08
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
mov eax, dword [edx + 0x518]
mov byte [eax + 0xa], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + 0x518]
mov dword [edx + 0x548], eax
mov dword [edx + 0x54c], 0
call fcn.10052140
mov ecx, dword [0x1027c0b4]
cmp byte [ecx + 0x538], 0
jne case.default.0x100be58c
mov ecx, dword [ecx + 0x518]
call fcn.10051cd0
jmp case.default.0x100be58c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100beb6d
xor ebx, ebx
jmp 0x100beb81
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov ebx, dword [eax]
lea eax, [edi + 4]
mov dword [esi + 8], eax
mov ecx, dword [edx + 0x518]
cmp byte [ecx + 0xa], 0
jne 0x100beb9d
mov byte [ecx + 0xa], 1
mov ecx, dword [edx + 0x518]
mov dword [edx + 0x548], ebx
mov dword [edx + 0x54c], 0
call fcn.10051cd0
mov eax, dword [0x1027c0b4]
mov esi, dword [eax + 0x518]
push dword [esi + 4]
call fcn.100d4000
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100bebd4
push 1
call dword [0x101ba7a0]
mov byte [esi + 0x20], 0
jmp case.default.0x100be58c
mov eax, dword [edx + 0x518]
xor ecx, ecx
mov dword [edx + 0x538], 0xff00
mov dword [edx + 0x53e], ecx
mov word [edx + 0x53c], cx
mov dword [edx + 0x550], ecx
mov dword [edx + 0x554], ecx
mov dword [edx + 0x548], ecx
mov dword [edx + 0x54c], ecx
mov word [eax + 8], cx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov esi, dword [edx + 0x518]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100bec39
push 0
call dword [0x101ba7a0]
mov edx, dword [0x1027c0b4]
mov byte [esi + 0x20], 1
mov ecx, dword [edx + 0x4e0]
test ecx, ecx
je case.default.0x100be58c
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je case.default.0x100be58c
cmp byte [ecx + 0x10d], 0
je case.default.0x100be58c
push 0
call dword [0x101ba7a0]
jmp case.default.0x100be58c
mov ebx, dword [esi + 0x18]
lea eax, [edi + 1]
mov ecx, ebx
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100bec88
inc edi
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
jmp 0x100becaa
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
inc edi
mov ecx, dword [esi + 0x14]
mov al, byte [eax]
mov edx, dword [0x1027c0b4]
mov dword [esi + 8], edi
test al, al
jne 0x100becfb
lea eax, [edx + 0x53a]
sub ebx, ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 2]
cmp eax, ebx
jbe 0x100becc0
xor ecx, ecx
jmp 0x100becd5
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
lea ebx, [edx + 0x53c]
mov eax, dword [ebp - 0x10]
mov word [eax], cx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bed4c
xor ecx, ecx
jmp 0x100bed61
lea eax, [edx + 0x53e]
sub ebx, ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 2]
cmp eax, ebx
jbe 0x100bed11
xor ecx, ecx
jmp 0x100bed26
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
lea ebx, [edx + 0x540]
mov eax, dword [ebp - 0x10]
mov word [eax], cx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bed4c
xor ecx, ecx
jmp 0x100bed61
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [0x1027c0b4]
mov edi, dword [esi + 8]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
mov ecx, dword [edx + 0x518]
test ecx, ecx
je case.default.0x100be58c
cmp byte [ecx + 8], 0
je case.default.0x100be58c
cmp byte [ecx + 9], 0
jne case.default.0x100be58c
call fcn.10051e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.101204c0
lea esp, [ebp + 0x7c]
pop ebp
ret