Function at 0x100e7b24
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
sub esp, 0x18
push esi
push edi
mov edi, dword [0x101c0bb0]
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
test edi, edi
je 0x100e7973
inc dword [edi + 0x370]
push dword [0x101c0be4]
push 0x35c
call dword [0x101bd508]
add esp, 8
test eax, eax
je 0x100e799b
push esi
push edi
mov ecx, eax
call fcn.100ed910
mov esi, eax
mov dword [ebp - 0xc], eax
jmp 0x100e79a0
xor esi, esi
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 8]
mov edx, dword [esi + 4]
mov dword [esi + 8], eax
lea eax, [edi + 0x1a5c]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x100e79ee
mov esi, edx
mov edx, ecx
shr edx, 1
cmp dword [edi + edx*8], esi
lea eax, [edi + edx*8]
jae 0x100e79da
lea edi, [eax + 8]
or eax, 0xffffffff
sub eax, edx
add ecx, eax
jmp 0x100e79dc
mov ecx, edx
test ecx, ecx
jne 0x100e79c2
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8]
cmp edi, eax
je 0x100e79fe
cmp dword [edi], edx
jne 0x100e79fe
mov dword [edi + 4], esi
jmp 0x100e7a11
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], esi
call fcn.1001f5c0
test dword [ebp - 8], 0x100
mov dword [esi + 0xc], 0x42700000
mov dword [esi + 0x10], 0x42700000
jne 0x100e7a65
mov ecx, dword [esi + 4]
call fcn.100da7c0
mov edi, dword [ebp - 4]
test eax, eax
je 0x100e7a68
mov ecx, eax
mov edx, eax
sub ecx, dword [edi + 0x2ee0]
and dword [esi + 0xa8], 0xfffffffb
and dword [esi + 0xac], 0xfffffffb
and dword [esi + 0xb0], 0xfffffffb
mov dword [esi + 0x280], ecx
mov ecx, esi
call fcn.100e7be0
jmp 0x100e7a68
mov edi, dword [ebp - 4]
test byte [ebp - 8], 0x40
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], ecx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], ecx
je 0x100e7a99
mov word [esi + 0x98], 0x202
xor al, al
jmp 0x100e7ace
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x14]
jb 0x100e7aa9
mov byte [esi + 0x98], 2
comiss xmm0, dword [esi + 0x18]
jb 0x100e7ab6
mov byte [esi + 0x99], 2
cmp byte [esi + 0x98], 0
jg 0x100e7acc
cmp byte [esi + 0x99], 0
jg 0x100e7acc
xor al, al
jmp 0x100e7ace
mov al, 1
add edi, 0x1a38
mov byte [esi + 0x9b], al
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x100e7b06
inc ecx
test eax, eax
je 0x100e7af2
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x100e7af7
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001eb10
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], esi
inc dword [edi]
mov edi, dword [ebp - 4]
add edi, 0x1a2c
test dword [ebp - 8], 0x2000
mov edx, dword [edi]
mov ecx, dword [edi + 4]
je 0x100e7b94
test edx, edx
jne 0x100e7b38
test ecx, ecx
jne 0x100e7bc2
push 8
jmp 0x100e7bb9
cmp edx, ecx
jne 0x100e7b66
inc edx
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x100e7b52
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, ecx
jmp 0x100e7b57
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1001eb10
mov edx, dword [edi]
test edx, edx
jle 0x100e7b82
mov ecx, dword [edi + 8]
lea eax, [edx*4]
push eax
push ecx
lea eax, [ecx + 4]
push eax
call fcn.10079ec0
add esp, 0xc
mov eax, dword [edi + 8]
mov dword [eax], esi
mov eax, esi
inc dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edx, ecx
jne 0x100e7bc2
inc edx
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x100e7bae
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, ecx
jmp 0x100e7bb3
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
mov ecx, edi
call fcn.1001eb10
mov edx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + edx*4], esi
mov eax, esi
inc dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret