Function at 0x1000d590
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, 0x178
mov eax, dword [0x1006d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10127b34]
mov dword [ebp - 0x168], ecx
push esi
push edi
test eax, eax
je 0x1000d799
cmp dword [eax + 0x10], 0
je 0x1000d799
cmp dword [0x10127b20], 0
je 0x1000d799
cmp byte [0x100b25b3], 0
je 0x1000d799
mov eax, dword [ecx]
lea edx, [ebp - 0x160]
push edx
push ecx
call dword [eax + 0xc0]
mov eax, dword [0x10127b30]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000d799
mov edx, dword [0x10127b34]
cmp dword [edx + 0x40], 0
je 0x1000d799
push dword [edx + 0x5d4]
mov eax, dword [0x10127b20]
call eax
mov esi, eax
test esi, esi
je 0x1000d799
movaps xmm0, xmmword [0x10068df0]
xor ecx, ecx
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x120], 0x7e094d43
mov dword [ebp - 0x11c], 0x4b4a5e4a
mov dword [ebp - 0x118], 0x6c105b
mov byte [ebp - 0x114], 1
nop word [eax + eax]
mov al, cl
add al, 0x17
xor byte [ebp + ecx - 0x130], al
inc ecx
cmp ecx, 0x1b
jb 0x1000d670
lea eax, [ebp - 0x130]
mov byte [ebp - 0x114], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
mov eax, dword [ebp - 0x154]
shr eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10068d10]
mov eax, dword [ebp - 0x158]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
addss xmm1, dword [0x10068524]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x164], xmm1
addsd xmm0, qword [eax*8 + 0x10068d10]
lea eax, [ebp - 0x108]
push eax
cvttss2si eax, xmm1
push 0x101
push 0xff800080
cvtpd2ps xmm0, xmm0
push eax
cvttss2si edi, xmm0
push edi
push dword [0x10127b64]
push 1
call fcn.1000a690
add esp, 0x24
mov dword [ebp - 0x110], 0x66313349
mov dword [ebp - 0x10c], 0x1004a36
xor ecx, ecx
nop dword [eax]
mov al, cl
add al, 0x12
xor byte [ebp + ecx - 0x110], al
inc ecx
cmp ecx, 6
jb 0x1000d730
lea eax, [esi + 0x28]
mov byte [ebp - 0x109], 0
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
movss xmm0, dword [ebp - 0x164]
lea eax, [ebp - 0x108]
addss xmm0, dword [0x10068524]
add esp, 0xc
push eax
cvttss2si eax, xmm0
push 0x101
push 0xff800080
push eax
push edi
push dword [0x10127b64]
push 1
call fcn.1000a690
add esp, 0x1c
call fcn.1000d320
mov ecx, dword [0x10127b10]
movzx eax, byte [0x100b25a6]
mov dword [ebp - 0x10c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
mov esi, eax
push 4
push esi
mov dword [0x100b259c], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d9aa
test esi, esi
je 0x1000d9aa
mov eax, dword [0x100b259c]
xor edi, edi
cmp dword [eax + 0x17c], edi
jbe 0x1000d9aa
nop
mov eax, dword [eax + 0x174]
push 4
mov esi, dword [eax + edi*4]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d998
test esi, esi
je 0x1000d998
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d998
cmp dword [ebp - 0x164], eax
je 0x1000d998
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x174]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x174], xmm0
mov dword [ebp - 0x16c], eax
call fcn.1000b280
test al, al
je 0x1000d998
cmp dword [ebp - 0x10c], 0
je 0x1000d998
cvttss2si eax, dword [ebp - 0x150]
sub eax, 0xf
mov dword [ebp - 0x164], eax
mov eax, dword [esi + 0x10]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x140], eax
mov eax, dword [0x10127b7c]
movq qword [ebp - 0x148], xmm0
mov eax, dword [eax + 0x13c]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x13c], xmm0
movss xmm2, dword [ebp - 0x138]
movss xmm0, dword [ebp - 0x13c]
subss xmm0, dword [ebp - 0x148]
subss xmm2, dword [ebp - 0x144]
mov dword [ebp - 0x134], eax
movss xmm1, dword [ebp - 0x134]
subss xmm1, dword [ebp - 0x140]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10002840
divss xmm0, dword [0x1006857c]
mov ecx, 0x41
xor edx, edx
cvtss2sd xmm0, xmm0
nop
mov al, byte [edx + 0x10060aa0]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x130], al
and ecx, 0x800000ff
jns 0x1000d940
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1a
jl 0x1000d920
sub esp, 8
mov byte [ebp - 0x116], 0
lea eax, [ebp - 0x130]
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
lea eax, [ebp - 0x108]
push eax
cvttss2si eax, dword [ebp - 0x154]
push 0x101
push 0xff800080
push dword [ebp - 0x164]
push eax
push dword [0x10127b64]
push 1
call fcn.1000a690
add esp, 0x2c
mov eax, dword [0x100b259c]
inc edi
cmp edi, dword [eax + 0x17c]
jb 0x1000d7f0
mov esi, dword [ebp - 0x168]
push esi
sub esp, 0x20
call fcn.1000c270
add esp, 0x24
push esi
sub esp, 0x10
call fcn.1000cd60
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.1005cb94
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret