Function at 0x100be3d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x1017f115
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.0x100be40c
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100be3a9
xor al, al
jmp 0x100be3bd
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.0x100be40c
jmp dword [eax*4 + 0x100bec24]
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be3e5
xor al, al
jmp 0x100be3f9
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.0x100be40c
jmp dword [eax*4 + 0x100bec3c]
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be42a
lea eax, [edi + 1]
xor cl, cl
mov dword [esi + 8], eax
jmp 0x100be447
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov cl, byte [eax]
inc dword [esi + 8]
cmp cl, 4
ja case.default.0x100be40c
mov edx, dword [0x1027c0b4]
mov eax, dword [edx + 0x518]
movaps xmm0, xmmword [0x101c2f90]
movups xmmword [ebp + 0x1c], xmm0
mov dword [ebp + 0x3c], 0x776e7d68
movaps xmm0, xmmword [0x101c2d40]
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 0x100be484
push 0xffff4059
lea eax, [ebp + 0x1d]
mov byte [ebp + 0x43], 0
push eax
call fcn.100d7cb0
jmp case.default.0x100be40c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be4c0
lea eax, [edi + 4]
mov dword [esi + 8], eax
jmp case.default.0x100be40c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov ecx, dword [eax]
add dword [esi + 8], 4
test ecx, ecx
je case.default.0x100be40c
movaps xmm0, xmmword [0x101c2770]
push 0xffff00ff
movups xmmword [ebp + 0x4c], xmm0
push ecx
movaps xmm0, xmmword [0x101c2880]
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 0x100be503
sub esp, 0x1c
mov byte [ebp + 0x73], 0
lea eax, [ebp + 0x4d]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp + 0x28]
push eax
call fcn.1004a7a0
add esp, 0x24
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x100be540
mov ecx, dword [ecx]
push ecx
call fcn.100d7cb0
lea ecx, [ebp + 0x28]
call fcn.100447b0
mov eax, dword [ebp + 0x40]
cmp eax, 0x10
jb 0x100be563
inc eax
push eax
push dword [ebp + 0x2c]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp case.default.0x100be40c
movaps xmm0, xmmword [0x101c2d10]
xor ecx, ecx
movups xmmword [ebp + 0x44], xmm0
mov word [ebp + 0x74], 0x277a
movaps xmm0, xmmword [0x101c31e0]
movups xmmword [ebp + 0x54], xmm0
mov byte [ebp + 0x76], 0
movaps xmm0, xmmword [0x101c2cd0]
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 0x100be5c0
push 0xffff00ff
lea eax, [ebp + 0x45]
mov byte [ebp + 0x76], 0
push eax
call fcn.100d7cb0
jmp case.default.0x100be40c
movaps xmm0, xmmword [0x101c1ba0]
xor ecx, ecx
movups xmmword [ebp + 0x48], xmm0
mov dword [ebp + 0x68], 0x9021502
movaps xmm0, xmmword [0x101c1b10]
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 0x100be615
push 0xffff00ff
lea eax, [ebp + 0x49]
mov byte [ebp + 0x74], 0
push eax
call fcn.100d7cb0
jmp case.default.0x100be40c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be64a
xor al, al
jmp 0x100be658
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edi, dword [esi + 8]
mov al, byte [eax]
inc edi
movzx eax, al
mov dword [esi + 8], edi
sub eax, 6
je 0x100be7b4
sub eax, 1
je 0x100be6d4
sub eax, 3
jne case.default.0x100be40c
movaps xmm0, xmmword [0x101c2050]
xor ecx, ecx
movups xmmword [ebp + 0x48], xmm0
mov dword [ebp + 0x68], 0x1c0b1c1f
movaps xmm0, xmmword [0x101c2120]
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 0x100be6b0
push 0xffff00ff
lea eax, [ebp + 0x49]
mov byte [ebp + 0x76], 0
push eax
call fcn.100d7cb0
jmp case.default.0x100be40c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
ja 0x100be4b5
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov ecx, dword [eax]
add dword [esi + 8], 4
test ecx, ecx
je case.default.0x100be40c
movaps xmm0, xmmword [0x101c1ea0]
push 0xffff00ff
movups xmmword [ebp + 0x4c], xmm0
push ecx
movaps xmm0, xmmword [0x101c20e0]
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 0x100be728
sub esp, 0x1c
mov byte [ebp + 0x73], 0
lea eax, [ebp + 0x4d]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp]
push eax
call fcn.1004a7a0
add esp, 0x24
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x100be765
mov ecx, dword [ecx]
push ecx
call fcn.100d7cb0
lea ecx, [ebp]
call fcn.100447b0
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x100be788
inc eax
push eax
push dword [ebp + 4]
call fcn.10048ea0
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.10048ea0
add esp, 8
jmp case.default.0x100be40c
movaps xmm0, xmmword [0x101c1b70]
xor ecx, ecx
movups xmmword [ebp + 0x4c], xmm0
mov dword [ebp + 0x6c], 0x1e0d1818
movaps xmm0, xmmword [0x101c1d60]
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 0x100be7e0
push 0xffff4059
lea eax, [ebp + 0x4d]
mov byte [ebp + 0x74], 0
push eax
call fcn.100d7cb0
jmp case.default.0x100be40c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
lea ebx, [edx + 0x538]
cmp eax, ecx
jbe 0x100be81b
xor cl, cl
jmp 0x100be82f
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be856
xor cl, cl
jmp 0x100be86a
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be895
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
jmp 0x100be8b2
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be8cb
xor edi, edi
jmp 0x100be8e0
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be903
xor ecx, ecx
jmp 0x100be918
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be93b
xor ecx, ecx
jmp 0x100be950
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100be973
xor ecx, ecx
jmp 0x100be988
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.10051fc0
mov ecx, dword [0x1027c0b4]
cmp byte [ecx + 0x538], 0
jne case.default.0x100be40c
mov ecx, dword [ecx + 0x518]
call fcn.10051b50
jmp case.default.0x100be40c
mov ecx, dword [esi + 0x18]
lea eax, [edi + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100be9ed
xor ebx, ebx
jmp 0x100bea01
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bea1d
mov byte [ecx + 0xa], 1
mov ecx, dword [edx + 0x518]
mov dword [edx + 0x548], ebx
mov dword [edx + 0x54c], 0
call fcn.10051b50
mov eax, dword [0x1027c0b4]
mov esi, dword [eax + 0x518]
push dword [esi + 4]
call fcn.100d3e70
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100bea54
push 1
call dword [0x101ba7a0]
mov byte [esi + 0x20], 0
jmp case.default.0x100be40c
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 0x100beab9
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.0x100be40c
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je case.default.0x100be40c
cmp byte [ecx + 0x10d], 0
je case.default.0x100be40c
push 0
call dword [0x101ba7a0]
jmp case.default.0x100be40c
mov ebx, dword [esi + 0x18]
lea eax, [edi + 1]
mov ecx, ebx
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100beb08
inc edi
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
jmp 0x100beb2a
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100beb7b
lea eax, [edx + 0x53a]
sub ebx, ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 2]
cmp eax, ebx
jbe 0x100beb40
xor ecx, ecx
jmp 0x100beb55
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bebcc
xor ecx, ecx
jmp 0x100bebe1
lea eax, [edx + 0x53e]
sub ebx, ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 2]
cmp eax, ebx
jbe 0x100beb91
xor ecx, ecx
jmp 0x100beba6
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bebcc
xor ecx, ecx
jmp 0x100bebe1
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.0x100be40c
cmp byte [ecx + 8], 0
je case.default.0x100be40c
cmp byte [ecx + 9], 0
jne case.default.0x100be40c
call fcn.10051cb0
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.10120250
lea esp, [ebp + 0x7c]
pop ebp
ret