Function at 0x1d912c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x24], edi
mov edi, dword [eax]
mov dword [esp + 0x30], edi
mov edi, dword [eax + 0x18]
mov dword [esp + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
cmp edi, 1
jne 0x1d91315
push ecx
push ecx
push esi
mov ecx, eax
call fcn.01d90830
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x38], ecx
lea ecx, [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push dword [ebp + 0x1c]
push ecx
push ecx
lea ecx, [ebp + 0x10]
push ecx
push edi
push esi
push edx
lea edx, [esp + 0x64]
mov ecx, eax
call fcn.01d901c0
movd xmm1, dword [esp + 0x68]
add esp, 0x24
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1e7dd28]
movss dword [esp + 0x20], xmm1
movd xmm1, dword [esp + 0x48]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1e7dd28]
movss dword [esp + 0x34], xmm1
cmp edi, 2
jne 0x1d91523
mov eax, dword [esp + 0x50]
xor ecx, ecx
test eax, eax
je 0x1d9138d
cmp eax, 0x4000
mov edx, 8
cmovne ecx, edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
add eax, ecx
sub dword [edx + 0x1c], eax
cmp dword [esp + 0x50], 0x2000
cmovg edi, esi
mov dword [esp + 0x10], edi
mov edi, esi
cmovg edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x1d9141e
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 8]
je 0x1d91412
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 1
movss xmm1, dword [edx + 4]
movss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [edx]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
mov edx, eax
mov dword [esp + 0x10], eax
call fcn.01d7f080
mov eax, dword [esp + 0x10]
add esp, 4
jmp 0x1d91420
mov edx, 1
call fcn.01d85d90
jmp 0x1d91420
xor eax, eax
push dword [esp + 0x38]
mov edx, dword [ebp + 0x1c]
add eax, eax
push dword [esp + 0x28]
mov ecx, 1
sub ecx, eax
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
push edx
push dword [esp + 0x40]
mov edx, dword [ebp + 0x14]
push edx
push dword [esp + 0x58]
mov edx, dword [esp + 0x30]
push 2
call fcn.01d90e00
mov edx, dword [esp + 0x2c]
add esp, 0x24
mov ecx, edx
movss xmm3, dword [esp + 0x20]
neg ecx
mov dword [esp + 0xc], eax
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x10]
movd xmm0, ecx
mov ecx, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [esp + 0x18]
movss dword [ecx + 4], xmm0
jne 0x1d91752
movaps xmm0, xmm3
mulss xmm0, dword [eax]
movss dword [eax], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm3
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [esp + 0x34]
movss xmm2, dword [esi]
mulss xmm2, dword [esp + 0x34]
movss dword [esi + 4], xmm0
movss dword [esi], xmm2
movss xmm1, dword [eax]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [eax], xmm0
movss xmm0, dword [esi]
addss xmm0, xmm1
movss dword [esi], xmm0
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
subss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
movss dword [esi + 4], xmm0
jmp 0x1d91685
mov eax, dword [ebp + 0x10]
sub eax, dword [esp + 0x4c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
sar edx, 1
cmp eax, edx
mov ecx, edx
cmovl ecx, eax
test ecx, ecx
jns 0x1d91543
xor edx, edx
jmp 0x1d91548
cmp eax, edx
cmovl edx, eax
mov ecx, dword [esp + 0x14]
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], edx
sub dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
cmp edx, dword [esp + 8]
jl 0x1d915f3
push dword [ebp + 0x28]
push dword [esp + 0x28]
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x34]
push dword [ebp + 0x1c]
push dword [esp + 0x40]
push dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x38]
push edi
call fcn.01d90e00
mov dword [esp + 0x30], eax
add esp, 0x24
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x1c]
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 0x10]
cmp edx, 0x18
jle 0x1d915c5
cmp dword [esp + 0x50], 0
je 0x1d915c5
mov ecx, dword [esp + 8]
add ecx, 0xffffffe8
add ecx, edx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov edx, dword [ebp + 0x28]
movss xmm1, dword [esp + 0x34]
sar edx, cl
push edx
mov edx, dword [ebp + 0x1c]
push 0
push ecx
mov ecx, dword [esp + 0x20]
movss dword [esp], xmm1
push 0
push edx
push 0
push eax
push dword [esp + 0x24]
mov edx, esi
jmp 0x1d9166e
mov ecx, dword [ebp + 0x14]
mov edx, esi
mov eax, dword [ebp + 0x28]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebp + 0x1c]
push 0
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push edi
call fcn.01d90e00
mov ecx, dword [esp + 0x38]
add esp, 0x24
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 8]
cmp edx, 0x18
jle 0x1d9164a
cmp dword [esp + 0x50], 0x4000
je 0x1d9164a
add eax, 0xffffffe8
add eax, edx
push dword [ebp + 0x28]
mov edx, dword [ebp + 0x1c]
push dword [esp + 0x28]
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x34]
push edx
push dword [esp + 0x40]
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push eax
push edi
call fcn.01d90e00
movss xmm3, dword [esp + 0x44]
add esp, 0x24
or dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x30], 0
jne 0x1d91752
cmp edi, 2
je 0x1d916a6
push ecx
push edi
movaps xmm2, xmm3
mov edx, esi
mov ecx, eax
call fcn.01d8f750
add esp, 8
cmp dword [esp + 0x40], 0
je 0x1d91752
xor ecx, ecx
test edi, edi
jle 0x1d91752
movaps xmm1, xmmword [0x1e7e820]
cmp edi, 8
jb 0x1d916ff
mov eax, edi
and eax, 0x80000007
jns 0x1d916d5
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
sub edx, eax
nop dword [eax]
movups xmm0, xmmword [esi + ecx*4]
xorps xmm0, xmm1
movups xmmword [esi + ecx*4], xmm0
movups xmm0, xmmword [esi + ecx*4 + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + ecx*4 + 0x10], xmm0
add ecx, 8
cmp ecx, edx
jl 0x1d916e0
cmp ecx, edi
jge 0x1d91752
mov eax, edi
sub eax, ecx
cmp eax, 4
jl 0x1d91733
mov edx, edi
lea eax, [esi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm1
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x1d91720
cmp ecx, edi
jge 0x1d91752
nop word [eax + eax]
movss xmm0, dword [esi + ecx*4]
xorps xmm0, xmm1
movss dword [esi + ecx*4], xmm0
inc ecx
cmp ecx, edi
jl 0x1d91740
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret