Function at 0x100d31a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1030cb40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push edi
lea edi, [eax + 8]
mov dword [ebp - 0x24], eax
mov byte [eax + 0xcad9d], 0
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x100d359a
mov eax, dword [0x103473fc]
cmp byte [eax + 0x80], 0
jne 0x100d31f9
cmp byte [eax + 0x81], 0
je 0x100d31f9
cmp dword [eax + 0x84], 0
jg 0x100d31f9
cmp dword [eax + 0x6c], 1
jne 0x100d31f9
mov ecx, dword [eax + 0x90]
jmp 0x100d31fb
xor ecx, ecx
mov eax, dword [0x1019d020]
sub eax, ecx
push esi
push eax
call fcn.100629c0
mov esi, dword [edi]
add esp, 4
fstp dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x20]
subss xmm0, dword [esi + 0x14]
andps xmm0, xmmword [0x10171630]
comiss xmm0, dword [0x10171524]
jbe 0x100d3233
push esi
mov ecx, edi
jmp 0x100d3590
movss xmm0, dword [esi + 0x18]
ucomiss xmm0, dword [0x10171598]
lahf
test ah, 0x44
jnp 0x100d3599
mov edx, dword [esi + 0x20]
test edx, edx
je 0x100d3599
cmp dword [esi + 8], 0xffffffff
jne 0x100d3599
cmp byte [esi], 0
je 0x100d3599
cmp byte [esi + 1], 0
je 0x100d3599
mov ecx, dword [0x1030d944]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x100d3587
mov ecx, dword [edi]
mov edx, dword [ecx + 0x278]
mov ecx, edi
call edx
test al, al
je 0x100d3587
cmp dword [esi + 0x54], edi
jne 0x100d3587
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x1030d990]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
test eax, eax
je 0x100d3587
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x24]
movq xmm0, qword [esi + 0x30]
push 0
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x4c]
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
push dword [esi + 0x54]
push eax
push ecx
call fcn.100de840
add esp, 0x18
test al, al
jne 0x100d34af
movss xmm0, dword [esi + 0x40]
subss xmm0, dword [esi + 0x28]
cvtps2pd xmm7, xmm0
movss xmm0, dword [esi + 0x3c]
subss xmm0, dword [esi + 0x24]
mulsd xmm7, xmm7
cvtps2pd xmm6, xmm0
movss xmm0, dword [esi + 0x44]
subss xmm0, dword [esi + 0x2c]
mulsd xmm6, xmm6
cvtps2pd xmm4, xmm0
movss xmm0, dword [esi + 0x34]
addsd xmm6, xmm7
subss xmm0, dword [esi + 0x28]
mulsd xmm4, xmm4
cvtps2pd xmm5, xmm0
movss xmm0, dword [esi + 0x30]
addsd xmm6, xmm4
subss xmm0, dword [esi + 0x24]
mulsd xmm5, xmm5
cvtps2pd xmm3, xmm0
movss xmm0, dword [esi + 0x38]
subss xmm0, dword [esi + 0x2c]
mulsd xmm3, xmm3
cvtps2pd xmm2, xmm0
xorps xmm0, xmm0
addsd xmm3, xmm5
sqrtsd xmm0, xmm6
mulsd xmm2, xmm2
cvtpd2ps xmm1, xmm0
addsd xmm3, xmm2
xorps xmm0, xmm0
sqrtsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x100d33a8
mov esi, dword [0x1034742c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x10307940
call fcn.1004e540
jmp 0x100d3570
cmp byte [0x1019d011], 0
je 0x100d3496
cmp byte [0x10307960], 0
mov edi, dword [0x1034742c]
je 0x100d342b
cmp byte [0x10307961], 0
jne 0x100d3479
mov byte [0x10307961], 1
xor esi, esi
nop word [eax + eax]
xor edx, edx
mov eax, esi
xor eax, dword [0x10307980]
xor edx, dword [0x10307984]
xor eax, 0x1de26cd5
mov dword [ebp - 0x20], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shrd eax, edx, 7
xor al, byte [esi + 0x10307962]
xor al, cl
mov byte [esi + 0x10307962], al
inc esi
cmp esi, 0x18
jb 0x100d33e0
jmp 0x100d3479
xor esi, esi
nop dword [eax]
xor edx, edx
mov eax, esi
xor eax, dword [0x10307980]
xor edx, dword [0x10307984]
xor eax, 0x1de26cd5
mov dword [ebp - 0x20], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shrd eax, edx, 7
xor al, byte [esi + 0x10307962]
xor al, cl
mov byte [esi + 0x10307962], al
inc esi
cmp esi, 0x18
jb 0x100d3430
lea eax, [ebp - 0x25]
push eax
push 0x10307979
push 0x10307962
lea ecx, [ebp - 0x1c]
call fcn.1004d640
mov ecx, edi
jmp 0x100d3572
mov esi, dword [0x1034742c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x10307988
call fcn.1004ef00
jmp 0x100d3570
mov eax, dword [0x1030daec]
test al, 1
jne 0x100d34cc
or eax, 1
mov dword [0x1030daec], eax
mov eax, dword [0x1030dae4]
mov dword [0x1030dae8], eax
jmp 0x100d34d1
mov eax, dword [0x1030dae8]
cmp dword [eax + edi], 0
jne 0x100d355c
mov eax, dword [0x1030daf4]
test al, 1
jne 0x100d34f8
or eax, 1
mov dword [0x1030daf4], eax
mov eax, dword [0x1030dae0]
mov dword [0x1030daf0], eax
jmp 0x100d34fd
mov eax, dword [0x1030daf0]
cmp dword [eax + edi], 0
jle 0x100d355c
cmp byte [esi + 0xe90c], 0
je 0x100d3546
mov eax, dword [esi + 0x20]
mov ecx, 0x103079a0
mov edi, dword [ebp - 0x24]
inc dword [edi + eax*4 + 0x1500]
lea eax, [ebp - 0x1c]
mov esi, dword [0x1034742c]
push eax
call fcn.10054520
push 0
push 1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.100fe6e0
lea ecx, [ebp - 0x1c]
call fcn.10042fe0
jmp 0x100d358a
mov esi, dword [0x1034742c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x103079c0
call fcn.1004efd0
jmp 0x100d3570
mov esi, dword [0x1034742c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x103079e0
call fcn.1004ee30
mov ecx, esi
push 0
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.100fe6e0
lea ecx, [ebp - 0x1c]
call fcn.10042fe0
mov edi, dword [ebp - 0x24]
push dword [edi + 8]
lea ecx, [edi + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.100d2e10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1010f522
mov esp, ebp
pop ebp
ret