Function at 0x100d0290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1029ad64]
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 + 0xcac99], 0
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x100d07c2
mov eax, dword [0x102a395c]
cmp byte [eax + 0x18], 0
jne 0x100d02dd
cmp byte [eax + 0x19], 0
je 0x100d02dd
cmp dword [eax + 0x1c], 0
jg 0x100d02dd
cmp dword [eax + 4], 1
jne 0x100d02dd
mov ecx, dword [eax + 0x28]
jmp 0x100d02df
xor ecx, ecx
mov eax, dword [0x101cf020]
sub eax, ecx
push esi
push eax
call fcn.10065b00
mov esi, dword [edi]
add esp, 4
fstp dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x20]
subss xmm0, dword [esi + 0x14]
andps xmm0, xmmword [0x1019e930]
comiss xmm0, dword [0x1019e820]
jbe 0x100d0317
push esi
mov ecx, edi
jmp 0x100d07b8
movss xmm0, dword [esi + 0x18]
ucomiss xmm0, dword [0x1019e890]
lahf
test ah, 0x44
jnp 0x100d07c1
mov edx, dword [esi + 0x20]
test edx, edx
je 0x100d07c1
cmp dword [esi + 8], 0xffffffff
jne 0x100d07c1
cmp byte [esi], 0
je 0x100d07c1
cmp byte [esi + 1], 0
je 0x100d07c1
mov ecx, dword [0x1029bb44]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x100d07af
mov ecx, dword [edi]
mov edx, dword [ecx + 0x278]
mov ecx, edi
call edx
test al, al
je 0x100d07af
cmp dword [esi + 0x50], edi
jne 0x100d07af
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x1029bb90]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
test eax, eax
je 0x100d07af
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x24]
movq xmm0, qword [esi + 0x30]
push 0
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x48]
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
push dword [esi + 0x50]
push eax
push ecx
call fcn.100dc200
add esp, 0x18
test al, al
jne 0x100d04af
movss xmm0, dword [esi + 0x40]
lea eax, [ebp - 0x1c]
subss xmm0, dword [esi + 0x28]
push eax
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
mov esi, dword [0x102a398c]
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 0x100d04a3
mov ecx, 0x10296188
call fcn.1004fbf0
push 0
push 1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.100fd060
lea ecx, [ebp - 0x1c]
call fcn.10044260
jmp 0x100d07af
mov ecx, 0x102961a8
call fcn.10050830
jmp 0x100d0487
mov eax, dword [0x1029bcec]
test al, 1
jne 0x100d04cc
or eax, 1
mov dword [0x1029bcec], eax
mov eax, dword [0x1029bce4]
mov dword [0x1029bce8], eax
jmp 0x100d04d1
mov eax, dword [0x1029bce8]
cmp dword [eax + edi], 0
jne 0x100d068f
mov eax, dword [0x1029bcf4]
test al, 1
jne 0x100d04f8
or eax, 1
mov dword [0x1029bcf4], eax
mov eax, dword [0x1029bce0]
mov dword [0x1029bcf0], eax
jmp 0x100d04fd
mov eax, dword [0x1029bcf0]
cmp dword [eax + edi], 0
jle 0x100d068f
cmp byte [esi + 0x1191c], 0
je 0x100d0652
cmp byte [0x102961c0], 0
mov eax, dword [0x102a398c]
mov dword [ebp - 0x28], eax
je 0x100d0588
cmp byte [0x102961c1], 0
jne 0x100d05d6
mov byte [0x102961c1], 1
xor edi, edi
nop dword [eax + eax]
xor edx, edx
mov eax, edi
xor eax, dword [0x102961d8]
xor edx, dword [0x102961dc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x20], eax
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
mov dword [ebp - 0x2c], edx
shrd eax, edx, 7
xor al, cl
xor byte [edi + 0x102961c2], al
inc edi
cmp edi, 0x10
jb 0x100d0540
jmp 0x100d05d6
xor edi, edi
nop word [eax + eax]
xor edx, edx
mov eax, edi
xor eax, dword [0x102961d8]
xor edx, dword [0x102961dc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x20], eax
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
mov dword [ebp - 0x2c], edx
shrd eax, edx, 7
xor al, cl
xor byte [edi + 0x102961c2], al
inc edi
cmp edi, 0x10
jb 0x100d0590
push 0xf
push 0x102961c2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0
push 1
push eax
call fcn.100fd060
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100d067d
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d0636
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
mov eax, dword [esi + 0x20]
add esp, 8
mov edx, dword [ebp - 0x24]
inc dword [edx + eax*4 + 0x13fc]
jmp 0x100d07b2
mov edi, dword [0x102a398c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x102961e0
call fcn.1004ff70
push 0
push 1
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.100fd060
lea ecx, [ebp - 0x1c]
call fcn.10044260
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x24]
inc dword [edx + eax*4 + 0x13fc]
jmp 0x100d07b2
cmp byte [0x10296200], 0
mov edi, dword [0x102a398c]
je 0x100d06fc
cmp byte [0x10296201], 0
jne 0x100d0746
mov byte [0x10296201], 1
xor esi, esi
xor edx, edx
mov eax, esi
xor eax, dword [0x10296218]
xor edx, dword [0x1029621c]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x20], eax
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
mov dword [ebp - 0x2c], edx
shrd eax, edx, 7
xor al, cl
xor byte [esi + str.MI_f], al
inc esi
cmp esi, 0x14
jb 0x100d06b4
jmp 0x100d0746
xor esi, esi
nop
xor edx, edx
mov eax, esi
xor eax, dword [0x10296218]
xor edx, dword [0x1029621c]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x20], eax
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
mov dword [ebp - 0x2c], edx
shrd eax, edx, 7
xor al, cl
xor byte [esi + str.MI_f], al
inc esi
cmp esi, 0x14
jb 0x100d0700
push 0x13
push str.MI_f
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
push 0
push 1
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.100fd060
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100d07af
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d07a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d07a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0x24]
push dword [edx + 8]
lea ecx, [edx + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.100cfef0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10139242
mov esp, ebp
pop ebp
ret