Function at 0x1000b680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100d5018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100d6f0c]
push edi
mov eax, dword [esi + 0x3ddc]
cmp eax, dword [esi + 0x3dd8]
je 0x1000ba24
mov edx, 2
mov ecx, esi
call fcn.100083c0
mov edi, dword [0x100d6f0c]
call fcn.10011d40
cmp dword [edi + 0x3e14], 1
jle 0x1000b6de
nop dword [eax + eax]
call fcn.10011090
cmp dword [edi + 0x3e14], 1
jg 0x1000b6d0
mov eax, dword [esi + 0x8c]
lea ebx, [esi + 0x59e8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1000b7cd
lea edx, [esi + 0x59f8]
mov ecx, ebx
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000b718
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1000b702
jmp 0x1000b7cd
test byte [esi + 0x5aa0], 0x20
je 0x1000b7b7
movaps xmm0, xmmword [0x100cea10]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x18], 0x33792d31
movaps xmm0, xmmword [0x100cea90]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x14], 0x792d313a
movaps xmm0, xmmword [0x100ce620]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x10], 0x1536
movaps xmm0, xmmword [0x100ce640]
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0xe], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x49
jb 0x1000b770
movss xmm0, dword [ebx + 8]
sub esp, 0x10
movzx eax, byte [ebx]
cvtps2pd xmm0, xmm0
mov byte [ebp - 0xe], 0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ebx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x57]
push eax
call fcn.10019ba0
mov ecx, dword [esi + 0x8c]
add esp, 0x18
jmp 0x1000b7ba
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x100d6f0c]
push ebx
mov eax, dword [eax + 0x47b4]
push dword [eax]
call ecx
add esp, 8
mov eax, dword [esi + 0x3e38]
mov byte [esi + 0x3de5], 0
test eax, eax
je 0x1000b7ee
cmp byte [eax + 0xa8], 0
jne 0x1000b7ee
mov byte [eax + 0xa6], 0
call fcn.10011090
mov eax, dword [0x100d6f0c]
mov edi, eax
cmp dword [edi + 0x490c], 0
je 0x1000b80d
call fcn.10018840
mov eax, dword [0x100d6f0c]
cmp dword [edi + 0x47b8], 0
je 0x1000b844
cmp byte [eax + 0x480d], 0
je 0x1000b844
cmp dword [eax + 0x4858], 0
jne 0x1000b844
cmp dword [eax + 0x48b0], 0
jne 0x1000b844
mov eax, dword [edi + 0x4810]
test al, 0xf
je 0x1000b844
test al, al
js 0x1000b844
call fcn.10017d10
mov al, byte [esi + 0x493c]
test al, al
je 0x1000b8ca
mov eax, dword [esi + 0x495c]
mov bl, byte [esi + 0x4982]
inc eax
cmp eax, dword [esi + 0x3dd8]
jge 0x1000b87f
test byte [esi + 0x4940], 0x20
jne 0x1000b87b
mov ecx, dword [esi + 0x4948]
call fcn.10011cd0
test al, al
jne 0x1000b87f
mov al, 1
jmp 0x1000b881
xor al, al
test bl, bl
jne 0x1000b889
test al, al
je 0x1000b898
call fcn.10018ae0
mov al, byte [esi + 0x493c]
test al, al
je 0x1000b8ca
mov eax, dword [esi + 0x4944]
cmp eax, dword [esi + 0x3dd8]
jge 0x1000b8ca
test byte [esi + 0x4940], 1
jne 0x1000b8ca
push 0x100ccf44
mov byte [esi + 0x493d], 1
call fcn.10014240
add esp, 4
mov byte [esi + 0x493d], 0
mov eax, dword [esi + 0x3dd8]
mov byte [esi + 0x3de4], 0
mov dword [esi + 0x3ddc], eax
call fcn.10009360
mov ecx, dword [esi + 0x3e0c]
lea ebx, [esi + 0x3e08]
test ecx, ecx
jns 0x1000b90a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.1001a580
mov dword [ebx], 0
mov ecx, ebx
push dword [esi + 0x3df0]
call fcn.1001a580
mov ecx, dword [esi + 0x3df0]
xor edi, edi
test ecx, ecx
je 0x1000b95d
nop dword [eax]
mov eax, dword [esi + 0x3df8]
mov edx, dword [eax + edi*4]
cmp byte [edx + 0xa6], 0
je 0x1000b94b
test dword [edx + 8], 0x1000000
jne 0x1000b952
mov ecx, ebx
call fcn.1000ac20
mov ecx, dword [esi + 0x3df0]
inc edi
cmp edi, ecx
jne 0x1000b930
mov eax, dword [ebx]
mov dword [esi + 0x3df0], eax
mov eax, dword [esi + 0x3df4]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x3df8]
mov dword [esi + 0x3df4], ecx
mov ecx, dword [ebx + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x3e2c]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x3df8], ecx
mov byte [eax + 0x10], 0
mov byte [esi + 0x3768], 0
mov dword [esi + 0xdd0], 0
mov dword [esi + 0xdcc], 0
mov ecx, dword [esi + 0x3774]
test ecx, ecx
jns 0x1000b9df
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x3770]
call fcn.1001ac50
xor edi, edi
mov dword [esi + 0x3770], 0
cmp dword [esi + 0x5a40], edi
jle 0x1000ba24
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x5a48]
add eax, ebx
cmp dword [eax + 4], 3
jne 0x1000ba18
push eax
mov eax, dword [eax + 0xc]
push esi
call eax
add esp, 8
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x5a40]
jl 0x1000ba00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044b19
mov esp, ebp
pop ebp
ret