Function at 0x100d2790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, dword [0x104416bc]
push edi
test esi, esi
je 0x100d2c17
mov eax, dword [0x1022ccc8]
test byte [eax + 0x37e8], 1
je 0x100d2c0d
cmp byte [eax + 0x3808], 0
jne 0x100d2810
movss xmm1, dword [0x10201190]
movss xmm0, dword [eax + 0x37f8]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [eax + 0x37fc]
mulss xmm0, xmm1
mov byte [esp + 0x10], cl
cvttss2si ecx, xmm0
movss xmm0, dword [eax + 0x3800]
mov byte [esp + 0x11], cl
mulss xmm0, xmm1
jmp 0x100d28da
movss xmm0, dword [eax + 0x3804]
mov eax, dword [0x1022ccc4]
mov eax, dword [eax + 0x10]
mulss xmm0, dword [eax]
movss dword [esp + 0x14], xmm0
addss xmm0, dword [0x10200fdc]
cvtps2pd xmm0, xmm0
call fcn.101c9ff0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [0x10200e0c]
addss xmm1, dword [0x10200e0c]
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x14]
movaps xmm0, xmm1
addss xmm0, dword [0x10200f50]
movss dword [esp + 0x14], xmm0
cvtps2pd xmm0, xmm1
call fcn.101c9ff0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x10200e0c]
addss xmm0, dword [0x10200e0c]
mulss xmm0, dword [0x10201190]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
mov byte [esp + 0x10], al
call fcn.101c9ff0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x10200e0c]
addss xmm0, dword [0x10200e0c]
mulss xmm0, dword [0x10201190]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x10201190]
mov byte [esp + 0x11], al
mov edi, dword [0x104416b8]
cvttss2si eax, xmm0
mov byte [esp + 0x13], 0xff
mov byte [esp + 0x12], al
lea eax, [edi + esi]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x100d2c0d
mov esi, dword [esp + 0x10]
mov ecx, dword [0x104416b4]
mov eax, dword [0x104416b0]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
lea ecx, [esp + 0x64]
movss xmm0, dword [eax]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax + 4]
add eax, 8
push eax
movss dword [esp + 0x64], xmm0
call fcn.10021970
mov eax, dword [0x101f4d80]
movq xmm0, qword [0x101f4d78]
mov dword [esp + 0x28], eax
mov ax, word [0x101f4d84]
movq qword [esp + 0x20], xmm0
mov word [esp + 0x2c], ax
test ah, ah
je 0x100d2aa4
xor edx, edx
cmp dword [0x1022e690], 2
mov dword [esp + 0x10], edx
jl 0x100d2a70
movaps xmm2, xmmword [0x10201400]
mov edx, 8
movaps xmm3, xmmword [0x10201830]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov dword [esp + 0x10], edx
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102014a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10201440]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
movd xmm0, dword [0x101f4d78]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10201560]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x20], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102014a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
movd xmm0, dword [esp + 0x24]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10201560]
xorps xmm1, xmm0
movd dword [esp + 0x24], xmm1
nop
mov eax, 0x8d3dcb09
imul edx
add edx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x20], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xe
jl 0x100d2a70
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d2ac3
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.10028880
cmp dword [esp + 0x44], 0xf
lea ecx, [esp + 0x30]
push esi
cmova ecx, dword [esp + 0x34]
sub esp, 8
mov edx, esp
lea eax, [ecx + 1]
mov dword [edx], ecx
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d2af8
sub ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
call fcn.100c21d0
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x100d2b41
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100d2b37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d2c2d
push ecx
push edx
call fcn.101a201e
add esp, 8
mov ecx, dword [esp + 0x74]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [esp + 0x14], 0xffffffff
cmp eax, 1
jb 0x100d2c28
cmp dword [esp + 0x78], 0xf
lea eax, [esp + 0x64]
push 1
cmova eax, dword [esp + 0x68]
push 0x101f4708
push ecx
push eax
push ecx
push dword [esp + 0x30]
lea ecx, [esp + 0x48]
call fcn.1002aa60
push dword [esp + 0x14]
cmp dword [esp + 0x48], 0xf
lea eax, [esp + 0x34]
push dword [esp + 0x44]
cmova eax, dword [esp + 0x38]
push eax
call fcn.100c21d0
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x100d2bd0
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100d2bc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d2c2d
push ecx
push edx
call fcn.101a201e
add esp, 8
mov ecx, dword [esp + 0x78]
cmp ecx, 0xf
jbe 0x100d2c02
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100d2bf8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d2c2d
push ecx
push edx
call fcn.101a201e
add esp, 8
inc edi
cmp edi, dword [esp + 0x1c]
jne 0x100d2900
mov ecx, 0x104416ac
call fcn.100401c0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret
call fcn.10003660
call fcn.101a7156
int3